Thanks Jialin for the report. This should be addressed in GenomicRanges 1.33.13: https://github.com/Bioconductor/GenomicRanges/commit/9fa12796dcb076ddb34b6f2c8115e358d9a0aeab Other "show" methods suffer from the same problem (e.g. methods for IRanges, Hits, GAlignments, etc...) and will also need to be fixed. Cheers, H.
On 07/25/2018 05:20 PM, marlin- at 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
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
_______________________________________________ Bioc-devel at r-project.org mailing list https://urldefense.proofpoint.com/v2/url?u=https-3A__stat.ethz.ch_mailman_listinfo_bioc-2Ddevel&d=DwICAg&c=eRAMFD45gAfqt84VtBcfhQ&r=BK7q3XeAvimeWdGbWY_wJYbW0WYiZvSXAJJKaaPhzWA&m=PwFdehB8IhL87ShwWLdDpdx99F-FOlD4NFzpuyj8DW4&s=o2bpk0bYXdkI0IqA0m-iE_WWff1Z1Agsz8ewYo4Z8ac&e=
Herv? Pag?s 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 at fredhutch.org Phone: (206) 667-5791 Fax: (206) 667-1319