Visualize Vcf In Igv
1
0
Entering edit mode
10.7 years ago
mad.cichlids ▴ 140

when i was trying to use R to visualize my VCF file I first loaded the file and compressed it:

 vcf <- readVcf(str.vcf, "Genome")
 compressVcf <- bgzip(vcf, tempfile())

but when i run indexTabix

idx <- indexTabix(compressVcf, "vcf")

Error in value[3L] : internal: samtools invoked 'exit(1)'; see warnings() and restart R file: /tmp/RtmpTzJzHz/filea305fdaaade In addition: Warning message: In doTryCatch(return(expr), name, parentenv, handler) : [ti_index_core] the file out of order at line 19

It seems my file is not in order, but what kind of order or how should i sort my vcf or genome ?

Thanks!

igv vcf • 3.1k views
ADD COMMENT
0
Entering edit mode

Do the chromosome names match EXACTLY between the vcf and the genome?

ADD REPLY
0
Entering edit mode

It seems my file is not in order, but what kind of order or how should i sort my vcf or genome ?

ADD REPLY
2
Entering edit mode
10.7 years ago
mad.cichlids ▴ 140

never mind, the answer seems lie in this post Tabix -p vcf ERROR

ADD COMMENT

Login before adding your answer.

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