View source: R/stochastic_simulation.R
simulateInSilicoSystem | R Documentation |
Simulates (stochastically) the behaviour of an in silico system over time, i.e. the expression of the different genes.
simulateInSilicoSystem( insilicosystem, insilicopopulation, simtime, nepochs = -1, ntrials = 1, simalgorithm = "Direct", writefile = F, filepath = NULL, filename = "simulation", ev = getJuliaEvaluator() )
insilicosystem |
The in silico system to be simulated (see
|
insilicopopulation |
The in silico population to be simulated (see
|
simtime |
The final time of the simulation (in seconds). |
nepochs |
The number of times to record the state of the system during the simulation. |
ntrials |
The number of times the simulation must be replicated (for each individual). |
simalgorithm |
The name of the simulation algorithm to use in the Julia
function |
writefile |
Does the julia function write the species and reactions lists in a text file? |
filepath |
If writefile = |
filename |
If writefile = |
ev |
A Julia evaluator. If none provided select the current evaluator or create one if no evaluator exists. |
A list composed of:
Simulation
: A data-frame
with the simulated expression profiles of the genes for the different
individuals in the in silico population. For gene i, "Ri" corresponds to
the RNA form of the gene, "Pi" to the protein form of the gene. The suffix
"GCNj" indicates that the molecule comes from the j-th allele of the gene.
runningtime
: A vector of running time of all runs of the
simulation for each in silico individuals.
stochmodel
: A Julia
proxy object to retrieve the stochastic system in the Julia evaluator.
## Not run: mysystem = createInSilicoSystem(G = 5, regcomplexes = "none", ploidy = 2) mypop = createInSilicoPopulation(1, mysystem) sim = simulateInSilicoSystem(mysystem, mypop, simtime = 1000, ntrials = 10) head(sim$Simulation) ## Visualising the result plotSimulation(sim$Simulation) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.