Description Usage Arguments Value Examples
View source: R/combine_exons.R
Combine overlapping exons into a single observation
1 | combine_exons(exon_data)
|
exon_data |
data.frame. This data frame must include named variables: |
A data frame of combined exon segments. This data frame includes the variables: chrom
, a chromosome identifier; exonStart
, the first position of the combined exon segment in base pairs; and exonEnd
, the last position of the combined exon segment in base pairs.
1 2 3 4 5 6 7 8 9 10 11 | # create a data frame that contains the
# the variables: chrom, exonStart, and exonEnd
exDat <- data.frame(chrom = c(1, 1, 1, 2, 2, 2),
exonStart = c(1, 2, 5, 1, 3, 3),
exonEnd = c(3, 4, 7, 4, 5, 6))
exDat
# supply exDat to combine_exons to combine
# overlapping exon segments
combine_exons(exDat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.