comparative-genomics-project/workflow/modules/blast.nf

40 lines
693 B
Plaintext
Raw Normal View History

2024-10-28 10:46:05 +01:00
/** blastp all against all */
process BLAST_MAKEBLASTDB {
label 'blast'
input:
val species
path proteome
output:
path 'db.phr'
path 'db.pin'
path 'db.psq'
script:
"""
makeblastdb -in "${proteome}" -dbtype prot -out 'db' -title "${species}"
"""
}
process BLAST_BLASTP {
label 'blast'
input:
val species
path proteome
path 'db.phr'
path 'db.pin'
path 'db.psq'
output:
path "${species}.all-against-all.blastp.tsv"
script:
"""
blastp -query "${proteome}" -db 'db' -outfmt '6' -out "${species}.all-against-all.blastp.tsv"
"""
}