View source: R/summaryStatistics.R
categorize_islandGlbSt | R Documentation |
This function categorizes CpG islands into unmethylated, methylated, or partially methylated states based on specified thresholds.
categorize_islandGlbSt(meanMeth_islands, u_threshold, m_threshold)
meanMeth_islands |
A numeric vector containing the mean methylation levels for CpG islands at each tip. |
u_threshold |
A numeric value (0-1) defining the threshold for categorization as unmethylated. |
m_threshold |
A numeric value (0-1) defining the threshold for categorization as methylated. |
The function assigns each island a state:
if mean methylation lower or equal than u_threshold
if mean methylation greater or equal than m_threshold
if mean methylation is in between
A character vector of length equal to meanMeth_islands
, containing "u", "p", or "m" for each island.
meanMeth_islands <- c(0.1, 0.4, 0.8)
categorize_islandGlbSt(meanMeth_islands, 0.2, 0.8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.