[Bioc-devel] GRanges construction fails if metadata column is named 'c'

Julian Gehring julian.gehring at embl.de
Fri Feb 22 15:19:16 CET 2013


Hi,

when constructing a 'GRanges' object with a metadata column named 'c', 
the construction fails with

"""
Error in .getClassFromCache(Class, where) :
   class should be either a character-string name or a class definition
"""

both in R-2.15.2 and the latest R-devel (2013-02-21 r62017).


Here a small example:
"""
library(GenomicRanges)

## this works
gr3 <- GRanges(seqnames=Rle(c('chr1', 'chr2', 'chr3'), c(3, 4, 3)), 
IRanges(101:110, width=10), b=21:30)

## let's rename it to 'c', and it fails
gr3 <- GRanges(seqnames=Rle(c('chr1', 'chr2', 'chr3'), c(3, 4, 3)), 
IRanges(101:110, width=10), c=21:30)
"""

Best wishes
Julian



More information about the Bioc-devel mailing list