Get targets for compound
Created: 2016-02-22 20:01:21
This workflow retrieves single protein targets for a compound from open PHACTS.
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Titles (1)
Descriptions (1)
This workflow retrieves single protein targets for a compound from open PHACTS. |
Dependencies (0)
Inputs (1)
Name |
Description |
compound_uri |
Input compound uri
|
Processors (6)
Name |
Type |
Description |
CompoundPharmacologyList |
rest |
Retrieves list of pharmacological targets from Open PHACTS. |
list_of_target_URIs |
xpath |
The XPath service provides fast processing of XML data. Xpath Expression/result/items/item/hasAssay/hasTarget/@href |
list_of_target_types |
xpath |
The XPath service provides fast processing of XML data. Xpath Expression/result/items/item/hasAssay/hasTarget/type/@href |
filter_for_Single_Proteins |
beanshell |
Beanshell_to_remove_every_type_and_corresponding_URI_but_SingleProteins Scriptfilteredtargets = new ArrayList();
typelistlen = types.size();
urilistlen = uris.size();
int m = Math.min(uris.size(), types.size());
for (int i = 0; i < m; i++) {
String uri = uris.get(i);
String type = types.get(i);
if (type.contains("SingleProtein")) {
filteredtargets.add(uri);
}
} |
Flatten_List |
localworker |
Scriptflatten(inputs, outputs, depth) {
for (i = inputs.iterator(); i.hasNext();) {
element = i.next();
if (element instanceof Collection && depth > 0) {
flatten(element, outputs, depth - 1);
} else {
outputs.add(element);
}
}
}
outputlist = new ArrayList();
flatten(inputlist, outputlist, 1); |
Remove_String_Duplicates |
localworker |
ScriptList strippedlist = new ArrayList();
for (Iterator i = stringlist.iterator(); i.hasNext();) {
String item = (String) i.next();
if (strippedlist.contains(item) == false) {
strippedlist.add(item);
}
}
|
Beanshells (1)
Name |
Description |
Inputs |
Outputs |
filter_for_Single_Proteins |
Beanshell_to_remove_every_type_and_corresponding_URI_but_SingleProteins |
types
uris
|
filteredtargets
typelistlen
urilistlen
|
Outputs (1)
Name |
Description |
target_list |
list of target URIs
|
Datalinks (8)
Source |
Sink |
compound_uri |
CompoundPharmacologyList:id |
CompoundPharmacologyList:responseBody |
list_of_target_URIs:xml_text |
CompoundPharmacologyList:responseBody |
list_of_target_types:xml_text |
list_of_target_URIs:nodelist |
filter_for_Single_Proteins:uris |
list_of_target_types:nodelist |
filter_for_Single_Proteins:types |
filter_for_Single_Proteins:filteredtargets |
Flatten_List:inputlist |
Flatten_List:outputlist |
Remove_String_Duplicates:stringlist |
Remove_String_Duplicates:strippedlist |
target_list |
Uploader
License
All versions of this Workflow are
licensed under:
Version 1
(of 1)
Credits (3)
(People/Groups)
Attributions (0)
(Workflows/Files)
None
Shared with Groups (2)
Featured In Packs (0)
None
Log in to add to one of your Packs
Attributed By (0)
(Workflows/Files)
None
Favourited By (0)
No one
Statistics
Other workflows that use similar services
(0)
There are no workflows in myExperiment that use similar services to this Workflow.
Comments (0)
No comments yet
Log in to make a comment