View source: R/preProcessMethMats.R
recodeMatrixAsNumeric | R Documentation |
Recode NA values in methylation matrix to numbers. If the matrix contains numbers from a scale of 0 (no meth) to 1 (meth), NAs and NaNs are set to 0.5. If the matrix contains numbers from -1 to 1, NAs and NaNs are set to 0.
recodeMatrixAsNumeric(dataMatrix)
dataMatrix |
A matrix containing methylation values for a region of the genome using coordinates relative to an anchor point. dataMatrix[i,j] is the methylation value of sample i at position j. 0, or -1=not methylated, 1=methylated, NA=no methylation information at this position. |
Matrix with methylation values coded on a -1 to 1 or 0 to 1 scale, with NAs and NaNs converted to an intermediate value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.