compute_lower_and_higher_lists_1ctrl: Compute L and H list in control sample.

compute_lower_and_higher_lists_1ctrlR Documentation

Compute L and H list in control sample.

Description

For each gene, this function computes two lists. The L list, with s_max genes with the closer Lower expression in control, and the H list with s_max genes with the closer Higher expression in control. These lists can be used in Penda test to compare the gene rank in samples.

Usage

compute_lower_and_higher_lists_1ctrl(control, s_max = 500)

Arguments

control

A vector with the expressions in the control sample.

s_max

The maximum number of L and H genes for each gene.

Value

This function returns a list of two numeric matrices : - the L matrix, with for each row gene the id of the L genes in columns, - the H Matrix, with for each row gene the id of the H genes in columns.

Examples

# First, data are ranking by median
control = penda::penda_data_ctrl[1:10, 1]
control = sort(control)
# Second, lower and higher lists are computed
L_H_list = penda::compute_lower_and_higher_lists_1ctrl(control, s_max = 50)

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