Hi! I have a question about bwa-mem2+samtools usag...
# meta-omics
e
Hi! I have a question about bwa-mem2+samtools usage I’m wondering are there any good solutions from nf-core not just install each module separately
Copy code
bwa index, bwa mem, samtools view, samtools sort, samtools index
but use pipes in one module like
Copy code
bwa index | bwa mem | samtools view | samtools sort | samtools index
because it saves space and basically works very good and quick with piping outputs between those tools? maybe not the best place to ask but I feel people here should have enough knowledge using bwa + samtools…
m
we do this already in the bwa mem module
I do think index and mem should be separate
e
could you share a link, please?
It does bwamem2 + samtools view or sort and can produce bam/cram and indexes
It is a pattern we use EXTENSIVELY
I do recognize that piping these modules would be sub-efficient, which is why we grouped some basic logic
e
thank you!