createDataStructure: Extract the number of conserved differentially methylated...

Description Usage Arguments Value Author(s) Examples

View source: R/methylInheritanceInternalMethods.R

Description

Extract the number of conserved differentially methylated elements in GRanges. Each GRanges is the result of one intersection between two or more consecutive generations for one analysis done on all generations. The hypo and hyper differentially methylated elements are counted separatly.

Usage

1
createDataStructure(interGenerationGR)

Arguments

interGenerationGR

a list that contains the information for all differentially methylated analysis done on each generation present in the initial dataset. The list must contain the following elements:

  • i2 a list of GRanges Each GRanges represents the intersection of analysis results between two consecutive generations. The first element represents the intersection of the first and second generations; the second element, the intersection of the second and third generations; etc.. The number of entries depends of the number of generations.

  • iAll a list of GRanges. Each GRanges represents the intersection fo the analysis results between three or more consecutive generations. The first element represents the intersection of the first three generations; the second element, the intersection of the first fourth generations; etc..The number of entries depends of the number of generations.

Value

a list containing the following elements:

Author(s)

Astrid Deschenes, Pascal Belleau

Examples

1
2
3
4
5
6
7
8
9
## Get the name of the directory where the file is stored
filesDir <- system.file("extdata", "TEST", package="methylInheritance")

## Load file containing results from a observation analysis
obsResults <- readRDS(file = paste0(filesDir,
    "/SITES/SITES_observed_results.RDS"))

## Create data structure using information form the observation analysis
formatedResults <- methylInheritance:::createDataStructure(obsResults)

adeschen/methylInheritance documentation built on April 21, 2021, 9:45 a.m.