region_filter.Rd
Filter matrices by region
region_filter(m, regions, type = "within")
m |
|
---|---|
regions | genomic regions to filter-out. Could be a data.table with 3 columns (chr, start, end) or a |
type | defines the type of the overlap of the CpG sites with the target regions. Default value is `within`. For detailed description,
see the |
An object of class methrix
Takes methrix
object and filters CpGs based on supplied regions in data.table or GRanges format
data('methrix_data') region_filter(m = methrix_data, regions = data.table(chr = 'chr21', start = 27867971, end = 27868103))#>#>#> An object of class methrix #> n_CpGs: 739 #> n_samples: 4 #> is_h5: FALSE #> Reference: hg19