Skip to content

Commit

Permalink
fix parse step w/o pprmeta
Browse files Browse the repository at this point in the history
  • Loading branch information
hoelzer committed Oct 12, 2020
1 parent eb5cb04 commit 1541458
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nextflow/modules/parse.nf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ process parse {
label 'python3'

input:
tuple val(name), file(fasta), val(contig_number), file(virfinder), file(virsorter), file(pprmeta)
tuple val(name), file(fasta), val(contig_number), file(virfinder), file(virsorter)

when:
contig_number.toInteger() > 0
Expand All @@ -17,7 +17,8 @@ process parse {
script:
"""
touch virsorter_metadata.tsv
parse_viral_pred.py -a ${fasta} -f ${virfinder} -p ${pprmeta} -s ${virsorter}/Predicted_viral_sequences/*.fasta &> ${name}_virus_predictions.log
echo "Header,Length,phage_score,chromosome_score,plasmid_score,Possible_source" > pprmeta.txt
parse_viral_pred.py -a ${fasta} -f ${virfinder} -p pprmeta.txt -s ${virsorter}/Predicted_viral_sequences/*.fasta &> ${name}_virus_predictions.log
"""
}

Expand Down

0 comments on commit 1541458

Please sign in to comment.