complex_simulation | R Documentation |
This function simulated the dysregulation of datas, using the real distribution of genes, proportion of dysregulation and difference between control and cancer.
complex_simulation(controls, cancer_data, data, size_grp = 100, quant = 0.05)
controls |
A matrix with genes expressions in controls for all the patients. |
cancer_data |
A matrix with dysregulated genes expressions for all the patients. |
data |
vector or matrix of original data to edit. |
size_grp |
The size of each group of genes for the grouping. |
quant |
The quantile of gene expression for the grouping. |
This function returns a list of three vectors or matrices : initial_data, datas before the modification simulated_data, datas with up and down modifications changes_idx, index of datas with modifications
# First, load and define the data
controls = penda::penda_data_ctrl[1:1000, 1:10]
samples = penda::penda_data_case[1:1000, 1:3]
simu_data = penda::penda_data_ctrl[1:1000,11:16]
# Second, make the simulation
simulation = penda::complex_simulation(controls,
samples,
simu_data,
size_grp = 80,
quant = 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.