Dear Biostars Users,
Is there a way to collapse mapped reads in sorted bam files based on the start and end position coordinates regardless of sequences? I would like to collapse the number of reads with the same start and end position as "1" although these reads have different sequences. I attach an image here [ https://ibb.co/J7Fj00T] to illustrate my points if not clear in words.
Xiao
Use: How to add images to a Biostars post
Thanks man. This is right on
Thanks, I followed your suggestions and re-uploaded my image. Feel free to let me know if there is any problem.
You could do this in R with GenomicRanges/Alignments relatively easily