Description Usage Arguments Value See Also Examples
This function generates intronic coordinates by extracting
all the exons
from a gtf
or gff
object.
1 | construct_introns(x, update = TRUE)
|
x |
An object of class |
update |
If |
An object of class gtf/gff
with updated intron
coordinates or just the intron coordinates depending on update
.
They all inherit from GRanges
.
supported_formats
read_format
extract
as_granges
1 2 3 4 5 6 7 8 | path <- system.file("tests", package="gread")
gtf_file <- file.path(path, "sample.gtf")
gtf <- read_format(gtf_file)
# update gtf with intron coordinats from the exon gaps
# and return the updated object
ans <- construct_introns(gtf, update=TRUE)[] # default
# same as above, but returns only constructed introns
introns <- construct_introns(gtf, update=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.