All-vs-All blastP commands
Created: 2015-04-17 14:08:27
Creates all the necessary command-line commands to execute all-vs-all blastP from the given FASTA files. Includes making the necessary database. Does not execute the commands. For OSX and UNIX/Linux only (due to path separator).
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (0)
Titles (0)
Descriptions (0)
Dependencies (0)
Inputs (5)
Name |
Description |
dbName |
|
fastaFiles |
|
addBlastPCommands |
Additional command line arguments for the blastp program.
|
additionalMakeDBCommands |
|
blastBin |
|
Processors (3)
Name |
Type |
Description |
BlastP_command |
beanshell |
Script String createBlastCommand(String blastBin, String fastaFile, String databaseName, String additionalCommands, String outPrefix){
StringBuilder contents = new StringBuilder();
contents.append(blastBin).append("blastp -query ").append(fastaFile);
contents.append(" -db ").append(databaseName);
contents.append(" -out ").append(outPrefix).append(".out");
if (additionalCommands != null && !additionalCommands.isEmpty()) {
contents.append(" ").append(additionalCommands);
}
return contents.toString();
}
if(additionalCommands == void){
additionalCommands = null;
}
if(blastBin == void || blastBin == null){
blastBin = "";
}
if(!blastBin.isEmpty() && !blastBin.endsWith("/")){
blastBin = blastBin + "/";
}
if(outPrefix == void || outPrefix == null){
outPrefix = "blast";
}
List commandList = new LinkedList();
int i = 0;
for(String fasta : fastaFiles){
String command = createBlastCommand(blastBin, fasta, databaseName, additionalCommands, outPrefix);
commandList.add(command);
i++;
}
|
MakeDB_command |
beanshell |
Script String createBlastCommand(String blastBin, List fileNames, String databaseName, String additionalCommands){
StringBuilder contents = new StringBuilder();
contents.append(blastBin).append("makeblastdb -dbtype prot -in ");
contents.append("\"");
for (String fileName : fileNames) {
contents.append(fileName).append(" ");
}
contents.replace(contents.length() - 1, contents.length(), "\"");
contents.append(" -out ").append(databaseName);
if (additionalCommands != null) {
contents.append(" ").append(additionalCommands);
}
return contents.toString();
}
if(blastBin == void || blastBin == null){
blastBin = "";
}
if(!blastBin.isEmpty() && !blastBin.endsWith("/")){
blastBin = blastBin + "/";
}
if(additionalCommands == void){
additionalCommands = null;
}
command = createBlastCommand(blastBin, fastaFiles, databaseName, additionalCommands);
|
outPrefix_value |
stringconstant |
Valueblast |
Beanshells (2)
Name |
Description |
Inputs |
Outputs |
BlastP_command |
|
fastaFiles
databaseName
additionalCommands
blastBin
outPrefix
|
commandList
|
MakeDB_command |
|
fastaFiles
databaseName
additionalCommands
blastBin
|
command
|
Outputs (2)
Name |
Description |
makedbCommand |
|
blastPCommands |
|
Datalinks (11)
Source |
Sink |
dbName |
BlastP_command:databaseName |
addBlastPCommands |
BlastP_command:additionalCommands |
blastBin |
BlastP_command:blastBin |
fastaFiles |
BlastP_command:fastaFiles |
outPrefix_value:value |
BlastP_command:outPrefix |
dbName |
MakeDB_command:databaseName |
fastaFiles |
MakeDB_command:fastaFiles |
additionalMakeDBCommands |
MakeDB_command:additionalCommands |
blastBin |
MakeDB_command:blastBin |
MakeDB_command:command |
makedbCommand |
BlastP_command:commandList |
blastPCommands |
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