detect_zero_value: Find low values

View source: R/preprocessing.R

detect_zero_valueR Documentation

Find low values

Description

This function detects genes with more than 'threshold' percent of expression values under the min value. NA expression values are not considered.

Usage

detect_zero_value(controls, data_case, threshold, min = 0)

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 expression under 'min' tolerated for each gene.

min

The minimum value accepted.

Value

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

Examples

# Example for detect_zero_value function
data_ctrl = penda::penda_data_ctrl
data_case = penda::penda_data_case
null_values = penda::detect_zero_value(data_ctrl, data_case, threshold = 0.99, min = 10)
data_ctrl_f = data_case[!null_values,]
data_case_f = data_case[!null_values,]

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