Open LTLA opened 2 years ago
Would this also handle character representation of ranges, like "chr1:1-1000"?
Not as implemented. An alternative approach would to coerce character vectors to a GRanges
via the usual constructor; this would be more elegant, but would require the extra intelligence of being able to do something like GRanges("chrA")
and give either chrA:1-MAXINT
(if the seqinfo()
is not supplied) or chrA:1-len
(if the seqinfo()
is supplied).
Closes #52 with the following syntactic sugar:
Also works for GRLs:
maxgap
andminoverlap
are currently ignored completely.type
is mostly ignored except for the GRL methods, which require all ranges in a GRL element to lie within the sequence name to consider an overlap with that name.Note that
overlapsAny
and friends don't yet work out of the box; I'm guessing aVector_OR_vector
signature needs to be added to the methods so that it can pass along the character vectors properly.