liftover_grlist: Liftover peak list

View source: R/liftover_grlist.R

liftover_grlistR Documentation

Liftover peak list

Description

Perform genome build liftover to one or more GRanges objects at once.

Usage

liftover_grlist(
  grlist,
  input_build,
  output_build = "hg19",
  style = "UCSC",
  as_grangeslist = FALSE,
  merge_all = FALSE,
  verbose = TRUE
)

Arguments

grlist

A named list of GRanges objects, or simply a single unlisted GRanges object.

input_build

The genome build of grlist.

output_build

Desired genome build for grlist to be lifted over to.

style

Chromosome style, set by seqlevelsStyle.

  • "UCSC" : Uses the chromosome style "chr1".

  • "NCBI" : Uses the chromosome style "1"

as_grangeslist

Return as a GRangesList.

merge_all

Merge all GRanges into a single GRanges object.

verbose

Print messages.

Value

Named list of lifted GRanges objects.

Examples

grlist <- list("gr1"=GenomicRanges::GRanges("4:1-100000"),
               "gr2"=GenomicRanges::GRanges("6:1-100000"),
               "gr3"=GenomicRanges::GRanges("8:1-100000"))

grlist_lifted <- liftover_grlist(grlist = grlist,
                                 input_build = "hg19",
                                 output_build="hg38")

neurogenomics/PeakyFinders documentation built on March 24, 2024, 4:28 p.m.