powered by
This internal function counts the number of sites with unmethylated, partially-methylated, and methylated states in a given vector.
count_upm(data)
An integer vector of length 3 containing counts of unmethylated, partially-methylated, and methylated sites, respectively.
A numeric vector with methylation values: 0 (unmethylated), 0.5 (partially-methylated), and 1 (methylated).
0
0.5
1