"Error:Could not open map file: --out" in vcftools
1
0
Entering edit mode
9.7 years ago

I want to compare two vcf file

common_and_clinical_20150106_bgzip.vcf.gz and variants_bgzip.vcf.gz

When I run on terminal

vcftools --gzvcf common_and_clinical_20150106_bgzip.vcf.gz --gzdiff variants_bgzip.vcf.gz --diff-indv-map --out output_file

the error is

Error: Unknown option: output_file

and when I run

vcftools --gzvcf common_and_clinical_20150106_bgzip.vcf.gz --gzdiff variants_bgzip.vcf.gz --diff-indv-map --out

the error is

Reading individual mapping file. Error:Could not open map file: --out
SNP next-gen-sequencing vcftools • 4.7k views
ADD COMMENT
2
Entering edit mode
9.7 years ago
vcftools --gzvcf common_and_clinical_20150106_bgzip.vcf.gz --gzdiff variants_bgzip.vcf.gz --diff-indv-map --out output_file

The --diff-indv-map expects a file.

From Manual:

--diff-indv-map <filename> This option allows the user to specify a mapping of individual IDs in the second file to those in the first file. The program expects the file to contain a tab-delimited line containing an individual's name in file one followed by that same individual's name in file two with one mapping per line.

ADD COMMENT
0
Entering edit mode

hi Geek_y I know command --diff-indv-map but why error?

ADD REPLY
0
Entering edit mode

vcftools expects a mapping file after --diff-indv-map. As you are not specifying a filename and directly writing --out it is looking for a file named --out

If you have a mapping file then specify its name after --diff-indv-map

ADD REPLY

Login before adding your answer.

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