genome / bam-readcount

Count bases in BAM/CRAM files
MIT License
298 stars 95 forks source link

Identify reads aligned to mutant and wild type sequences #98

Closed rpauly closed 2 years ago

rpauly commented 2 years ago

Hi, Is there a way to identify the number of reads that aligned to the mutant and wild type sequences using bam-readcounts? Thanks!

chrisamiller commented 2 years ago

Yes, assuming that you know the location of informative sites in the genome, querying that position with bam-readcount will return the counts of each base at that location and allow you to count wild type or mutant reads.