fit_betas_to_distribution_p: Categorize betas based on bimodal distribution and return the...

Description Usage Arguments Value Examples

View source: R/preprocessData.R

Description

This function uses a given bimodal distribution generated within cell types in order to categorize betas as either methylated (1) or unmethylated (0) in the betas structure. It also returns the p-value of each categorization in the betas_p structure.

Usage

1

Arguments

betas

matrix (rows are cell names, columns are probe names)

bi

matrix specifying mu0, mu1, sigma0, sigma1 across all cell types

Value

betas matrix categorized based on bimodal distribution

Examples

1
betas <- fit_betas_to_distribution(betas, bi)

ethanmoyer/ICCE documentation built on Aug. 25, 2020, 5:18 p.m.