Isoelectric Point
Created: 2011-07-19 12:26:12
Last updated: 2011-07-20 14:20:18
Calculates the Isoelectric Point for a protein sequence using a protein accession as input
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Titles (1)
Descriptions (1)
Calculates the Isoelectric Point for a protein accession |
Dependencies (0)
Inputs (1)
Name |
Description |
proteinId |
Protein accession
|
Processors (3)
Name |
Type |
Description |
calculate_IP |
soaplab |
Endpointhttp://www.ebi.ac.uk/soaplab/services/protein_composition.iep |
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);
}
reader.close();
outputText = writer.toString();
|
getIEP |
beanshell |
ScriptString acc_iep = "";
String uniprotAcc = "";
String[] uniprotSplit = iepInput.split("IEP of ");
for(int i=1; i<(uniprotSplit.length); i++){
String[] uniprotSplitSplit = uniprotSplit[i].split(" from ");
uniprotAcc = uniprotSplitSplit[0];
}
String[] ipSplit = iepInput.split("Isoelectric Point = ");
for(int i=1; i<(ipSplit.length); i++){
String[] ipSplitSplit = ipSplit[i].split("\n");
String ip = ipSplitSplit[0];
Float ipValue = Float.parseFloat(ip);
acc_iep = uniprotAcc + "\t" + ipValue;
} |
Beanshells (1)
Name |
Description |
Inputs |
Outputs |
getIEP |
|
iepInput
|
acc_iep
|
Outputs (2)
Name |
Description |
result |
|
id_iep |
|
Datalinks (5)
Source |
Sink |
Get_Protein_FASTA:outputText |
calculate_IP:sequence_direct_data |
proteinId |
Get_Protein_FASTA:id |
calculate_IP:outfile |
getIEP:iepInput |
calculate_IP:outfile |
result |
getIEP:acc_iep |
id_iep |
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