Vcftools gives error when extracting snps
1
0
Entering edit mode
6.8 years ago
BAGeno ▴ 190

Hi,

I want to extract SNPs from vcf based on list of rsids. From this I used command vcftools --vcf <vcf_file> --snps <rsID_filename> --recode --recode-INFO-all

But it is giving me error.

stat error: No such file or directory
Error: Can't determine file type of --recode-INFO-all

Please tell me how to correct it.

vcftools SNP • 3.8k views
ADD COMMENT
1
Entering edit mode

this cannot be the command you used. This is just the synopsis. What is the command you typed in the terminal.

ADD REPLY
0
Entering edit mode
vcftools --vcf <Simon.dbsnp.annotated.vcf> --snps <RSIDs.txt> --recode --recode-INFO-all

This is the command I typed on terminal.

ADD REPLY
1
Entering edit mode

I would say you have no idea of what you're doing :-) Please read h.mon's answer and read about linux I/O redirection : https://www.digitalocean.com/community/tutorials/an-introduction-to-linux-i-o-redirection

ADD REPLY
0
Entering edit mode

I took command from here. Retrieve Single Vcf From List Of Snp Rs#

ADD REPLY
3
Entering edit mode
6.8 years ago
h.mon 35k

You know < and > redirect input and output? Why don't you try the same command without them?

vcftools --vcf Simon.dbsnp.annotated.vcf --snps RSIDs.txt --recode --recode-INFO-all
ADD COMMENT
0
Entering edit mode

I tried it and it worked. Thanks

ADD REPLY

Login before adding your answer.

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