Skip to content

Commit

Permalink
log files from ivar trim std err
Browse files Browse the repository at this point in the history
  • Loading branch information
erinyoung authored Oct 31, 2023
1 parent 7c214b9 commit 187c266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ivar.nf
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ process ivar_trim {
# trimming the reads
ivar trim !{params.ivar_trim_options} -e -i !{bam} -b !{primer_bed} -p ivar_trim/!{sample}.primertrim | tee -a $log
if [ -S "$log" ] ; then grep "Found" -A 10000 $log | grep -A 10000 "primers in BED file" > ivar_trim/!{sample}_ivar.log ; else touch ivar_trim/!{sample}_ivar.log ; fi
if [ -S "$log" ] ; then grep "Found" -A 10000 $log | grep -A 10000 "primers in BED file" 2> ivar_trim/!{sample}_ivar.log ; else touch ivar_trim/!{sample}_ivar.log ; fi
# sorting and indexing the trimmed bams
samtools sort ivar_trim/!{sample}.primertrim.bam -o ivar_trim/!{sample}.primertrim.sorted.bam | tee -a $log
Expand Down

0 comments on commit 187c266

Please sign in to comment.