PopGenome...ReadVCF. Cannot open the file. Why?
1
0
Entering edit mode
9.3 years ago
pifferdavide ▴ 110

I downloaded 1000 Genomes data. I put both the .tbi and the .vcf file in the same folder. However, I get this error message when I try to read the file.

readVCF("C:/Users/Davide/Documents/chr22/Chr22.vcf", 1000,"22",1,100000)
open: No such file or directory
Caught exception inside whop_tabix::open('C:/Users/Davide/Documents/chr22/Chr22.vcf'):
    'whop_tabix::open : Failed to open tabix index file'
return FALSE from whoptabix_open
vcff::open : could not open tabix-index!
VCF_open : Could not open file 'C:/Users/Davide/Documents/chr22/Chr22.vcf' as tabix-indexed!
[1] FALSE
PopGenome R • 5.7k views
ADD COMMENT
1
Entering edit mode

Try indexing it first. It's looking for the index for that file.

ADD REPLY
0
Entering edit mode

Ok I am a NOOB. How do I index it?

ADD REPLY
0
Entering edit mode

Should it be chr22.vcf perhaps? R cant find a file the the name you passed.

ADD REPLY
0
Entering edit mode

I typed:

readVCF("C:/Users/Davide/Documents/chr22/Chr22.vcf", 1000,"22",1,100000)

Still get the same error message!

ADD REPLY
0
Entering edit mode

I'm pretty sure he meant readVCF("C:/Users/Davide/Documents/Chr22/chr22.vcf", 1000,"22",1,100000)

In any case, ensure that the capitalization is correct.

ADD REPLY
0
Entering edit mode
ADD REPLY
0
Entering edit mode

I downloaded chr21 to see if there was something wrong with the file. File extensions seem OK. Attached screenshot of files!

< image not found >

readVCF("C:/Users/Davide/Documents/Chr21/chr21.vcf.gzf", 1000,"21",1,100000)
ADD REPLY
0
Entering edit mode
9.0 years ago

Hi all, see also http://popgenome.weebly.com/

THX, all the best.

Bastian

ADD COMMENT

Login before adding your answer.

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