Unable to read large Vcf file in R
0
0
Entering edit mode
4.1 years ago
sridevi • 0

Hi, Is there any way to read large vector VCF files in R . The below doesn't seem to work, where as it works for small vcf files. vcf21<-read.vcfR("D:\ALL.chr21.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz",verbose = FALSE)

Error: Error in read.vcfR("D:\ALL.chr21.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz", : negative length vectors are not allowed

Thanks in Advance,

R VariantAnnotation VCF files • 1.4k views
ADD COMMENT
1
Entering edit mode

I added code markup to your post for increased readability. You can do this by selecting the text and clicking the 101010 button. When you compose or edit a post that button is in your toolbar, see image below:

101010 Button

The below doesn't seem to work

Does it give an error? What makes you think it doesn't work? Please be as informative as possible.

ADD REPLY
0
Entering edit mode

why do you need

compressVcf<-bgzip(from,to)

if 'from' is already compressed ??

ADD REPLY

Login before adding your answer.

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