If two different genotypes are in the same positon, this method cannot distinguish them.
• 0 views
•
link
Generate a subset of BAM or reads based on VCF
After mapping, I am interested in extracting a subset of bam or reads with certain genoytpes. Could you please advise me some efficient ways to do this?
Thanks in advance!
loop over each mutation and extract the subset of BAM using samtools view in.bam chr:start-end
If two different genotypes are in the same positon, this method cannot distinguish them.
see my other answer: Position Of Mismatches Per Read From A Sam/Bam File
Log in to answer this question.