makeGRangesFromEnsDb: Make GRanges from EnsDb object

Description Usage Arguments Details Value Note Examples

View source: R/makeGRangesFromEnsDb.R

Description

Make GRanges from EnsDb object

Usage

1
2
3
4
5
makeGRangesFromEnsDb(
  object,
  level = c("genes", "transcripts"),
  ignoreTxVersion = TRUE
)

Arguments

object

Object.

level

character(1). Return as genes or transcripts.

ignoreTxVersion

logical(1). Don't the include the transcript version in the identifier. Only applies when level = "transcripts". This simplifies identifier matching when generating a tx2gene file.

Details

Use specific EnsDb object as annotation source. Alternatively, can pass in an EnsDb package name as a character(1).

Value

GRanges.

Note

Updated 2019-09-05.

Examples

1
2
3
if ("EnsDb.Hsapiens.v75" %in% rownames(installed.packages())) {
    x <- makeGRangesFromEnsDb("EnsDb.Hsapiens.v75")
}

acidgenomics/freerange documentation built on Jan. 8, 2020, 3:45 a.m.