Description Usage Arguments Details Value Examples
View source: R/scmethrix_operations.R
Masks CpGs by cell count
1 2 3 4 5 6 7 8 | 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 |
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
1 2 3 | data('scMethrix_data')
mask_by_sample(scMethrix_data,low_threshold=2)
mask_by_sample(scMethrix_data,prop_threshold=0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.