Way to filter winnowmap2 BAM files for read lengths
Closed this issue · 3 comments
Musketeer-D commented
Could I use 'samtools view -h Winnowmap.bam | awk 'length($10) > 50000 || $1 ~ /^@/' | samtools view -bS - > 50k.bam' to get winnowmap2 BAM files filtered for read lengths greater than 50 kb? like mentioned in 'Epigenetic Patterns in a Complete Human Genome' ?
Musketeer-D commented
I didn't find the step to get BAM files filtered for read lengths ike mentioned in 'Epigenetic Patterns in a Complete Human Genome' paper in this repositories.
gmoneyomics commented
Hi. Yes, that is exactly how we did it. Refer to line 7 here:
Musketeer-D commented
Thank you for your kind help !