Description Usage Arguments Details Value Examples
View source: R/methrix_operations.R
Filter matrices by coverage
| 1 2 3 4 5 6 7 8 9 | coverage_filter(
  m,
  cov_thr = 1,
  min_samples = 1,
  prop_samples = 0,
  group = NULL,
  n_chunks = 1,
  n_cores = 1
)
 | 
| m | 
 | 
| cov_thr | minimum coverage required to call a loci covered | 
| min_samples | Minimum number of samples that should have a loci with coverage >=  | 
| prop_samples | Minimum proportion of samples that should have a loci with coverage >=  | 
| group | a column name from sample annotation that defines groups. In this case, the number of min_samples will be tested group-wise. | 
| n_chunks | Number of chunks to split the  | 
| n_cores | Number of parallel instances.  | 
Takes methrix object and filters CpGs based on coverage statistics
An object of class methrix
| 1 2 3 | data('methrix_data')
#keep only CpGs which are covered by at-least 1 read across 3 samples
coverage_filter(m = methrix_data, cov_thr = 1, min_samples = 3)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.