This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to trim BAM files?

Hi everyone,

I have some BAM files but not the original FASTQs. Normally, I use fastp to trim FASTQs, but it does not accept BAM files. I was wondering if there is a way that can trim BAM files directly?

Thank you!

fastq bam quality trimming control

In addition to GenoMax 's answer, I'll like to mention another tool called iVar.

I am basing my trimming on base quality. I found a tool that does trimming of bam files directly (BamUtil, trimBAM) but you have to manually enter how many bases you want to trim from each end. Is there anything like fastp that does the trimming automatically based on quality?

Also, iVar seems like it's for viral amplicon-based sequencing, which I don't think would be appropriate here.

0 answers

No answers yet.

Log in to answer this question.