Hi. Welcome to BioStar. For future reference, this comment should have been added as a comment to one of the answers or the original question. Also, the best way to thank people for their answers is by voting up the answers you find useful by pressing those triangle buttons along the left hand side of the page. Good luck and welcome to the community!
Hi, I'm working on polypoid plant. Where using samtools and BCF tools to call SNP. We realize that bcftools have difficulty calling some simplex genotype and i would like doing it on my own. Is there a way to extract the number of reference and alternative allele from a mpileup format?
Thanks,
Gabrielle
4 answers
You can use Bio::DB::Sam to get reference and alternative allele counts directly from a BAM file.
Thanks, i will look at those option
Rather than hacking samtools to handle polyploid detection, I would suggest using FreeBayes. It's designed to detect SNPs, indels, and complex variants (such as MNPs and other block substitutions) without restriction of ploidy.
I'm the author, so please email me if you have any questions.
Log in to answer this question.
It might be worth checking out other variant calling software. For example I have been using SNVer for pooled and non diploid data. http://snver.sourceforge.net/