truncateTxome {txcutr}R Documentation

Truncate Transcriptome

Description

Truncate Transcriptome

Usage

truncateTxome(txdb, maxTxLength = 500, ...)

## S4 method for signature 'TxDb'
truncateTxome(txdb, maxTxLength = 500, BPPARAM = bpparam())

Arguments

txdb

a TxDb object

maxTxLength

the maximum length of transcripts

...

additional arguments

BPPARAM

A BiocParallelParam object specifying whether and how the method should be parallelized.

Value

a TxDb object

a TxDb object

Examples

library(TxDb.Scerevisiae.UCSC.sacCer3.sgdGene)

## load annotation
txdb <- TxDb.Scerevisiae.UCSC.sacCer3.sgdGene

## restrict to 'chrI' transcripts
seqlevels(txdb) <- c("chrI")

## last 500 nts per tx
txdb_w500 <- truncateTxome(txdb)
txdb_w500

## last 100 nts per tx
txdb_w100 <- truncateTxome(txdb, maxTxLength=100)
txdb_w100


[Package txcutr version 0.99.1 Index]