Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check rate laws when importing and writing SBML for successful libSBML operation #89

Closed
ayush9pandey opened this issue Feb 6, 2021 · 2 comments
Assignees

Comments

@ayush9pandey
Copy link
Collaborator

No description provided.

@ayush9pandey ayush9pandey self-assigned this Feb 6, 2021
@ayush9pandey ayush9pandey changed the title Check rate laws when importing SBML for successful libSBML operation Check rate laws when importing and writing SBML for successful libSBML operation Feb 17, 2021
WilliamIX pushed a commit that referenced this issue Apr 3, 2021
…93)

* add priors, and custom prior

* py_inference wrapper added

* merge master

* add beta and gamma prior

* add custom prior documenting notebook

* all notebooks work

* typo bug fix

* minor update to inference notebooks

* gaussian prior fix

* bug fixes for log uniform prior and pdf computation bound checks

* add checks to rate law math ast
@WilliamIX
Copy link
Collaborator

@ayush9pandey did this get done in one of your previous PRs?

@ayush9pandey
Copy link
Collaborator Author

Yes, I just checked. The fix for this is already in.

ayush9pandey added a commit that referenced this issue Aug 22, 2022
Safe mode (#67) changes:
      * Deterministic Safe Interface Code written
      * Creating some tests
      * Interface Safemode unit tests complete
      * Updated py_simulate_model to allow Safe Deterministic simulations
      * Added checks to safemode, timestep control to py_simulate_model, code reuse in massaction propensities
      * SafeLineageCSimInterface created: this interface is analogous to the SafeModelCSimInterface and does some basic checking (and warning messages) at the expense of speed.
     * lineage notebooks cleanup: added turbidostat example for lineages, lineage examples split into two notebooks
      * Lineage fixes: Fixed an indexing bug, py_SimulateTurbidostat returns dataframes, and Turbidostat example plotting, improved py_SimulateTurbidostat wrapper


SBML read/write changes:
      * Bioscrape annotations fix (#65)
      * renamed local parameters extended to bioscrape propensity annotations
      * Added Unit Tests for SBML reading and writing with and without annotations
      * Fix for SBML kinetic law formula when importing and writing SBML #89 (#93)
      * add checks to rate law math ast


* Testing and other packaging related changes:
      * Model comparison removed from test_utils
      * Adds a test to make sure running initialize twice isn't a problem.
      * changing paths to work across platforms
      * added pandas to requirements
      * Added tests to compare general propensities to bioscrape propensities
      * update readme travis tag (#75)
      * Switch to Github Actions (#84):  Switching from Travis CI to Github actions. Now tests on Mac OS, Linux, and Windows with python versions 3.6, 3.7, and 3.8
      * Making Bioscrape pip Installable (#86): This PR creates a single setup.py file which automatically compiles Bioscrape's cython code.
      * Manifest is ignored
      * Mid-debug version, trying to figure out why simulations produce NaNs in serialization testing
      * Fixes some bugs in serialization testing


Bug fixes:
      * C vector bug fix (#69): Clears c_vectors in model._create_vectors
      * Remove underscore from parameter definition (#68)
      * Fixed Bioscrape XML loading and added deprecated warning for bioscrape XML


Lineage changes:
      * Lineage beta (#71)
      * Fixed global volume distribution problem wasn't checking cell death correctly
      * Minor changes to lineages: Fixed a bug where arrays of length 0 were being made.
      * Tried to find other places to debug this seg-fault problem. I believe it might now be an issue when running bioscrape inside jupyter notebooks??? When running on the prompt I can run tons of simulations no problem.
      * Added new lineage examples
      * Makes Models and LineageModels picklable; Refactors test_propensities_via_annotations.py test.
      * Adds turbidostat capability to Lineages, along with unit tests for the priority queue used by turbidostat
      * Removes a few unused files
      * index bounds checking for Lineage.py_get_schnitz
      * Fixed perfect partitioning rounding error
      * Fixes np.object-related warning.
      * Fixes a warning in serialization tests
      * Fixed some bugs involving SimulateSingleCell with length 0 or 1 timepoints arrays.
      


Inference changes:
      * add priors, and custom prior
      * py_inference wrapper added
      * add beta and gamma prior
      * add custom prior documenting notebook
      * gaussian prior fix
      * bug fixes for log uniform prior and pdf computation bound checks
      * option to set initial parameter seed. print convergence diagnostics
      * first cut at lmfit support for inference
      * renaming inference files and functions to be agnostic to external parameter inference packages
      * 1. inference.pyx bug with multiple measurements fixed. 2. Added LMFit support for least squares type parameter id. 3. Refactor inference example notebooks. 4. Added inference example notebooks.
      * first cut at delay support for inference
      * change convergence_diagnostics error to warning
      * fix tests
      * refactor inference examples
      * add inference test
      * add emcee version requirement for progress bar update
      * add requirement for scipy>1.6.4 and add lmfit
      * testing suite for inference
      * allow lower scipy versions
      * Fixed deterministic safemode tests
      * raises errors in deterministic safe mode - errors do not stop integration
      * less parallelization so tests don't use up all the RAM
      * Slight change to how linege's SimulateSingleCell handles simulation with a single timepoint, to avoid infinite loops.
      * Add simulation control keywords rtol atol and hmax to inference and bioscrape deterministic simulation
      * fixed a bug which caused the CSimInterface to not update its parameters
      * more init_seed options, including guassian and normal priors + checking for positivity
      * filename option in py_inference
      * loguniform prior sampling initializaiton
      * parameters now can vary in log space
      * precision added to sensitivity analysis and Inference objects now save a list of params along with costs
      * ability to skip resetting up the cost function + optional file writing.
      * ability to reset PID default parameters programatically


Other core bioscrape changes:
      * Expands serialization tests to check deterministic simulations as well as stochastic ones.
      * minor fix to sympy_species_and_parameters
      * merged turbidostat and serialization
      * Merges serialization and turbidostat into dev, with minor fixes.
      * Cython Statistics for SSA Trajectories (#101): SSResult.emperical_distribution and py_empirical_distribution cythonize distribution and marginal distribution calculations. SSAresult.first_moment, second_moment, correlation, and standard_deviation cython methods now all exist. As well as python wrappers.
      * added max_counts_list to allow truncation of the empirical distribution
      * add doc strings
      * Fast statistics for SSA trajectories examples
      * Rules and simulator upgrade (#106)
      * DeterministicDilutionSimulator, SafeModeSSASimulator, TimeDependentSSASimulator, and Core Lineage/Propogate Simulators deleted
      * Major Rule Update:
            ** Rules fire consistently, even when there are no reactions.
            ** New Rule types and firing frequencies, including specific times, every timestep, and every update.
            ** Tests of these new rule features
      * Recomputed all the frozen sim results: Why? Previously, delay reactions firing if no reactions could fire. Propensities are now recomputed ever dt, so the old results also are no longer valid.      
      * version update to 1.0.3
      

Bioscrape XML deprecated now with the following commits:
      * Removing Bioscrape XML and adding SBML Functionality (#108)
      * Removed Bioscrape XML writing, bioscrape XML from the examples, and cell lineages from the advanced examples
      * remove propensity_annotation keyword, always write annotation to bioscrape exported SBML models
      * delay annotation working with propensity annotation
      * remove underscore shenanigans in rule writing
      * refactor import sbml
      * add rule annotation. add rule testing with annotation
      * fix ODE rule SBML writing and loading
      * remove all underscore-to-parameter code
      * check basic notebook - runs without problems
      * turn off input_printout in propensity test


New features: Sensitivity analysis (#111)
      * add tests for sensitivity analysis
      * apply rules in sensitivity analysis

Co-authored-by: William Poole <wpoole@caltech.edu>
Co-authored-by: Ayush Pandey <ayush.9.pandey@gmail.com>
Co-authored-by: Sam Clamons <sclamons@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants