Validate input data for estimate.subtypes()
Source:R/validate.subtype.model.cpgs.R
validate.subtype.model.cpgs.RdCheck whether methy.data contains all CpGs required by subtype.model.pamr or subtype.model.rf for assigning patients to four prostate cancer DNA methylation subtypes.
Value
val.passeda logical indicating whether the data passed validationcheck$required.cpgsa vector of CpG ids that are required for predicting the subtypesmissing.cpgsa vector of CpG ids that are required but completely missing in the datarequired.cpgs.with.high.missinga vector of CpG ids that are required and have a proportion of missing values greater thanprop.missing.cutoff
Examples
data('example.data');
check <- validate.subtype.model.cpgs(example.data);
stopifnot(check$val.passed);
# CpGs required to fit each model:
#check$required.cpgs;
# CpGs that are required but completely missing in your data:
#check$missing.cpgs;
# CpGs that are required and have a proportion of missing values greater than `prop.missing.cutoff`
#check$required.cpgs.with.high.missing;