Learn R Programming

SGSeq (version 1.0.6)

TxFeatures: Constructor function for S4 class TxFeatures

Description

Creates an instance of S4 class TxFeatures for storing transcript features.

Usage

TxFeatures(x, type = mcols(x)$type, txName = mcols(x)$txName, geneName = mcols(x)$geneName)

Arguments

x
GRanges with known strand (“+”, “-”)
type
Character vector or factor taking values in J, I, F, L, U
txName
CharacterList of transcript names or NULL
geneName
CharacterList of gene names or NULL

Value

A TxFeatures object

Details

TxFeatures extend GRanges with column slot type specifying feature type. type is a factor with levels J (splice junction), I (internal exon), F (5' terminal exon), L (3' terminal exon), U (unspliced transcript).

txName and geneName are CharacterLists storing transcript and gene annotation, respectively.

Examples

Run this code
gr <- GRanges(1, IRanges(101, 200), "+")
txf <- TxFeatures(gr, type = "J")

Run the code above in your browser using DataLab