Bioconductor / GenomicRanges

Representation and manipulation of genomic intervals
https://bioconductor.org/packages/GenomicRanges
41 stars 17 forks source link

gpos/GPos equivalent for granges/GRanges #34

Closed MalteThodberg closed 4 years ago

MalteThodberg commented 4 years ago

Currently, calling granges on a GPos-object returns a GRanges-object. It would be nice if granges returned either the corresponding GPos-object, or adding a separate gpos function for the GPos class.

hpages commented 4 years ago

I think I will just make granges() return a GPos object. Will be consistent with ranges() returning an IPos object. Also that means we avoid the introduction of a new generic.

Thanks for your feedback.

MalteThodberg commented 4 years ago

Sounds great! I have closed the issue