reverseMethData | R Documentation |
Because gene body mCH proportions are negatively correlated with gene expression level in neurons, we need to reverse the direction of the methylation data. We do this by simply subtracting all values from the maximum methylation value. The resulting values are positively correlated with gene expression. This will only be applied to variable genes detected in prior.
reverseMethData(object, useDatasets, verbose = getOption("ligerVerbose", TRUE))
object |
A liger object, with variable genes identified. |
useDatasets |
Required. A character vector of the names, a numeric or logical vector of the index of the datasets that should be identified as methylation data where the reversed data will be created. |
verbose |
Logical. Whether to show information of the progress. Default
|
The input liger object, where the scaleData
slot
of the specified datasets will be updated with value as described in
Description.
# Assuming the second dataset in example data "pbmc" is methylation data
pbmc <- normalize(pbmc, useDatasets = 1)
pbmc <- selectGenes(pbmc, datasets.use = 1)
pbmc <- scaleNotCenter(pbmc, useDatasets = 1)
pbmc <- reverseMethData(pbmc, useDatasets = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.