View source: R/annotation_gff.R
sum_exon_widths | R Documentation |
This function will merge a count table to an annotation table by the child column. It will then sum all rows of exons by parent gene and sum the widths of the exons. Finally it will return a list containing a df of gene lengths and summed counts.
sum_exon_widths(
data = NULL,
gff = NULL,
annotdf = NULL,
parent = "Parent",
child = "row.names"
)
data |
Count tables of exons. |
gff |
Gff filename. |
annotdf |
Dataframe of annotations (probably from load_gff_annotations). |
parent |
Column from the annotations with the gene names. |
child |
Column from the annotations with the exon names. |
List of 2 data frames, counts and lengths by summed exons.
Keith Hughitt with some modifications by atb.
[rtracklayer] [load_gff_annotations()]
## Not run:
summed <- sum_exon_widths(counts, gff = "reference/xenopus_laevis.gff.xz")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.