Description Usage Arguments Details Value Examples
View source: R/methrix_operations.R
Extract methylation or coverage matrices
1 | get_matrix(m, type = "M", add_loci = FALSE, in_granges = FALSE)
|
m |
|
type |
can be |
add_loci |
Default FALSE. If TRUE adds CpG position info to the matrix and returns as a data.table |
in_granges |
Do you want the outcome in |
Takes methrix
object and returns user specified methylation
or coverage
matrix
Coverage or Methylation matrix
1 2 3 4 5 6 7 | data('methrix_data')
#Get methylation matrix
get_matrix(m = methrix_data, type = 'M')
#Get methylation matrix along with loci
get_matrix(m = methrix_data, type = 'M', add_loci = TRUE)
#' #Get methylation data as a GRanges object
get_matrix(m = methrix_data, type = 'M', add_loci = TRUE, in_granges=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.