create_consensus_vector: Create consensus vector of probes for each group VALIDATED

Description Usage Arguments Value Examples

View source: R/preprocessData.R

Description

This function creates consensus vector for each group using majority ruling: across all probes, whichever category (methylated/unmethylated) is represented in more than 2/3's of the sample will saved. Otherwise, -1 for ambiguous is saved. A probabilistic model will supplement this in the future.

Usage

1
create_consensus_vector(betas, group_names)

Arguments

betas

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

group_names

list of cell names in betas

Value

consensus vector for each cell in group names

Examples

1
2
3
consensus_vector <- create_consensus_vector(betas, c('NK', "Monocytes", 
...))
... some visualization 

ethanmoyer/MethylConstruct documentation built on July 10, 2020, 12:28 a.m.