Entering edit mode
10 weeks ago
alba
•
0
Hello.
I'm trying to view substitutions specific to sample-names from my vcf. I have ran
bcftools stats --samples '-' file1.vcf.gz file2.vcf.gz > both_vcf.gz.stats
as well as
plot-vcfstats --sample-names both_vcf.gz.stats -p output_dir/
The stats look like the following:
I would like to obtain a plot from plot-vcfstats that gives the substitution types per sample-name, but instead i get 1) it looks like it is not able to count the variants on a sample-specific level as shown in Figure 3; and 2) the substitution plot from vcfstats gives only the info from Figure 1.
Any help to understand what's going on is greatly appreciated, thank you!
Thank you very much! That works but I'm wondering, is there any way plot-vcfstats can read that table? As it is not a file directly generated by bcftools stats, it doesn't recognize it.
it could be a simple plot using R...
yep! i just did it with matplotlib, i thought maybe there was a way of doing it quicker with the bcftools options. Thank you very much!