isInterGenerationResults: Verify if a specific file containing intergenerational...

Description Usage Arguments Value Author(s) Examples

View source: R/methylInheritanceInternalMethods.R

Description

Verify if a specific file containing intergenerational results exists or not.

Usage

1
isInterGenerationResults(outputDir, permutationID, type = c("sites", "tiles"))

Arguments

outputDir

a string of character, the name of the directory that will contain the results of the permutation. The name should end with a slash. The directory should already exists.

permutationID

an integer, the identifiant of the permutation. When the permutationID = 0, the results are considered as the observed results and are saved in a file with the "_observed_results.RDS" extension. When the permutationID != 0, the results are considered as permutation results and are saved in a file with the "_permutation_permutationID.RDS" extension.

type

One of the "sites" or "tiles" strings. Specifies the type of differentially methylated elements should be saved. Default: "sites".

Value

TRUE when file present; otherwise FALSE.

Author(s)

Astrid Deschenes, Pascal Belleau

Examples

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

## Verify that DMS intergenerational results for the observed data exists
methylInheritance:::isInterGenerationResults(outputDir =
    paste0(filesDir, "/"), 0, "sites")

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