Learn R Programming

rphast (version 1.6.9)

add.introns.feat: Add introns to features

Description

Add introns to features

Usage

add.introns.feat(x)

Arguments

x

An object of type feat. CDS regions must be present with type "CDS", and the transcript_id must be indicated in the attribute field.

Value

An object of type feat, with all the entries of the original object, but also with intron annotations.

Examples

Run this code
# NOT RUN {
exampleArchive <- system.file("extdata", "examples.zip", package="rphast")
featFile <- "gencode.ENr334.gp"
unzip(exampleArchive, featFile)
f <- read.feat(featFile)
table(f$feature)
coverage.feat(f[f$feature=="CDS",])
coverage.feat(f[f$feature=="exon",])
f <- add.introns.feat(f)
table(f$feature)
coverage.feat(f[f$feature=="intron",])
unlink(featFile)
# }

Run the code above in your browser using DataLab