count_upm: Count Methylation States

View source: R/summaryStatistics.R

count_upmR Documentation

Count Methylation States

Description

This internal function counts the number of sites with unmethylated, partially-methylated, and methylated states in a given vector.

Usage

count_upm(data)

Arguments

data

A numeric vector with methylation values: 0 (unmethylated), 0.5 (partially-methylated), and 1 (methylated).

Value

An integer vector of length 3 containing counts of unmethylated, partially-methylated, and methylated sites, respectively.


MethEvolSIM documentation built on April 12, 2025, 1:30 a.m.