betasCollapseToPfx: Collapse betas by averagng probes with common probe ID prefix

View source: R/sesame.R

betasCollapseToPfxR Documentation

Collapse betas by averagng probes with common probe ID prefix

Description

Collapse betas by averagng probes with common probe ID prefix

Usage

betasCollapseToPfx(betas, BPPARAM = SerialParam())

Arguments

betas

either a named numeric vector or a numeric matrix (row: probes, column: samples)

BPPARAM

use MulticoreParam(n) for parallel processing

Value

either named numeric vector or a numeric matrix of collapsed beta value matrix

Examples


## input is a matrix
m <- matrix(seq(0,1,length.out=9), nrow=3)
rownames(m) <- c("cg00004963_TC21", "cg00004963_TC22", "cg00004747_TC21")
colnames(m) <- c("A","B","C")
betasCollapseToPfx(m)

## input is a vector
m <- setNames(seq(0,1,length.out=3),
    c("cg00004963_TC21", "cg00004963_TC22", "cg00004747_TC21"))
betasCollapseToPfx(m)

zwdzwd/sesame documentation built on Dec. 21, 2024, 1:20 p.m.