complex_simulation: Simulation of dysregulation that takes in account real datas

View source: R/simu.R

complex_simulationR Documentation

Simulation of dysregulation that takes in account real datas

Description

This function simulated the dysregulation of datas, using the real distribution of genes, proportion of dysregulation and difference between control and cancer.

Usage

complex_simulation(controls, cancer_data, data, size_grp = 100, quant = 0.05)

Arguments

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.

Value

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

Examples

# 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)

CDecamps/penda documentation built on Jan. 13, 2023, 2:24 p.m.