BLAST workflow
Created: 2010-05-13 02:15:45
Last updated: 2010-05-13 02:17:34
You can get three BLAST results against DDBJ, swiss-prot and PDB by using accession number of DDBJ.
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (0)
Titles (1)
Descriptions (0)
Dependencies (0)
Inputs (1)
Name |
Description |
DDBJ_accession_number |
Accession Number
|
Processors (9)
Name |
Type |
Description |
Make_query_for_retrieving_sample_sequence |
beanshell |
ScriptString url = "http://xml.ddbj.nig.ac.jp/rest/Invoke?";
url += "service=GetEntry&method=getFASTA_DDBJEntry&accession="+accession;
|
Get_sample_sequence_by_GetEntry_getFASTA_DDBJEntry |
localworker |
ScriptURL inputURL = null;
if (base != void) {
inputURL = new URL(new URL(base), url);
}
else {
inputURL = new URL(url);
}
URLConnection con = inputURL.openConnection();
InputStream in = con.getInputStream();
InputStreamReader isr = new InputStreamReader(in);
Reader inReader = new BufferedReader(isr);
StringBuffer buf = new StringBuffer();
int ch;
while ((ch = inReader.read()) > -1) {
buf.append((char)ch);
}
inReader.close();
contents = buf.toString();
//String NEWLINE = System.getProperty("line.separator");
//
//URL inputURL = null;
//if (base != void) {
// inputURL = new URL(new URL(base), url);
//} else {
// inputURL = new URL(url);
//}
//StringBuffer result = new StringBuffer();
//BufferedReader reader = new BufferedReader(new InputStreamReader(inputURL.openStream()));
//String line = null;
//while ((line = reader.readLine()) != null) {
// result.append(line);
// result.append(NEWLINE);
//}
//
//contents = result.toString();
|
BLAST_option_parameter |
stringconstant |
Value-v 50 -b 5 |
Make_query_for_BLAST_against_DDBJ_bacteria_division |
beanshell |
ScriptString service = "Blast";
String method = "searchParam";
String program ="blastn";
String database ="ddbjbct";
String encode = "UTF8";
String blastQuery = "service=" + service
+ "&method=" + method
+ "&program=" + program
+ "&database=" + database
+ "&query="+ URLEncoder.encode(query,encode)
+ "¶m="+ URLEncoder.encode(param,encode); |
Make_query_for_BLAST_against_SwissProt_database |
beanshell |
ScriptString service = "Blast";
String method = "searchParam";
String program ="blastx";
String database ="SWISS";
String encode = "UTF8";
String blastQuery = "service=" + service
+ "&method=" + method
+ "&program=" + program
+ "&database=" + database
+ "&query="+ URLEncoder.encode(query,encode)
+ "¶m="+ URLEncoder.encode(param,encode); |
Make_query_for_BLAST_against_PDB_database |
beanshell |
ScriptString service = "Blast";
String method = "searchParam";
String program ="blastx";
String database ="PDB";
String encode = "UTF8";
String blastQuery = "service=" + service
+ "&method=" + method
+ "&program=" + program
+ "&database=" + database
+ "&query="+ URLEncoder.encode(query,encode)
+ "¶m="+ URLEncoder.encode(param,encode); |
Execute_BLAST_against_DDBJ_bacteria_division |
beanshell |
ScriptURL url = new URL("http://xml.nig.ac.jp/rest/Invoke");
URLConnection urlc = url.openConnection();
urlc.setDoOutput(true);
urlc.setAllowUserInteraction(false);
PrintStream ps = new PrintStream(urlc.getOutputStream());
ps.print(query);
ps.close();
BufferedReader br = new BufferedReader(new InputStreamReader(urlc.getInputStream()));
StringBuffer sb = new StringBuffer();
String line = null;
while ((line = br.readLine()) != null) {
sb.append(line + "\n");
}
String contents = sb.toString();
br.close(); |
Execute_BLAST_against_SwissProt_database |
beanshell |
ScriptURL url = new URL("http://xml.nig.ac.jp/rest/Invoke");
URLConnection urlc = url.openConnection();
urlc.setDoOutput(true);
urlc.setAllowUserInteraction(false);
PrintStream ps = new PrintStream(urlc.getOutputStream());
ps.print(query);
ps.close();
BufferedReader br = new BufferedReader(new InputStreamReader(urlc.getInputStream()));
StringBuffer sb = new StringBuffer();
String line = null;
while ((line = br.readLine()) != null) {
sb.append(line + "\n");
}
String contents = sb.toString();
br.close();
|
Execute_BLAST_against_PDB_database |
beanshell |
ScriptURL url = new URL("http://xml.nig.ac.jp/rest/Invoke");
URLConnection urlc = url.openConnection();
urlc.setDoOutput(true);
urlc.setAllowUserInteraction(false);
PrintStream ps = new PrintStream(urlc.getOutputStream());
ps.print(query);
ps.close();
BufferedReader br = new BufferedReader(new InputStreamReader(urlc.getInputStream()));
StringBuffer sb = new StringBuffer();
String line = null;
while ((line = br.readLine()) != null) {
sb.append(line + "\n");
}
String contents = sb.toString();
br.close();
|
Beanshells (7)
Name |
Description |
Inputs |
Outputs |
Make_query_for_retrieving_sample_sequence |
|
accession
|
url
|
Make_query_for_BLAST_against_DDBJ_bacteria_division |
|
query
param
|
blastQuery
|
Make_query_for_BLAST_against_SwissProt_database |
|
query
param
|
blastQuery
|
Make_query_for_BLAST_against_PDB_database |
|
query
param
|
blastQuery
|
Execute_BLAST_against_DDBJ_bacteria_division |
|
query
|
contents
|
Execute_BLAST_against_SwissProt_database |
|
query
|
contents
|
Execute_BLAST_against_PDB_database |
|
query
|
contents
|
Outputs (3)
Name |
Description |
ddbjbct_result |
|
PDB_result |
|
SWISS_result |
|
Datalinks (14)
Source |
Sink |
DDBJ_accession_number |
Make_query_for_retrieving_sample_sequence:accession |
Make_query_for_retrieving_sample_sequence:url |
Get_sample_sequence_by_GetEntry_getFASTA_DDBJEntry:url |
BLAST_option_parameter:value |
Make_query_for_BLAST_against_DDBJ_bacteria_division:param |
Get_sample_sequence_by_GetEntry_getFASTA_DDBJEntry:contents |
Make_query_for_BLAST_against_DDBJ_bacteria_division:query |
BLAST_option_parameter:value |
Make_query_for_BLAST_against_SwissProt_database:param |
Get_sample_sequence_by_GetEntry_getFASTA_DDBJEntry:contents |
Make_query_for_BLAST_against_SwissProt_database:query |
BLAST_option_parameter:value |
Make_query_for_BLAST_against_PDB_database:param |
Get_sample_sequence_by_GetEntry_getFASTA_DDBJEntry:contents |
Make_query_for_BLAST_against_PDB_database:query |
Make_query_for_BLAST_against_DDBJ_bacteria_division:blastQuery |
Execute_BLAST_against_DDBJ_bacteria_division:query |
Make_query_for_BLAST_against_SwissProt_database:blastQuery |
Execute_BLAST_against_SwissProt_database:query |
Make_query_for_BLAST_against_PDB_database:blastQuery |
Execute_BLAST_against_PDB_database:query |
Execute_BLAST_against_DDBJ_bacteria_division:contents |
ddbjbct_result |
Execute_BLAST_against_PDB_database:contents |
PDB_result |
Execute_BLAST_against_SwissProt_database:contents |
SWISS_result |
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 (0)
None
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