[Bioc-devel] Special meta column name in GRanges cause invalid object

m@rli@- m@ili@g off gmx@c@ m@rli@- m@ili@g off gmx@c@
Thu Jul 26 02:20:56 CEST 2018


Dear bioc-devel,

I am not sure whether I should bring this up. This is a problem that would happen only in some rare cases. When the name of a meta column of GRanges is the name of an argument in the data.frame function, such as stringsAsFactors, the GRanges will not able to print and some functions will not work.

For example, 
gr = GRanges('chr1', IRanges(1, 14))
gr$stringsAsFactors = -42
gr

I believe this is due to S4Vectors use do.call(data.frame) to pass columns and some arguments to data.frame by joining them together as a list.


Best,
Jialin


More information about the Bioc-devel mailing list