insertchr: Insert chromosome for in case it's missing

View source: R/utils.R

insertchrR Documentation

Insert chromosome for in case it's missing

Description

Add two columns with transformed genomic coordinates to the GRanges-class object. This is useful for making genomewide plots.

Usage

insertchr(gr)

Arguments

gr

A GRanges-class object.

Value

The input GRanges-class object with an additional metadata column containing chromosome name with 'chr'.


daewoooo/primatR documentation built on Oct. 22, 2024, 9:41 p.m.