GBSeq test
Created: 2009-12-15 22:16:23
This workflow retrieves nucleotide and protein sequences with the literature and references associated
to them given a protein and a nucleotide id.
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (0)
Titles (1)
Descriptions (1)
This workflow retrieves nucleotide and protein sequences with the literature and references associated
to them given a protein and a nucleotide id. |
Dependencies (0)
Processors (10)
Name |
Type |
Description |
nuc_id |
stringconstant |
ValueNM_000059 |
protein_id |
stringconstant |
ValueNP_000050 |
Get_Nucleotide_INSDSeq_XML |
localworker |
Scriptif ((id == void) || (id == null) || id.equals("")) {
throw new RunTimeException("port id must have a non-empty value");
}
URL url = new URL ("http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?rettype=gbc&db=nucleotide&retmode=xml&id=" + id);
BufferedReader reader = new BufferedReader (new InputStreamReader(url.openStream()));
StringWriter writer = new StringWriter();
char[] buffer = new char[1024];
while (true) {
int r = reader.read(buffer);
if (r <= 0) {
break;
}
writer.write(buffer, 0, r);
}
outputText = writer.toString();
|
Get_Nucleotide_FASTA |
localworker |
Scriptif ((id == void) || (id == null) || id.equals("")) {
throw new RunTimeException("port id must have a non-empty value");
}
URL url = new URL ("http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?rettype=fasta&db=nucleotide&retmode=text&id=" + id);
BufferedReader reader = new BufferedReader (new InputStreamReader(url.openStream()));
StringWriter writer = new StringWriter();
char[] buffer = new char[1024];
while (true) {
int r = reader.read(buffer);
if (r <= 0) {
break;
}
writer.write(buffer, 0, r);
}
outputText = writer.toString();
|
Get_Nucleotide_GBSeq_XML |
localworker |
Scriptif ((id == void) || (id == null) || id.equals("")) {
throw new RunTimeException("port id must have a non-empty value");
}
URL url = new URL ("http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?rettype=gb&db=nucleotide&retmode=xml&id=" + id);
BufferedReader reader = new BufferedReader (new InputStreamReader(url.openStream()));
StringWriter writer = new StringWriter();
char[] buffer = new char[1024];
while (true) {
int r = reader.read(buffer);
if (r <= 0) {
break;
}
writer.write(buffer, 0, r);
}
outputText = writer.toString();
|
Get_Nucleotide_TinySeq_XML |
localworker |
Scriptif ((id == void) || (id == null) || id.equals("")) {
throw new RunTimeException("port id must have a non-empty value");
}
URL url = new URL ("http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?rettype=fasta&db=nucleotide&retmode=xml&id=" + id);
BufferedReader reader = new BufferedReader (new InputStreamReader(url.openStream()));
StringWriter writer = new StringWriter();
char[] buffer = new char[1024];
while (true) {
int r = reader.read(buffer);
if (r <= 0) {
break;
}
writer.write(buffer, 0, r);
}
outputText = writer.toString();
|
Get_Protein_FASTA |
localworker |
Scriptif ((id == void) || (id == null) || id.equals("")) {
throw new RunTimeException("port id must have a non-empty value");
}
URL url = new URL ("http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?rettype=fasta&db=protein&retmode=text&id=" + id);
BufferedReader reader = new BufferedReader (new InputStreamReader(url.openStream()));
StringWriter writer = new StringWriter();
char[] buffer = new char[1024];
while (true) {
int r = reader.read(buffer);
if (r <= 0) {
break;
}
writer.write(buffer, 0, r);
}
outputText = writer.toString();
|
Get_Protein_INSDSeq_XML |
localworker |
Scriptif ((id == void) || (id == null) || id.equals("")) {
throw new RunTimeException("port id must have a non-empty value");
}
URL url = new URL ("http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?rettype=gbc&db=protein&retmode=xml&id=" + id);
BufferedReader reader = new BufferedReader (new InputStreamReader(url.openStream()));
StringWriter writer = new StringWriter();
char[] buffer = new char[1024];
while (true) {
int r = reader.read(buffer);
if (r <= 0) {
break;
}
writer.write(buffer, 0, r);
}
outputText = writer.toString();
|
Get_Protein_TinySeq_XML |
localworker |
Scriptif ((id == void) || (id == null) || id.equals("")) {
throw new RunTimeException("port id must have a non-empty value");
}
URL url = new URL ("http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?rettype=fasta&db=protein&retmode=xml&id=" + id);
BufferedReader reader = new BufferedReader (new InputStreamReader(url.openStream()));
StringWriter writer = new StringWriter();
char[] buffer = new char[1024];
while (true) {
int r = reader.read(buffer);
if (r <= 0) {
break;
}
writer.write(buffer, 0, r);
}
outputText = writer.toString();
|
Get_Protein_GBSeq_XML |
localworker |
Scriptif ((id == void) || (id == null) || id.equals("")) {
throw new RunTimeException("port id must have a non-empty value");
}
URL url = new URL ("http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?rettype=gb&db=protein&retmode=xml&id=" + id);
BufferedReader reader = new BufferedReader (new InputStreamReader(url.openStream()));
StringWriter writer = new StringWriter();
char[] buffer = new char[1024];
while (true) {
int r = reader.read(buffer);
if (r <= 0) {
break;
}
writer.write(buffer, 0, r);
}
outputText = writer.toString();
|
Outputs (8)
Name |
Description |
nuc_fasta |
|
nuc_xml |
|
nuc_insd |
|
nuc_tiny |
|
prot_fasta |
|
protein_xml |
|
prot_insd |
|
prot_tiny |
|
Datalinks (16)
Source |
Sink |
nuc_id:value |
Get_Nucleotide_INSDSeq_XML:id |
nuc_id:value |
Get_Nucleotide_FASTA:id |
nuc_id:value |
Get_Nucleotide_GBSeq_XML:id |
nuc_id:value |
Get_Nucleotide_TinySeq_XML:id |
protein_id:value |
Get_Protein_FASTA:id |
protein_id:value |
Get_Protein_INSDSeq_XML:id |
protein_id:value |
Get_Protein_TinySeq_XML:id |
protein_id:value |
Get_Protein_GBSeq_XML:id |
Get_Nucleotide_FASTA:outputText |
nuc_fasta |
Get_Nucleotide_GBSeq_XML:outputText |
nuc_xml |
Get_Nucleotide_INSDSeq_XML:outputText |
nuc_insd |
Get_Nucleotide_TinySeq_XML:outputText |
nuc_tiny |
Get_Protein_FASTA:outputText |
prot_fasta |
Get_Protein_GBSeq_XML:outputText |
protein_xml |
Get_Protein_INSDSeq_XML:outputText |
prot_insd |
Get_Protein_TinySeq_XML:outputText |
prot_tiny |
Uploader
License
All versions of this Workflow are
licensed under:
Version 1
(of 1)
Credits (1)
(People/Groups)
Attributions (0)
(Workflows/Files)
None
Shared with Groups (1)
Featured In Packs (1)
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