Error:Could not open individual file
1
0
Entering edit mode
3.1 years ago
kk.mahsa ▴ 150

When I ran the following command to Fst calculation

vcftools --gzvcf All_samples.vcf.gz --weir-fst-pop Pop1_list.txt --weir-fst-pop Pop2_list.txt --fst-window-size 50000 --fst-window-step 25000 --out pop1_pop2_50_25.windowed.weir.txt

I get this error

 Error:Could not open individual file: Pop1_list.txt

format of Pop1_list.txt is one individual per line like

ind1
ind2
ind3

what is wrong?

Fst VCF vcftools • 1.3k views
ADD COMMENT
0
Entering edit mode
3.1 years ago

please provide further information on your current working directory and the directory in which Pop1_list.txt is located.

VCFtools is pseudo-deprecated, by the way.

ADD COMMENT
0
Entering edit mode

Thank you for response; Current working directory located in the one external harddisk that contain only pop1_list.txt and also pop2_list.txt files. The inputted vcf file locate in another folder.

Did you mean the information I gave or do you need other information to help me?

ADD REPLY
0
Entering edit mode

If these files are in different folders, then your command, as run, will produce an error. Can you please look up 'absolute' and 'relative' paths?

ADD REPLY
0
Entering edit mode

I put all the input files in one folder and tried running vcftools with absolute and relative paths and unfortunately, still the problem is not solved. Is it possible that my individual files were not prepared properly?But in every file, there should not be people related to a population, each individual per line?

i have 16 samples that 10 samples belong to pop1 and 6 to pop2. I created two text files containing 10 and 6 lines, respectively.

ADD REPLY

Login before adding your answer.

Traffic: 1896 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