detect_na_value: Find NA values

View source: R/preprocessing.R

detect_na_valueR Documentation

Find NA values

Description

This function detects probes or sample with more than threshold percent of value undefined (NA).

Usage

detect_na_value(controls, data_case, threshold, probes = TRUE)

Arguments

controls

The first matrix with datas to analyze (ex: controls samples).

data_case

The second matrix with datas to analyze (ex: tumors samples).

threshold

The maximum proportion of NA tolerated for each probe (or sample).

probes

TRUE if you want to analyze probes, FALSE to analyze samples.

Value

This function returns a True/False vector with True for the values to exclude.

Examples

# Example for detect_na_value function
data_ctrl = penda::penda_data_ctrl
data_case = penda::penda_data_case
na_values = penda::detect_na_value(data_ctrl, data_case, threshold = 0.99)
data_ctrl_f = data_case[!na_values,]
data_case_f = data_case[!na_values,]

CDecamps/penda documentation built on March 29, 2024, 3:26 a.m.