Skip to content

Commit

Permalink
Correct solution to Ex. 4.B to with with blastp instead of blastpgp.
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardomurri committed Nov 14, 2016
1 parent a815644 commit 2835637
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/programmers/tutorials/workflows/solutions/ex4b.py
Expand Up @@ -62,7 +62,7 @@ def new_tasks(self, extra):
return apps_to_run


from gc3libs.quantity import GB
from gc3libs.quantity import GB, minutes

class BlastApp(Application):
"""Run BLAST on two files."""
Expand All @@ -71,10 +71,8 @@ def __init__(self, input1, input2, e_value, output_fmt):
inp2 = basename(input2)
Application.__init__(
self,
# NOTE: does not work as written! BLAST+ is required
# to compare two FASTA files
arguments=["blastpgp", "-i", inp1, "-d", inp2,
"-e", e_value, "-m", output_fmt, "-o", "output.txt"],
arguments=["blastp", "-query", inp1, "-subject", inp2,
"-evalue", e_value, "-outfmt", output_fmt, "-out", "output.txt"],
inputs=[input1, input2],
outputs=["output.txt"],
output_dir=("blast-" + inp1 + "-" + inp2 + ".d"),
Expand Down

0 comments on commit 2835637

Please sign in to comment.