quantile_test | R Documentation |
This function makes the quantile test of the dysregulation of all genes. The patient's gene is compared at the gene expression in controls sample.
quantile_test(controls, samples, quant, factor)
controls |
A matrix with genes expressions in controls for all the patients. |
samples |
A vector or a matrix with all the genes expressions for each sample. |
quant |
The quantile of the control genes expression, quantile(c(quant, 1-quant)). |
factor |
The factor for the quantile. The down-regulated limit will be quantmin/factor, and the up-regulated limit quantmax*factor. |
This function return a list with two vectors or matrix : D, with TRUE for genes down-regulated U, with TRUE for genes up-regulated.
# First, load and define the data
controls = penda::penda_data_ctrl[1:10, 1:10]
samples = penda::penda_data_case[1:10, 1:3]
# Second, test is the expression is deregulated for each gene of a sample
res_quantile = penda::quantile_test(controls,
samples,
quant = 0.03,
factor = 1.4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.