Skip to content

Commit

Permalink
host rm command
Browse files Browse the repository at this point in the history
  • Loading branch information
EnriqueDoster committed Apr 11, 2023
1 parent 39af493 commit 34ae1f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/Alignment/bwa.nf
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ process bwa_rm_contaminant_fq {
${SAMTOOLS} view -bS ${pair_id}.host.sam | ${SAMTOOLS} sort -@ ${threads} -o ${pair_id}.host.sorted.bam
rm ${pair_id}.host.sam
${SAMTOOLS} index ${pair_id}.host.sorted.bam && ${SAMTOOLS} idxstats ${pair_id}.host.sorted.bam > ${pair_id}.samtools.idxstats
${SAMTOOLS} view -h -f 1 -F 12 -b ${pair_id}.host.sorted.bam -o ${pair_id}.host.sorted.removed.bam
${SAMTOOLS} view -h -f 4 -b ${pair_id}.host.sorted.bam -o ${pair_id}.host.sorted.removed.bam
${BEDTOOLS} \
bamtofastq \
-i ${pair_id}.host.sorted.removed.bam \
-fq ${pair_id}.non.host.R1.fastq.gz \
-fq2 ${pair_id}.non.host.R2.fastq.gz
rm *.bam
"""

Expand Down

0 comments on commit 34ae1f1

Please sign in to comment.