Skip to content

Commit

Permalink
v1.0.2
Browse files Browse the repository at this point in the history
Removed -target_only from blastdbcmd causing occasionally the command to end prematurely
  • Loading branch information
GDKO committed Apr 5, 2023
1 parent cc3a32f commit 133825d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.pyc
*.dev
.DS_Store
1 change: 1 addition & 0 deletions avp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#v1.0.2

from depot.interface import main

Expand Down
2 changes: 1 addition & 1 deletion depot/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from docopt import docopt

def main():
args = docopt(__doc__,version='1.0.1', options_first=True)
args = docopt(__doc__,version='1.0.2', options_first=True)
if args['<module>'] == 'prepare':
import depot.prepare as prepare
prepare.main()
Expand Down
2 changes: 1 addition & 1 deletion depot/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def main():
setblastlog_path = os.path.join(tmp_folder,"setblast.log")

if mode == "blast":
blastdbcmd_command = 'blastdbcmd -db '+ config_opts["blast_db_path"] + ' -dbtype ' + dbtype + ' -entry_batch ' + extract_id_path + ' -target_only -outfmt ">%a@%T\n%s" -logfile ' + setblastlog_path + ' -out ' + setblastfa_path
blastdbcmd_command = 'blastdbcmd -db '+ config_opts["blast_db_path"] + ' -dbtype ' + dbtype + ' -entry_batch ' + extract_id_path + ' -outfmt ">%a@%T\n%s" -logfile ' + setblastlog_path + ' -out ' + setblastfa_path
subprocess.call(blastdbcmd_command, shell= True)
else: # GK This is specific to SwissProt for now, have to test for UniProt in the future
if mode == "sp":
Expand Down

0 comments on commit 133825d

Please sign in to comment.