Skip to content
Prev 6541 / 21312 Next

[Bioc-devel] VariantAnnotation::readVcf(fl, seqinfo(scanVcfHeader(fl)) problem

you're right, i was just thinking about b37 (w/o MT) and hg19 but one 
can have the same seqlevelsStyle with two different builds such as hg18 
and hg19.  Well then, the solution i was using below,

genome(vcf) <- genome(txdb)[intersect(names(genome(vcf)),
names(genome(txdb)))]

was not that bad, but it's a bit cumbersome to write, something like 
what you propose below looks better to me. I also wonder why each 
chromosome should have a genome build (which forces me to intersect in 
the line before), could not we assume that all chromosomes come from the 
same build?
On 10/25/14 12:56 AM, Michael Lawrence wrote: