Count the number of up- and down-regulated DMR windows per contrast. Internally, results are reshaped to long format before summarisation.
summariseDMRsByContrast(
DMRtable,
FDRthres = 0.05,
log2FCthres = 0,
deltaBetaThres = 0
)data.frame or GRanges
DMR results, typically returned by calculateDMRs(). If in wide format, it
will be converted with pivotDMRsLonger().
numeric(1)
False discovery rate threshold for significance.
Default: 0.05.
numeric(1)
Absolute log2 fold-change threshold for calling up/down regulation.
Default: 0.
numeric(1)
Absolute delta-beta threshold for calling up/down regulation.
Default: 0.
A tibble:
summariseDMRsByContrast(): returns one row per contrast, with
counts of up-regulated (nUp) and down-regulated (nDown) DMRs that pass
the specified thresholds.
pivotDMRsLonger(), summariseDMRsByGene()
Other DMR-helpers:
pivotDMRsLonger(),
summariseDMRsByGene(),
writeDMRsToBed(),
writeDMRsToExcel()
data(exampleDMRs, package = "mesa")
# Summarise DMRs for each contrast, using custom FDR threshold
exampleDMRs %>%
summariseDMRsByContrast(FDRthres = 0.1)
#> # A tibble: 10 × 4
#> group1 group2 nUp nDown
#> <chr> <chr> <int> <int>
#> 1 CRC LUAD 11 26
#> 2 CRC LUSC 9 33
#> 3 CRC NormalColon 2 1
#> 4 CRC NormalLung 42 10
#> 5 LUAD LUSC 5 11
#> 6 LUAD NormalColon 12 7
#> 7 LUAD NormalLung 34 2
#> 8 LUSC NormalColon 34 8
#> 9 LUSC NormalLung 56 8
#> 10 NormalColon NormalLung 19 0