Count number of InDels per chromosome in Raw vcf file
Hello to all,
I want to count the number of InDels for each chromosome in the Raw VCF file.
What is the best idea?
Best Regard
Mostafa
• 3,390 views
•
link
1 answer
Via BEDOPS convert2bed:
$ vcf2bed --snvs < foo.vcf | wc -l
$ vcf2bed --insertions < foo.vcf | wc -l
$ vcf2bed --deletions < foo.vcf | wc -l
• 1 views
•
link
Log in to answer this question.
see How to count SNPs, InDels , Count Of Variants , SNP,INDEL counting per chromosomes in vcf
many thanks for your reply,
Now, if i want to count the number of SNPs for each Breed, what is the best idea?
i have 5 breed in the my raw vcf.
I used these two scripts to count insertions and deletions, but the output was zero?
insertions:
deletions:
That is not the solution posted in A: How to count SNPs, InDels
That is not a good solution, as you might have variants with multiple alleles, see this example:
This would be a InDel count with your script, but is a SNP. Refer to the offered solutions.