View source: R/methrix_operations.R
get_matrix | R Documentation |
Extract methylation or coverage matrices
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
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.