Validate input data for estimate.subtypes()
Source:R/validate.subtype.model.cpgs.R
validate.subtype.model.cpgs.Rd
Check whether methy.data
contains all CpGs required by subtype.model for assigning patients to four prostate cancer DNA methylation subtypes.
Value
val.passed
a logical indicating whether the data passed validationcheck$required.cpgs
a vector of CpG ids that are required for predicting the subtypesmissing.cpgs
a vector of CpG ids that are required but completely missing in the datarequired.cpgs.with.high.missing
a 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;