Name |
Type |
Description |
build_query |
beanshell |
This build_query BeanShell constructs the Europe PMC search query for a single protein in UniProt. ScriptqueryString = "(TITLE:\"" + phrase + "\" OR ABSTRACT:\"" + phrase + "\") AND UNIPROT_PUBS:" + UniProt_ID; // generate query string
|
articles_to_retrieve |
stringconstant |
Value1000 |
extract_id |
xpath |
Xpath Expression/resultList/result/id |
UniProt |
stringconstant |
ValueUNIPROT |
PubMed_and_MEDLINE |
stringconstant |
ValueMED |
extract_UniProt_id |
xpath |
Xpath Expression/dbCrossReferenceList/dbCrossReference/dbCrossReferenceInfo/info1 |
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); |
count_frequencies |
rshell |
Scriptx<-sort(table(UniProt_IDs), decreasing = TRUE);
proteins<-names(x);
frequencies<-x;
topNproteins<-names(x[1:10]);
R Serverlocalhost:6311 |
build_query_2 |
beanshell |
The build_query_2 BeanShell constructs the second stage Europe PMC search queries for all the proteins co-occuring with the input protein. ScriptqueryString = "(TITLE:\"" + phrase + "\" OR ABSTRACT:\"" + phrase + "\") AND UNIPROT_PUBS:" + UniProt_ID; // generate query string
|
extract_id_2 |
xpath |
Xpath Expression/resultList/result/id |
extract_UniProt_id_2 |
xpath |
Xpath Expression/dbCrossReferenceList/dbCrossReference/dbCrossReferenceInfo/info1 |
combine_and_make_Pajek_file |
beanshell |
ScriptString pajek="";
Hashtable vertices = new Hashtable();
Hashtable weights = new Hashtable();
int weight=1;
double temp;
pajek="*Vertices " + unique_UniProt_IDs.size() + "\n";
for(int i=0; i |
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);
}
}
|
draw_graph |
rshell |
This component visualizes the protein-protein network as a graph and exports the results in Pajek and GML format. Scriptrequire(igraph); # use the igraph package
png("protein_network.png", width=4096, height=2048);
my_uniprot_graph<-read.graph(input_file, format="pajek"); # read Pajek format
my_uniprot_graph<-simplify(my_uniprot_graph, remove.multiple=TRUE, remove.loops=TRUE);
lay<-layout.fruchterman.reingold(my_uniprot_graph);
plot(my_uniprot_graph,
layout=lay,
vertex.size=3*degree(my_uniprot_graph)/max(degree(my_uniprot_graph))+4,
vertex.label=V(my_uniprot_graph)$id, # NA would omits labels
vertex.label.cex=2.5,
vertex.label.family="sans",
vertex.label.color="black",
vertex.color=c("red",rep("blue",gorder(my_uniprot_graph)-1)),
vertex.frame.color=NA,
edge.arrow.size=0,
edge.color="gray",
edge.width=2*E(my_uniprot_graph)$weight/max(E(my_uniprot_graph)$weight),
edge.curved=F
);
dev.off();
pdf(PDF_filename);
plot(my_uniprot_graph,
layout=lay,
vertex.size=3*degree(my_uniprot_graph)/max(degree(my_uniprot_graph))+4,
vertex.label=V(my_uniprot_graph)$id,
vertex.label.cex=0.5,
vertex.label.family="sans",
vertex.label.color="black",
vertex.color=c("red",rep("blue",gorder(my_uniprot_graph)-1)),
vertex.frame.color=NA,
edge.arrow.size=0,
edge.color="gray",
edge.width=2*E(my_uniprot_graph)$weight/max(E(my_uniprot_graph)$weight),
edge.curved=F
);
dev.off();
Pajek_file<-"c:/temp/my_uniprot_graph.pajek";
write.graph(my_uniprot_graph, Pajek_file, format="pajek");
gml_file<-"c:/temp/my_uniprot_graph.gml";
write.graph(my_uniprot_graph, gml_file, format="gml");
R Serverlocalhost:6311 |
Write_Text_File |
localworker |
Script
BufferedWriter out;
if (encoding == void) {
out = new BufferedWriter(new FileWriter(outputFile));
}
else {
out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(outputFile), encoding));
}
out.write(filecontents);
out.flush();
out.close();
outputFile = filecontents;
|
Pajek_filename |
stringconstant |
The temporary filename is the name (and path) to the file used to transfer the data to the Rshell component draw_graph. ValueC:\temp\temp.txt |
PDF_filename |
stringconstant |
Valuec:/temp/my_uniprot_graph.pdf |
extract_dbCount |
xpath |
Xpath Expression/dbCountList/db/count |
searchPublications |
component |
|
getDatabaseLinks |
component |
|
searchPublications_2 |
component |
|
getDatabaseLinks_2 |
component |
|
Flatten_List_twice |
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, 2); |
Flatten_List_2 |
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); |
Flatten_List_3 |
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); |
Comments (0)
No comments yet
Log in to make a comment