Table loci_per_sample missing in populations.log.distribs?

120 views
Skip to first unread message

Nadege Belouard

unread,
Dec 9, 2021, 5:35:12 PM12/9/21
to Stacks
Hi!

I am running Stacks v2.58 in reference-based mode on ddGBS data. I am concerned that suboptimal DNA quality in some of my samples would result in a low amount of shared loci between samples. Unfortunately, I cannot get fresh individuals or reextract the DNA, so I did a pilot on a subset of samples (n = 12). Everything looks fine so far (number of reads, % reads aligned, coverage). I would like to check the amount of missing loci per sample after running 'populations', but I cannot find it manually and stacks-dist-extract does not find it either:
> stacks-dist-extract populations.log.distribs loci_per_sample
Error: Couldn't find section 'loci_per_sample' in 'populations.log.distribs'.
It does find the other tables (e.g. stacks-dist-extract populations.log.distribs snps_per_loc_postfilters)

I guess calculating the percentage of loci found per sample/total (table effective_coverages_per_sample from gstacks) and checking how many loci are shared by e.g. >80% of the samples (table samples_per_loc_postfilters from populations) give similar information, but I thought it was another interesting way to look at the data, even though I am not sure what would be a hard threshold in terms of missing loci. 

Do I have to add a flag to 'populations' to get this table?
Alternatively, is there anything else I could look at to see if my samples are good enough before sequencing more individuals? 

Thank you!

Best,
Nadege

Angel Rivera-Colón

unread,
Dec 10, 2021, 12:29:40 PM12/10/21
to Stacks
Hi Nadege,

The loci and SNP missing data distributions were added to the `populations.log.distribs` file on version 2.59. Once you install the updated version of the software (currently at v2.60), rerun `populations` and the command should work.

Best,
Angel

Nadege Belouard

unread,
Jan 4, 2022, 7:20:13 PM1/4/22
to Stacks
Thank you Angel, it worked! 
Best,
Nadege

Reply all
Reply to author
Forward
0 new messages