syntheticNucReadsValidation: Subsection of parameter validation for identical parameters...

View source: R/nucleoSimInternFunctions.R

syntheticNucReadsValidationR Documentation

Subsection of parameter validation for identical parameters between syntheticNucReadsFromMap and syntheticNucReadsFromDist functions.

Description

Validate that identical values passed to both syntheticNucReadsFromMap and syntheticNucReadsFromDist functions are correctly formatted.

Usage

syntheticNucReadsValidation(read.len, offset)

Arguments

read.len

a positive integer, the length of each of the paired-end reads.

offset

a non-negative integer, the number of bases used to offset all nucleosomes and reads. This is done to ensure that all nucleosome positions and read alignment are of positive values.

Value

0 indicating that all parameters validations have been successful.

Author(s)

Astrid Deschenes

Examples


## The function returns 0 when all paramaters are valid
nucleoSim:::syntheticNucReadsValidation(read.len = 40, offset = 100)

## The function raises an error when at least one paramater is not valid
## Not run: nucleoSim:::syntheticNucReadsValidation(read.len = 0, offset = 100)
## Not run: nucleoSim:::syntheticNucReadsValidation(read.len = 30, offset = -1)


ArnaudDroitLab/nucleoSim documentation built on March 17, 2022, 11 p.m.