Skip to content

Implementation for the Pade PSD method developed in the paper 'Frequency Spectra and the Color of Cellular Noise' by Ankit Gupta and Mustafa Khammash

License

Notifications You must be signed in to change notification settings

ankitgupta83/PadePSD_python

Repository files navigation

PadePSD_python

Implementation for the Pade PSD method developed in the paper Frequency Spectra and the Color of Cellular Noise by Ankit Gupta and Mustafa Khammash. It contains the following files:

  1. main.py: This is the main python script which requires a configuration JSON file as input (see below). Based on this configuration file, a reaction network example is selected (from ReactionNetworkExamples.py), its PSD is estimated with DFT and the Padé PSD method developed in the manuscript. Then the desired plots are generated.

  2. PadePSD.py: The file contains subroutines that construct the PSD estimate by estimating all the required expectations with appropriate Monte Carlo estimators. This relies on simulating the augmented CTMC described in the manuscript. The order of the Padé approximant and other simulation-specific parameters are defined in the configuration JSON file.

  3. ReactionNetworkClass.py: This file contains a Python class called "ReactionNetworkDefinition" to describe a generic reaction network.

  4. ReactionNetworkExamples.py: This file contains classes that encode reaction network examples by inheriting the "ReactionNetworkDefinition" class from (ReactionNetworkClass.py). Note that for each example, the output species must be specified. Currently the file includes the examples from the manuscript. More examples can be easily added based on these examples.

  5. PSD_Estimator.py: This file contains the method for estimating the PSD with DFT using discrete-sampled trajectories.

  6. plotting.py: This file contains subroutines for plotting the PSD generated by our method, and comparing it with the DFT-based estimate, and also the exact PSD (if available).

  7. ConfigFileDescription.txt: This text file describes the configuration JSON file for an example. These configuration files are stored in the Configs subfolder.

Command Line Execution Example

python main.py cons_gene_expression.json

Dependencies

NumPy, Sympy

About

Implementation for the Pade PSD method developed in the paper 'Frequency Spectra and the Color of Cellular Noise' by Ankit Gupta and Mustafa Khammash

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages