Skip to content
Prev 5192 / 21312 Next

[Bioc-devel] VariantAnnotation: writeVcf fails for factors with unused levels

Hi Michael,

Thanks for the fast patching.  However, going a step further and trying 
to read the VCF again fails (with VariantAnnotation_1.9.35
).  I'm not sure if this is related to the same issue.

#+BEGIN_SRC R

library(VariantAnnotation)
example(VRanges)
writeVcf(vr, "out.vcf") ## works
readVcf("out.vcf", "hg19") ## fails

#+END_SRC

Error in `rownames<-`(`*tmp*`, value = c("chr1", "chr2")) :
   invalid rownames length

Best wishes
Julian
On 02/05/2014 08:38 PM, Michael Lawrence wrote: