Function to add metadata columns to a GenomicRanges object. Potentially useful for GenomicBreaks
.
addMetadataToGRanges(
gr,
df,
gr_key = "gene_id",
df_key = "gene_id",
df_col_name = NA,
rename_meta = NA
)
An annotated GenomicRanges object with a new metadata column added.