compute_lower_and_higher_lists | R Documentation |
For each gene, this function computes two lists. The L list, with genes with a Lower expression in 'threshold*100' % of controls, and the H list with genes with an Higher expression in 'threshold*100' % of controls. These lists can be used in Penda test to compare the gene rank in samples.
compute_lower_and_higher_lists(controls, threshold, s_max = 50)
controls |
A data matrix with the expressions of control samples. |
threshold |
The proportion of expression that must be in the conditions. |
s_max |
The maximum number of L and H genes for each gene. |
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.
# First, data are ranking by median
controls = penda::penda_data_ctrl[1:10, 1:10]
median_gene = apply(controls, 1, median, na.rm = TRUE)
median_gene = sort(median_gene)
controls = controls[names(median_gene), ]
# Second, lower and higher lists are computed
L_H_list = penda::compute_lower_and_higher_lists(controls, threshold = 0.99, s_max = 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.