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
)

Value

An annotated GenomicRanges object with a new metadata column added.

Author

Michael Mansfield