[Bioc-devel] as.character method for GenomicRanges?
Peter Haverty
haverty.peter at gene.com
Fri Apr 24 18:43:10 CEST 2015
Would people be interested in having this:
setMethod("as.character", "GenomicRanges",
function(x) {
paste0(seqnames(x), ":", start(x), "-", end(x))
})
?
I find myself doing that a lot to make unique names or for output that
goes to collaborators. I suppose we might want to tack on the strand if it
isn't "*". I have some code for going the other direction too, if there is
interest.
Pete
____________________
Peter M. Haverty, Ph.D.
Genentech, Inc.
phaverty at gene.com
[[alternative HTML version deleted]]
More information about the Bioc-devel
mailing list