subset_methrix {methrix}R Documentation

Subsets methrix object based on given conditions.

Description

Subsets methrix object based on given conditions.

Usage

subset_methrix(m, regions = NULL, contigs = NULL, samples = NULL)

Arguments

m

methrix object

regions

genomic regions to subset by. Could be a data.table with 3 columns (chr, start, end) or a GenomicRanges object

contigs

chromosome names to subset by

samples

sample names to subset by

Details

Takes methrix object and filters CpGs based on coverage statistics

Value

An object of class methrix

Examples

data('methrix_data')
#Subset to chromosome 1
subset_methrix(methrix_data, contigs = 'chr21')

[Package methrix version 1.1.0 Index]