clean_granges: Clean GRanges

View source: R/clean_granges.R

clean_grangesR Documentation

Clean GRanges

Description

Remove columns from the metadata (GenomicRanges::mcols) that conflicts with GRanges conventions.

Usage

clean_granges(
  gr,
  nono_cols = c("seqnames", "ranges", "strand", "seqlevels", "seqlengths", "isCircular",
    "start", "end", "width", "element")
)

Arguments

gr

A GRanges object.

nono_cols

Problematic columns to search for and remove (if present).

Value

Cleaned GRanges object.


serachoi1230/EpiCompare documentation built on Jan. 30, 2024, 11:37 a.m.