Skip to contents

Assign patients to four prostate cancer DNA methylation subtypes

Usage

estimate.subtypes(
  methy.data,
  prop.missing.cutoff = 0.3,
  impute.using.all.cpgs = TRUE
)

Arguments

methy.data

A data.frame with patients as rows (rownames give patient ids) and column names give CpG ids.

prop.missing.cutoff

The maximum proportion of missing values allowed for each required CpG. KNN imputation is used to impute missing values.

impute.using.all.cpgs

TRUE/FALSE indicating whether to impute missing values using all CpGs in methy.data or only the CpGs required by subtype.model. When TRUE, imputation will be slower and use more memory, but should be more accurate.

Examples

data('subtype.model');

### example CpG data
data('example.data');

subtypes <- estimate.subtypes(example.data);
head(subtypes);
#>              subtype
#> TCGA-CH-5739    MS-3
#> TCGA-HC-7079    MS-2