View source: R/preprocessing.R
detect_na_value | R Documentation |
This function detects probes or sample with more than threshold percent of value undefined (NA).
detect_na_value(controls, data_case, threshold, probes = TRUE)
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. |
This function returns a True/False vector with True for the values to exclude.
# 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,]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.