| Information | Links |
|---|---|
| Package | |
| Documentation | |
| Build | |
| Discuss on GitHub |
A tool for estimating growth rates in growth curves. The tool fits
The parameter
The growth rate in calculated growth phases can only be properly compared if their seeding OD (when the organism is at its initial population) points to a similar stage of actual growth.
Intercept (λ) reported by this package can be used as indicator of lag if SNR is sufficiently high.
To install croissance, use Python 3.x pip:
pip3 install croissanceCroissance can be used from command-line or as a Python library. The input to the command-line tool is generally one or more *.tsv files (tab-separated values) with the following format:
| time | A1 | A2 | ... |
|---|---|---|---|
| 0.0 | 0.0 | 0.01 | ... |
| 0.17 | 0.14 | 0.06 | ... |
| ... | ... | ... | ... |
Each sample should be recorded in its own column with the sample name in the header row. The time unit is hours and the value unit should be OD or some value correlating with OD.
To process this file, enter:
croissance example.tsvThe output will be generated at example.output.tsv. The output is formatted with column headers: name (sample name), phase (nth growth phase), start (start time), end (end time), slope (μ), intercept (λ), n0 (
To also output a PDF files with figures (example.output.pdf), enter:
croissance --figures example.tsvTo see a description of all the command-line options available, enter croissance --help.
For use from Python, provide your growth curve as a pandas.Series object. The growth rates are estimated using croissance.process_curve(curve). The return value is a namedtuple object with attributes series, outliers and growth_phases. Each growth phase has the attributes start (start time), end (end time), slope (μ), intercept (λ), n0 (SNR (signal-to-noise ratio of the fit) and rank.
from croissance import process_curve
result = process_curve(my_curve)
print(result.growth_phases)