Name |
Type |
Description |
pubmed_database |
stringconstant |
Valuepubmed |
xpath |
stringconstant |
Value/*[local-name(.)='eSearchResult']/*[local-name(.)='Count'] |
count |
stringconstant |
Valuecount |
xpath_count |
stringconstant |
Value/*[local-name(.)='eInfoResult']/*[local-name(.)='DbInfo']/*[local-name(.)='Count'] |
eSearch_database |
stringconstant |
Valuepubmed |
regular_expression |
stringconstant |
Value\n |
two_newlines |
stringconstant |
Value\n\n |
extract_terms |
beanshell |
ScriptString[] split = input.split("\n");
Vector nonEmpty = new Vector();
for (int i = 1; i < split.length; i++)
{
String trimmed = split[i].trim();
// if((trimmed.contains("=")) || (trimmed.contains("-")))
// {
// next;
// }
// else
// {
// String[] trimmed_array = trimmed.split("\t");
// String term = trimmed_array[0];
nonEmpty.add(trimmed);
// }
}
String output = "";
for (int i = 0; i < nonEmpty.size(); i++)
{
output = output + (String) (nonEmpty.elementAt(i) + "\n");
} |
format_rankings |
beanshell |
ScriptString[] split = ranked_terms.split("\n");
Vector nonEmpty = new Vector();
String pathway_name = "";
for (int i = 0; i < split.length; i++)
{
if (!(split[i].equals("")))
{
String[] split_array = split[i].split("\t");
pathway_name = split_array[1].trim();
String term_rank = "";
term_rank =split_array[0].trim() + "\t" + split_array[2].trim();
nonEmpty.add(term_rank);
System.out.println(pathway_name + "\n");
System.out.println(term_rank + "\n");
}
}
String[] non_empty = new String[nonEmpty.size()];
for (int i = 0; i < non_empty.length; i ++)
{
non_empty[i] = nonEmpty.elementAt(i);
System.out.println("added: " + nonEmpty.elementAt(i) + "\n");
}
String title_term_rankings = "";
title_term_rankings = ">> " + pathway_name + "\n";
for (int i = 0; i < non_empty.length; i++)
{
title_term_rankings = title_term_rankings + (String) (non_empty[i] + "\n");
System.out.println(title_term_rankings + "\n");
} |
merge_term_count |
beanshell |
ScriptString term_input = term.trim();
String count_input = count.trim();
String output = "";
output = term_input + "\t" + count_input; |
calculate_links |
soaplab |
Endpointhttp://phoebus.cs.man.ac.uk:1977/axis/services/text_mining.calculate_links |
enriched_phenotype |
soaplab |
Endpointhttp://phoebus.cs.man.ac.uk:1977/axis/services/text_mining.enriched_phenotype |
enriched_pathway |
soaplab |
Endpointhttp://phoebus.cs.man.ac.uk:1977/axis/services/text_mining.enriched_pathway |
split_extracted_terms |
localworker |
ScriptList split = new ArrayList();
if (!string.equals("")) {
String regexString = ",";
if (regex != void) {
regexString = regex;
}
String[] result = string.split(regexString);
for (int i = 0; i < result.length; i++) {
split.add(result[i]);
}
}
|
merge_pubmed_count |
localworker |
ScriptString seperatorString = "\n";
if (seperator != void) {
seperatorString = seperator;
}
StringBuffer sb = new StringBuffer();
for (Iterator i = stringlist.iterator(); i.hasNext();) {
String item = (String) i.next();
sb.append(item);
if (i.hasNext()) {
sb.append(seperatorString);
}
}
concatenated = sb.toString();
|
merge_extracted |
localworker |
ScriptString seperatorString = "\n";
if (seperator != void) {
seperatorString = seperator;
}
StringBuffer sb = new StringBuffer();
for (Iterator i = stringlist.iterator(); i.hasNext();) {
String item = (String) i.next();
sb.append(item);
if (i.hasNext()) {
sb.append(seperatorString);
}
}
concatenated = sb.toString();
|
merge_format_rankings |
localworker |
ScriptString seperatorString = "\n";
if (seperator != void) {
seperatorString = seperator;
}
StringBuffer sb = new StringBuffer();
for (Iterator i = stringlist.iterator(); i.hasNext();) {
String item = (String) i.next();
sb.append(item);
if (i.hasNext()) {
sb.append(seperatorString);
}
}
concatenated = sb.toString();
|
merge_list |
localworker |
ScriptString seperatorString = "\n";
if (seperator != void) {
seperatorString = seperator;
}
StringBuffer sb = new StringBuffer();
for (Iterator i = stringlist.iterator(); i.hasNext();) {
String item = (String) i.next();
sb.append(item);
if (i.hasNext()) {
sb.append(seperatorString);
}
}
concatenated = sb.toString();
|
split_abstracts_by_regex |
localworker |
ScriptList split = new ArrayList();
if (!string.equals("")) {
String regexString = ",";
if (regex != void) {
regexString = regex;
}
String[] result = string.split(regexString);
for (int i = 0; i < result.length; i++) {
split.add(result[i]);
}
}
|
extractCount_2 |
localworker |
Scriptimport org.dom4j.Document;
import org.dom4j.Node;
import org.dom4j.io.SAXReader;
SAXReader reader = new SAXReader(false);
reader.setIncludeInternalDTDDeclarations(false);
reader.setIncludeExternalDTDDeclarations(false);
Document document = reader.read(new StringReader(xmltext));
List nodelist = document.selectNodes(xpath);
// Process the elements in the nodelist
ArrayList outputList = new ArrayList();
ArrayList outputXmlList = new ArrayList();
String val = null;
String xmlVal = null;
for (Iterator iter = nodelist.iterator(); iter.hasNext();) {
Node element = (Node) iter.next();
xmlVal = element.asXML();
val = element.getStringValue();
if (val != null && !val.equals("")) {
outputList.add(val);
outputXmlList.add(xmlVal);
}
}
List nodelist=outputList;
List nodelistAsXML=outputXmlList; |
extractCount |
localworker |
Scriptimport org.dom4j.Document;
import org.dom4j.Node;
import org.dom4j.io.SAXReader;
SAXReader reader = new SAXReader(false);
reader.setIncludeInternalDTDDeclarations(false);
reader.setIncludeExternalDTDDeclarations(false);
Document document = reader.read(new StringReader(xmltext));
List nodelist = document.selectNodes(xpath);
// Process the elements in the nodelist
ArrayList outputList = new ArrayList();
ArrayList outputXmlList = new ArrayList();
String val = null;
String xmlVal = null;
for (Iterator iter = nodelist.iterator(); iter.hasNext();) {
Node element = (Node) iter.next();
xmlVal = element.asXML();
val = element.getStringValue();
if (val != null && !val.equals("")) {
outputList.add(val);
outputXmlList.add(xmlVal);
}
}
List nodelist=outputList;
List nodelistAsXML=outputXmlList; |
parametersXML_1 |
xmlsplitter |
|
run_eInfo |
wsdl |
Wsdlhttp://eutils.ncbi.nlm.nih.gov/soap/v2.0/eutils.wsdlWsdl Operationrun_eInfo |
run_eSearch |
wsdl |
Wsdlhttp://eutils.ncbi.nlm.nih.gov/soap/v2.0/eutils.wsdlWsdl Operationrun_eSearch |
run_eSearch_request |
xmlsplitter |
|
Comments (0)
No comments yet
Log in to make a comment