sesameData_getTxnGRanges: convert GRangesList to transcript GRanges

View source: R/genome.R

sesameData_getTxnGRangesR Documentation

convert GRangesList to transcript GRanges

Description

convert GRangesList to transcript GRanges

Usage

sesameData_getTxnGRanges(genome = NULL, grl = NULL, merge2gene = FALSE)

Arguments

genome

hg38, mm10, ...

grl

GRangesList object

merge2gene

merge transcript to genes

Value

a GRanges object

Examples


## all mm10 transcripts
txns <- sesameData_getTxnGRanges("mm10")

## verified protein-coding transcripts
txns[(txns$transcript_type == "protein_coding" & txns$level <= 2)]

## merged to genes
sesameData_getTxnGRanges("mm10", merge2gene = TRUE)


zwdzwd/sesameData documentation built on Feb. 27, 2024, 4:37 p.m.