Hi LP,
The previous minor allele frequency had a few inconsistencies which I
also came across recently. In the latest release, 1.26, I have changed
how the MAF filter functions. In the previous version, the MAF was
applied per population long after all the other filtering was done and
this led to cases where 0000 was being output in the genepop file -- the
SNP is homozygous in a population (but not overall) and was being
filtered only in that population, giving the 0s.
The new version of the MAF filter is applied just after the other
filters and it is applied across all populations together -- that is, if
a SNP is filtered from one or more populations it is now removed from
all populations.
The new MAF filter prunes the SNP objects out of memory so they don't
contribute to any of the analysis code downstream (the previous version
just marked SNPs as filtered and this was harder to handle properly
downstream).
Anyway, this is a long way to say, you should try the new version and
report back on how it looks. You don't need to rerun the pipeline, just
execute the new version of populations against your existing data set.
It would be helpful to get a few more people looking at my changes (it
was quite a large code change to make it happen).
Best,
julian
lp wrote:
> Julian et al,
> Running /populations, /I have observed some differences between the
> output of SNP loci compared with what I can see/expect from the web
> interface. It's close, but not quite right in a few cases. Here is the
> populations call filtering for matching individuals, inclusion of all 4
> pops, minimum of 5 reads, and MAF):
>
> ||
> populations -P ./stacks2/-b 1-M popmap -r .75-p 4-m 5-a .03-f p_value
> --genepop --structure -t 24--fstats -W ./list
> Below is the stacks web interface for this locus (locus ID 10) loaded
> from the same data/directory (60/60 ind. included across all 4 pops).
>
> <
https://lh3.googleusercontent.com/-Wx7wJsPllNk/VOIzAiEmvpI/AAAAAAAACgg/2IKP903eQqA/s1600/Screen%2BShot%2B2015-02-13%2Bat%2B1.41.46%2BPM.png>
>
>
>
> <
https://lh6.googleusercontent.com/-XFxOq7GRZjg/VOIx6UMSJ2I/AAAAAAAACgU/V9vGBhyt39s/s1600/Screen%2BShot%2B2015-02-13%2Bat%2B1.41.28%2BPM.png>