3.1.1.4. rand_wc_model_gen.model_gen package¶
3.1.1.4.1. Submodules¶
3.1.1.4.2. rand_wc_model_gen.model_gen.core module¶
Classes to generate random wc models
- Author
Mike Zheng <xzheng20@colby.edu>
- Author
Jonathan Karr <karr@mssm.edu>
- Date
2019-08-13
- Copyright
2019, Karr Lab
- License
MIT
-
class
rand_wc_model_gen.model_gen.core.
RandModelGen
(options=None)[source]¶ Bases:
object
Generator for random wc models
-
gen_cell_options
(model, options)[source]¶ Generate cell information of the random model
- Parameters
model (
wc_lang.Model
) – modeloptions (
dict
) – dictionary of options
-
gen_compartments
(model, options)[source]¶ Generate compartment information of the random model
- Parameters
model (
wc_lang.Model
) – modeloptions (
dict
) – dictionary of options
-
gen_reactions
(model, options)[source]¶ Generate reactions and rate laws of the random model
- Parameters
model (
wc_lang.Model
) – modeloptions (
dict
) – dictionary of options
-
gen_species
(model, options, misc_options)[source]¶ Generate species type, species, and init concentrations of the random model
- Parameters
model (
wc_lang.Model
) – modeloptions (
dict
) – dictionary of options
-
gen_submodels
(model, options)[source]¶ Generate submodels of the random model
- Parameters
model (
wc_lang.Model
) – modeloptions (
dict
) – dictionary of options
-
rand
(mean, count=1, min=0, max=inf)[source]¶ Generated 1 or more random normally distributed integer(s) with standard deviation equal to the square root of the mean value. :param mean: mean value :type mean:
float
:param count: number of random numbers to generate :type count:int
- Returns
random normally distributed integer(s)
- Return type
int
ornumpy.ndarray
ofint
-