Skip to content

Commit

Permalink
Fix bug in blast_utils #98
Browse files Browse the repository at this point in the history
  • Loading branch information
keithchev authored Jan 17, 2024
1 parent e344660 commit 9afd286
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions ProteinCartography/blast_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,26 @@ def run_blast(
"""
database = "nr"
result = subprocess.run(
[
"blastp",
"-remote",
"-db",
database,
"-query",
query,
"-out",
out,
"-max_target_seqs",
str(max_target_seqs),
"-outfmt",
outfmt,
"-word_size",
str(word_size),
"-evalue",
str(evalue),
],
" ".join(
[
"blastp",
"-remote",
"-db",
database,
"-query",
query,
"-out",
out,
"-max_target_seqs",
str(max_target_seqs),
"-outfmt",
f"'{outfmt}'",
"-word_size",
str(word_size),
"-evalue",
str(evalue),
]
),
capture_output=True,
shell=True,
)
Expand Down

0 comments on commit 9afd286

Please sign in to comment.