Hi Ira,
There is not an explicit method to set a minimum depth of coverage as the software relies on the SNP-calling model to weigh the evidence. You can require the model to use a more strict alpha value, which will require more evidence, i.e. more reads, to reach a level of statistical significance. You can change the default alpha from 0.05 to, e.g. 0.01 using the --gt-alpha flag to gstacks.
I would also recommend reviewing the overall depth of coverage for all your samples and excluding any samples that have very low coverage from the analysis entirely.
Best,
julian
Hi Ira,
See our newest protocol chapter that lays out how to do it:
https://www.biorxiv.org/content/10.1101/2021.11.02.466953v1.full
(the chapter is in press).
Hi Andrea,
Changing the genotyping parameters will not affect the assembly of loci in gstacks. Assembly happens independently of genotyping, and depth of coverage is a result of assembly. However, while you should get the same number of loci, no matter what you set gt-alpha to, you should see more or less numbers of called SNPs. If you run the populations program, which will summarize the SNP calls, you should see that making gt-alpha more stringent reduces the number of SNP calls (as calls can only be made with sufficient coverage/evidence). If you look at say, the VCF export from populations, you should see the reported allele depths shift with different values of gt-alpha.
Best,
juilan