Skip to content

Commit

Permalink
changed blast DB handling
Browse files Browse the repository at this point in the history
  • Loading branch information
replikation committed Dec 30, 2019
1 parent 11662e7 commit fe09a19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions modules/databases/phage_references_blastDB.nf
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
process phage_references_blastDB {
if (params.cloudProcess) {
publishDir "${params.cloudDatabase}/", mode: 'copy', pattern: "blast_phage_DB"
publishDir "${params.cloudDatabase}/", mode: 'copy', pattern: "phage_db.*"
}
else {
storeDir "nextflow-autodownload-databases/"
storeDir "nextflow-autodownload-databases/blast_phage_DB"
}
label 'metaphinder'
input:
file(references)
output:
file("blast_phage_DB/")
file("phage_db.*")
script:
"""
makeblastdb -in ${references} -dbtype nucl -parse_seqids -out blast_phage_DB/phage_db -title phage_db
makeblastdb -in ${references} -dbtype nucl -parse_seqids -out phage_db -title phage_db
"""
}
2 changes: 1 addition & 1 deletion modules/metaphinder.nf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ process metaphinder_own_DB {
"""
rnd=${Math.random()}
mkdir ${name}
MetaPhinder.py -i ${fasta} -o ${name} -d ${database}/blast_phage_DB/phage_db
MetaPhinder.py -i ${fasta} -o ${name} -d phage_db
mv ${name}/output.txt ${name}_\${rnd//0.}.list
"""
}

1 comment on commit fe09a19

@replikation
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix for #44

Please sign in to comment.