View source: R/methrix_operations.R
subset_methrix | R Documentation |
methrix
object based on given conditions.Subsets methrix
object based on given conditions.
subset_methrix(
m,
regions = NULL,
contigs = NULL,
samples = NULL,
overlap_type = "within"
)
m |
|
regions |
genomic regions to subset by. Could be a data.table with 3 columns (chr, start, end) or a |
contigs |
chromosome names to subset by |
samples |
sample names to subset by |
overlap_type |
defines the type of the overlap of the CpG sites with the target region. Default value is 'within'. For detailed description,
see the |
Takes methrix
object and filters CpGs based on coverage statistics
An object of class methrix
data('methrix_data')
#Subset to chromosome 1
subset_methrix(methrix_data, contigs = 'chr21')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.