Skip to content

Commit 91e20e5

Browse files
authored
let taxonomy.smk use chunked blast db
1 parent faabbf0 commit 91e20e5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

workflow/rules/taxonomy.smk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ if config['blast']['tax2id'] == "" or config['blast']['tax2id'] == "none":
651651
shell:
652652
"""
653653
if [ -s {input} ]; then
654-
if [ ! -f "{config[blast][db_path]}/{config[blast][tax_db]}.nin" ]
654+
if [ ! -f "{config[blast][db_path]}/{config[blast][tax_db]}.nin" -a ! -f "{config[blast][db_path]}/{config[blast][tax_db]}.nal" ]
655655
then
656656
makeblastdb -dbtype nucl -in {config[blast][db_path]}/{config[blast][tax_db]} \
657657
-out {config[blast][db_path]}/{config[blast][tax_db]} &> {log}
@@ -733,7 +733,7 @@ if config['blast']['tax2id'] == "" or config['blast']['tax2id'] == "none":
733733
shell:
734734
"""
735735
if [ -s {input} ]; then
736-
if [ ! -f "{config[blast][db_path]}/{config[blast][tax_db]}.nin" ]
736+
if [ ! -f "{config[blast][db_path]}/{config[blast][tax_db]}.nin" -a ! -f "{config[blast][db_path]}/{config[blast][tax_db]}.nal" ]
737737
then
738738
makeblastdb -dbtype nucl -in {config[blast][db_path]}/{config[blast][tax_db]} \
739739
-out {config[blast][db_path]}/{config[blast][tax_db]} &> {log}

0 commit comments

Comments
 (0)