interGeneration: Calculate the intersection of the differentially methylated...

Description Usage Arguments Value Author(s) Examples

View source: R/methylInheritanceInternalMethods.R

Description

Calculate the intersection of the differentially methylated results for two or more consercutive generations using a list of GRanges where each entry represents the results for one generation.

Usage

1
interGeneration(resultAllGenGR)

Arguments

resultAllGenGR

a list of GRanges as created by the getGRangesFromMethylDiff function. Each entry of the list represents the differentially methylated results for one generation (first entry = first genertation, second entry = second generation, etc..). Each GRanges object holds statistics for differentially methylated regions/bases.

Value

a list containing the following elements:

Author(s)

Pascal Belleau, Astrid Deschenes

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Load permutation results on sites
permutationResultsFile <- system.file("extdata",
    "permutationResultsForSites.RDS", package="methylInheritance")
permutationResults <- readRDS(permutationResultsFile)

## Transform result to GRanges
resultsGR <- methylInheritance:::getGRangesFromMethylDiff(methDiff =
    permutationResults, pDiff = 10, qvalue = 0.01, type = "hyper")

## Extract inter generational conserved sites
conservedSitesGR <- methylInheritance:::interGeneration(resultsGR)

methylInheritance documentation built on Nov. 8, 2020, 8:21 p.m.