prepareCDS: Prepare CDS

View source: R/prepareCDS.R

prepareCDSR Documentation

Prepare CDS

Description

Prepare CDS library from a TxDb object.

Usage

prepareCDS(txdb, withUTR = FALSE)

Arguments

txdb

A TxDb object.

withUTR

Including UTR information or not.

Value

A GRanges object with metadata which include: tx_id: transcript id; tx_name: transcript name; gene_id: gene id; isFirstExonInCDS: is first exon in CDS or not; idFirstExonInCDS: the id for the first exon; isLastExonInCDS: is last exon in CDS or not; wid.cumsu: cumulative sums of number of bases in CDS; internalPos: offset position from 1 base;

Examples

library(GenomicFeatures)
txdb_file <- system.file("extdata", "Biomart_Ensembl_sample.sqlite",
                         package="GenomicFeatures")
txdb <- loadDb(txdb_file)
CDS <- prepareCDS(txdb)


jianhong/ribosomeProfilingQC documentation built on April 15, 2024, 7:10 p.m.