Bioconductor / GenomicRanges

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

Annotate each range in a Granges object with a vector #64

Closed gevro closed 2 years ago

gevro commented 2 years ago

Is there a way to annotate each range in a Granges with a vector?

For example, if I want to annotate a list of specific positions within each range, and for those positions to be stored within a metadata column. This would mean that the metadata column needs to store a list, where each element of the list stores a vector of positions.

And this could be generalized to other data types, not just a vector of integer positions.

gevro commented 2 years ago

Nevermind, I see this is possible, by just adding a column that is defined as list().