[Bioc-devel] Special meta column name in GRanges cause invalid object
hp@ge@ @ending from fredhutch@org
Sat Aug 4 19:08:30 CEST 2018
Thanks Jialin for the report. This should be addressed in GenomicRanges
Other "show" methods suffer from the same problem (e.g. methods for
IRanges, Hits, GAlignments, etc...) and will also need to be fixed.
On 07/25/2018 05:20 PM, marlin- using gmx.cn wrote:
> 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
> 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.
> Bioc-devel using r-project.org mailing list
Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M1-B514
P.O. Box 19024
Seattle, WA 98109-1024
E-mail: hpages using fredhutch.org
Phone: (206) 667-5791
Fax: (206) 667-1319
More information about the Bioc-devel