Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changed
parm.util.pre_equilibration
function private by renaming toparm.util._pre_equilibration
.parm.parm
is now imported in the package__init__.py
so that it can be imported likefrom parm import model
.install_requires
list.Added
util
module,parm.util.pre_equilibrate
that calls the_pre_equilibration
function but also does addtional steps to automate the process of setting 2AT to zero concentration and adjusting the baseline cytosolic calcium concentration used for the FRET ratio. This function also has a simpler output that contains an updated parameter vector and the initial concentrations that can be directly passed to therun_model
function.parm.util.calcium_homeostasis_reverse_rate_coupling
that adjusts a parameter vector to account for coupling of the reverse rates of the calcium homeostasis reactions to the forward rates. This function can be used adjust the parameters when sampling values of the reverse rate parameters for those reactions: for example, during model training.default_param_values
created in the package__init__.py
for the mainparm.parm
model which can be imported likefrom parm import default_param_values
.parameter_masks
, created for the mainparm.parm
model which can imported likefrom parm import parameter_masks
.parm.util.get_parameter_vector
that takes a PySB model and returns a vector of the parameter values.parm.util.get_parameter_mask
that takes a PySB model and parameter name and returns a boolean mask to fancy index the corresponding paramter value vector for that particular parameter.parm.util.set_tat_initial_nM
that takes a parameter value vector and an initial concentration of 2AT in nM and updates the parameter vector with the desired 2AT concentration.Fixed
extras_require
argument in the setup.py to be dictionary instead of a list, now with just the optional Cython dependency. Note that the pysb dependency was moved into theinstall_requires
list.long_description
in setup.py because it was causing error when trying to read the README file.