cleanAssayCols: Remove columns/cells/samples with NAs exceeding a threshold

View source: R/utils.R

cleanAssayColsR Documentation

Remove columns/cells/samples with NAs exceeding a threshold

Description

Remove columns/cells/samples with NAs exceeding a threshold

Usage

cleanAssayCols(se, colmax = 0.8, assay = c("array", "bisulfite"))

Arguments

se

Input SummarizedExperiment object

colmax

The maximum number of NAs allowed as a fraction

assay

The type of assay we are working with

Value

A filtered matrix

Examples

if (requireNamespace("minfi", quietly = TRUE)) {
  data("array_data_chr14", package = "compartmap")
  cleanAssayCols(array.data.chr14, assay = "array")
}

biobenkj/compartmap documentation built on April 5, 2025, 9:17 a.m.