Description Usage Arguments Details Value Examples
Collect and combine intronic/exonic parts by gene
1 2 3 4 5 6 7 8 9 10 11 12 13 | collect_parts(annotation, ...)
## S4 method for signature 'GRanges'
collect_parts(annotation, ...)
## S4 method for signature 'character'
collect_parts(annotation, ...)
## S4 method for signature 'GFFFile'
collect_parts(annotation, ...)
## S4 method for signature 'TxDb'
collect_parts(annotation)
|
annotation |
an object representing an annotation such as an
|
... |
optional arguments to be passed to downstream methods |
This function takes an annotation object and returns a GRanges object with number of rows equal to the number of gene features contained. The resulting GRanges object has the following additional metadata columns:
exonic_parts
: a GRangesList column containing the exonic regions
for each gene, obtained from type == 'exon'
in GFF/GTF file. In the
case of a TxDb object, this is obtained by GenomicFeatures::exonBy
.
intronic_parts
: a GRangesList column containing the intronic regions
for each gene. This is simply defined as the parallel set difference betweeen
the gene ranges and the exonic ranges.
n_olaps
: the integer count of the number times a gene overlaps
any other gene in the annotation.
a GRanges object
1 2 | gtf <- system.file("extdata", "Homo_sapiens.GRCh37.75_subset.gtf", package = "airway")
collect_parts(gtf)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.