This is a simple code to calculate Q10 values for circadian period length by using SciPy optimize non-linear least squares fit. It fits an exponential equation:
to a set of data points, and estimates a period length at base temperature bt ˚C (τbt) and temperature coefficient (Q10).
Please download q10_calculator.py into your computer and execute it from the command line.
Run: python q10_calculator.py Requirements: Python 3.9+, numpy, scipy, matplotlib (tkinter ships with Python)
https://colab.research.google.com/github/dxda6216/q10/blob/main/circadian_period_q10.ipynb
Open the calculator (Google Colab notebook)
To use the Colab, you will need to login to your Google account. This program is intended solely for calculating Q10 values and plotting data. Data entered into this calculator is neither recorded nor stored anywhere other than your Google account (please see the code).
Click on the link below:
https://colab.research.google.com/github/dxda6216/q10/blob/main/circadian_period_q10.ipynb
Sample Description
To the "Data_description" input form, enter a description of your sample. This field can be blank.
Temperature and Period Data
Enter your data into the "Temperatures" and "Periods" input forms. For example, if you have the following dataset
Temp (˚C) Period (hr) 32.2 28.5 35.3 27.1 37.0 24.2 39.6 22.6 41.8 20.7
enter your data as follows:
The values should be delimited by a single comma. Leading and trailing spaces will be ignored.
Setting Base Temperature
The base temperature bt can be set to any value. It doesn’t affect the approximate solution for Q10.
Data Plotting
Scales of X-axis and Y-axis, ticks, etc will automatically be adjusted.
Exporting Dataset and Fitted Curve
To output the dataset and fitted curve in tab-delimited format, select "Yes" in the "Display_tab_delimited_data" dropdown, and 2-column datasets will be displayed. To export the data to Excel, copy the 2-column dataset and paste it onto an Excel worksheet (right click -> Paste Options: Paste Special... -> Paste as Unicode Text -> click "OK").



