diversity statistics: nucleotide and heterozygosity

180 views
Skip to first unread message

Andrea Bernard

unread,
Mar 17, 2022, 11:52:24 AM3/17/22
to Stacks

Hi Julian (and everyone),

I’m confused as to how to report nucleotide and heterozygosity values generated from the module populations.

I’ve run the Stacks pipeline, output a vcf file using populations (parameters: -p 3 -r 0.2 –write-single-snp) and then subsequently filtered the vcf SNP dataset using vcftools (for coverage, missing data, minor allele frequency, etc.).

I would like to report the nucleotide and heterozygosity values derived from stacks:populations (variant and fixed positions); however, since I filtered these data using vcftools AFTER having generated these diversity indices (nucleotide and heterozygosity), are these values still meaningful? 

Any thoughts or guidance you (or anyone) may have on this topic would be helpful.

Many thanks,

Andrea

Catchen, Julian

unread,
Mar 18, 2022, 10:46:43 AM3/18/22
to stacks...@googlegroups.com

Hi Andrea,

 

If you filter with vcftools after exporting from populations, you will change all of those values, of course. You can just do your filtering directly with populations – it can filter based on missing data and maf, and indirectly for coverage (by adjusting the required p-value of genotype calls).

 

julian

Andrea Bernard

unread,
Mar 21, 2022, 1:51:40 PM3/21/22
to Stacks
Hi Julian,
Thanks for your response. Absolutely, as I figured.
Best wishes.
AMB

ling

unread,
Mar 23, 2022, 11:02:59 PM3/23/22
to Stacks
Hi Andrea,
You can run the populations moudel again and use the filtered files as input (filter.vcf). Such as : populations -V filter.vcf -O out_path -M popmap --fstats

ling

Andrea Bernard

unread,
Apr 1, 2022, 1:01:43 PM4/1/22
to Stacks
Thanks, Ling.
Reply all
Reply to author
Forward
0 new messages