Skip to contents

A methyl_surro object built from methylation data that contains both partially missing observations and completely missing probes. Missing data has not been filled, making this object useful for demonstrating methyl_miss, impute_obs, and reference_fill.

Usage

methyl_surro_miss

Format

An object of class methyl_surro: a list with three components:

methyl

A 10 x 5 numeric matrix (weight probes x samples) containing missing values, including completely missing probes.

weights

A named numeric vector of 10 linear regression weights (intercept removed).

intercept

The numeric intercept value.

Source

Built from beta_matrix_miss and wts_df via surro_set()

Examples

data(methyl_surro_miss)
str(methyl_surro_miss)
#> List of 3
#>  $ methyl   : num [1:10, 1:5] 0.288 0.9 0.89 0.963 0.143 ...
#>   ..- attr(*, "dimnames")=List of 2
#>   .. ..$ : chr [1:10] "cg02" "cg07" "cg08" "cg13" ...
#>   .. ..$ : chr [1:5] "samp1" "samp2" "samp3" "samp4" ...
#>  $ weights  : Named num [1:10] -0.00908 -0.00116 0.00598 -0.00756 0.00122 ...
#>   ..- attr(*, "names")= chr [1:10] "cg02" "cg03" "cg06" "cg07" ...
#>  $ intercept: Named num 1.21
#>   ..- attr(*, "names")= chr "Intercept"
#>  - attr(*, "class")= chr "methyl_surro"