chopMC: Keep unique ranges and collapse mcols

View source: R/chopMC.R

chopMCR Documentation

Keep unique ranges and collapse mcols

Description

Keep unique ranges by 'chopping' mcols

Usage

chopMC(x, simplify = TRUE)

Arguments

x

A GenomicRanges object

simplify

logical(1)

Details

This function finds unique ranges and chops all mcols in a manner similar to chop. Chopped columns will be returned as CompressedList columns, unless simplify = TRUE (the default). In this case, columns will be returned as vectors where possible.

Value

A GRanges object

Examples

gr <- GRanges(rep(c("chr1:1-10"), 2))
gr$id <- paste0("range", seq_along(gr))
gr$gene <- "gene1"
gr
chopMC(gr)



steveped/extraChIPs documentation built on Aug. 1, 2024, 12:36 a.m.