Vcftools Fst Calculation For Single Snps
2
3
Entering edit mode
12.1 years ago
klimklam ▴ 30

Hi there, I would like to obtain the Weir & Cockerham Fst for single SNPs from my vcf files for wished populations. I thought to use vcftools as it seemd to be straight forward, however it only gives me the 'mean Fst' and 'weighted Fst' for all SNPs in my file. I used the following command: vcftools --vcf my.vcf --weir-fst-pop pop1.txt --weir-fst-pop pop2.txt

Is there any way to make vcftools to give me a list with all single Fst values???

Thx, Felix

vcftools fst • 8.4k views
ADD COMMENT
1
Entering edit mode
12.1 years ago
Adam ★ 1.0k

These are contained in an output file with the suffix '.weir.fst'.

ADD COMMENT
0
Entering edit mode
12.1 years ago
klimklam ▴ 30

Problem solved with the help of Adam Auton via the vcftools-mailing list.

Apparently if --out is not specified (as in my case) there is automatically a out.weir.fst created in the current directory. By specifying --out you can set a certain path/name to the out file.

Best

ADD COMMENT

Login before adding your answer.

Traffic: 2111 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6