Learn R Programming

SGSeq (version 1.0.6)

convertToTxFeatures: Convert to TxFeatures object

Description

Convert a TxDb object or a GRangesList of exons grouped by transcripts to a TxFeatures object.

Usage

convertToTxFeatures(x)

Arguments

x
TxDb object, or GRangesList of exons grouped by transcripts

Value

A TxFeatures object

Details

In the returned TxFeatures object, column slot txName is based on either tx_name in the TxDb object or names(x) if x is a GRangesList.

Examples

Run this code
gr <- GRanges(c(1, 1), IRanges(c(1, 201), c(100, 300)), c("+", "+"))
grl <- split(gr, 1)
txf <- convertToTxFeatures(grl)

Run the code above in your browser using DataLab