Description Usage Arguments Details Value See Also Examples
Provides functions for further post processing on objects of
class gtf
and gff
.
1 2 3 4 |
x |
Input object of class |
feature |
A character vector of (usually related) features to extract
from. One of |
type |
|
ignore_strand |
Logical argument to pass to |
transcript_id |
Column name in |
gene_id |
Column name in |
... |
Arguments passed to other functions. Ignored at the moment. |
Extract features based on various criteria (usually intended for
obtaining read counts using gcount
for a given bam
file.
An object of class "gene"
when feature
is
"gene"
, "gene_exon"
or "gene_intron"
, and of class
"exon"
and "intron"
when feature
is "exon"
or
"intron"
respectively. They all inherit from GRanges
.
read_format
as_granges
extract
construct_introns
1 2 3 4 5 6 7 8 9 | path <- system.file("tests", package="gread")
gtf_file <- file.path(path, "sample.gtf")
gtf <- read_format(gtf_file)
# extract exons, combine coordinates of overlapping exons
exons <- extract(gtf, feature="exon", type="union")
# extract all exons within the gene, but combine overlapping exons
exons <- extract(gtf, feature="gene_exon", type="union")
## extract gene span (uses exon coordinates if feature='gene' doesn't exist)
genes <- extract(gtf, feature="gene", type="default")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.