Aggregate differentially methylated region (DMR) windows by gene annotation.

summariseDMRsByGene(DMRtable)

Arguments

DMRtable

data.frame or GRanges Annotated DMRs. Must include the columns ENSEMBL, SYMBOL, and GENENAME (typically added with annotateWindows()).

Value

A tibble:

  • summariseDMRsByGene(): returns one row per gene, with counts of associated DMRs and any aggregated metadata.

Examples

data(exampleTumourNormal, package = "mesa")

# exampleDMRs is already annotated with annotateWindows()
exampleDMRs %>%
        summariseDMRsByGene()
#> # A tibble: 23 × 4
#>    ENSEMBL         SYMBOL       GENENAME                                       n
#>    <chr>           <chr>        <chr>                                      <int>
#>  1 ENSG00000233429 HOTAIRM1     HOXA transcript antisense RNA, myeloid-sp…    17
#>  2 ENSG00000257184 HOXA10-HOXA9 HOXA10-HOXA9 readthrough                      15
#>  3 NA              HOTTIP       HOXA distal transcript antisense RNA          11
#>  4 ENSG00000254369 HOXA-AS3     HOXA cluster antisense RNA 3                   9
#>  5 ENSG00000240990 HOXA11-AS    HOXA11 antisense RNA                           8
#>  6 ENSG00000253405 EVX1-AS      EVX1 antisense RNA                             8
#>  7 ENSG00000122592 HOXA7        homeobox A7                                    7
#>  8 ENSG00000286725 LOC100506236 uncharacterized LOC100506236                   6
#>  9 ENSG00000105991 HOXA1        homeobox A1                                    4
#> 10 ENSG00000106038 EVX1         even-skipped homeobox 1                        4
#> # ℹ 13 more rows