cleanAssayRows: Remove rows with NAs exceeding a threshold

View source: R/utils.R

cleanAssayRowsR Documentation

Remove rows with NAs exceeding a threshold

Description

Remove rows with NAs exceeding a threshold

Usage

cleanAssayRows(se, rowmax = 0.5, assay = c("array", "bisulfite"))

Arguments

se

Input SummarizedExperiment object

rowmax

The maximum NAs allowed in a row 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")
  cleanAssayRows(array.data.chr14, assay = "array")
}

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