validateClass: Function to validate S3 classes in MethylIT

validateClassR Documentation

Function to validate S3 classes in MethylIT

Description

S3 generic used internally by MethylIT to ensure correct object classes are being used. validateClass() is called by these functions: estimateCutPoint evaluateDIMPclass FisherTest getPotentialDIMP nonlinearFitDist predictDIMPclass predictLogisticR selectDIMP uniqueGRfilterByCov

Usage

validateClass(LR)

## Default S3 method:
validateClass(LR)

## S3 method for class 'pDMP'
validateClass(LR)

## S3 method for class 'InfDiv'
validateClass(LR)

Arguments

LR

An object from class 'pDMP' or 'InfDiv'

Value

TRUE if object is valid, otherwise warning() and stop() are called

Examples

data(HD, gof)
PS <- getPotentialDIMP(LR = HD, nlms = gof$nlms, div.col = 9L, alpha = 0.05)
validateClass(HD)
validateClass(PS)


genomaths/MethylIT documentation built on Feb. 3, 2024, 1:24 a.m.