Masks CpGs by cell count
mask_by_sample( scm = NULL, assay = "score", low_threshold = NULL, prop_threshold = NULL, n_threads = 1, verbose = TRUE )
| scm |
|
|---|---|
| assay | string; name of an existing assay. Default = "score" |
| low_threshold | numeric; The minimal cell count allowed. Everything below will get masked. |
| prop_threshold | numeric; The minimal proportion of covered cells. |
| n_threads | integer; Number of parallel instances. Can only be used if |
| verbose | boolean; Flag for outputting function status messages. Default = TRUE |
An object of class scMethrix
Takes scMethrix object and masks sites with too high or too low coverage
by putting NA for assay values. The sites will remain in the object and all assays will be affected.
low_threshold is used to mask sites with low overall cell counts. A site represented by a single sample is typically not useful.
prop_threshold is used to mask sites with a low proportional count
#>#>#>#>#> An object of class scMethrix #> n_CpGs: 286 #> n_samples: 4 #> assays: score, counts #> reduced dims: #> is_h5: FALSE #> Reference: hg19 #> Physical size: 47 Kbmask_by_sample(scMethrix_data,prop_threshold=0.5)#>#>#>#>#> An object of class scMethrix #> n_CpGs: 286 #> n_samples: 4 #> assays: score, counts #> reduced dims: #> is_h5: FALSE #> Reference: hg19 #> Physical size: 47 Kb