Hello communauty, the question is in the title: How to Trim bam file reads to remove all nucleotide over a certain length.
For fastq it sounds possible with cutadapt, but I need to do that on a bam file.
On this post Trim bam file reads to the same length they talk about reformat.sh
but it just remove read over/under a certain length.
I have tried samtools ampliconclip
thinking I could cheat to perform what I want wihtout success...
I have tried Cycle based clipping
from GATK but it remove all reads (WellformedReadFilter remove everything...)
Any idea?
@Pierre will likely have something either pre-written or ... Did you check his
jvarkit
(LINK) page?