Hi Sabrina,
You need to upgrade to the latest version of Stacks. There is a bug in
version 1.32 that causes excessive filtering. You don't need to re-run
the pipeline, just re-run populations once you have upgraded.
Regarding VCF haplotypes, you can only have two haplotypes per
individual biologically, but you can have multiple haplotypes at that
locus across the population, each individual still being biallelic. Let
me know if you still have problems with the option after upgrading.
Best,
julian
Sab Le Cam wrote:
> Hello,
>
> I have been using stacks (version 1.32) to analyse ddRADseq data (300
> samples from 20 populations)
> Classically, I have constructed a catalogue of loci and genotyped my
> samples at these loci using /denovo /modules (m=10, M=2; n=2, max 2
> stacks per locus):
> /ustacks/-->/cstacks/->/sstacks/-> /rxstack /(filtering out loci with
> bad loglikelihood scores) ->/cstacks /and /sstacks /again.
>
> Until now I have been using /populations /(whitelist, -p 16, -r 0.5)//to
> construct a reliable dataset for downstream population genetics
> analyses, exporting a random SNP per loci (--write_random_snp) in vcf
> format.
>
> The thing is, /populations /filters out loci with more than 2 alleles
> and I feel like I migth be missing important/meaningfull genetic
> diversity infos by only considering biallelic loci (or at least I'd like
> to check if I am...)
>
> I have tried to export haplotypes using /--vcf_haplotypes /in
> /populations/. It didn't work (error message! populations: unrecognized