Python library for parsing and analysing Luminescence time drive data.
Project description
About LumParser
What is LumParser?
- a Python library
- a standalone programme where you can interact with luminescence data through a user interface
If you perform bioluminescent enzymatic reactions and record the light output over time in a spectrometer, you can use LumParser to analyze the resulting data. It saves you the hassle of copy-pasting the data in Excel and subtracting the light background by hand. Plus, you get more options for fitting of data than in Excel.
The program was built to take ascii time drive files as input and detecting features of a typical run:
- An initial phase of around 10s to record the background light, with a luciferase in the reaction mixture.
- Injection of substrate (luciferin) around 10s into the recording, starting light emission. The entire period in which light is emitted is referred to as a signal and the initial spike in light as a peak.
- Slow decay of the light signal over a period of time, which can be fitted to an exponential decay curve.
A run can contain several signals if multiple substrate injections are performed, so multiple signals can be detected by the program.
Requirements
- Python 3.7
- Python third-party libraries:
- matplotlib
- numpy
- scipy
Input files
Input time drive files are text files with the extension ".td". The files can contain a header with information. After the header, a line reading
#DATA
should precede the section of the file containing the recorded datapoints. Data should be in time/value pairs, separated by whitespace. The expected units are seconds (s) for time and relative light units (RLU) for light emission.
Signal detection
The following rules are used to detect a signal:
- The start of the signal cannot overlap with the background. So, if the background is measured between 0 and 10s, a signal start at 9.5s will not be detected.
- The light emission value should increase by more than the threshold value compared to the average of the last 10 datapoints. So, if the threshold is set to 0.3 and the average of the last 10 datapoints is 5.0, the next datapoint should have a value of 5.3 or higher for a signal to be detected. The average of the last 10 datapoints before the start is taken as the baseline.
- If the light emission dips below baseline withing 100 datapoints after the initial increase, the increase is assumed to be the result of noise instead of a signal.
- To make sure that it is always possible to check the rule above, no signal starts can be recorded in the last 100 datapoints in a file.
- A signal ends at the start of the new signal or at the end of the file.
- When a signal is recorded and parsed, the background light value is subtracted from all datapoints and the starting time is set to 0s.
Installing
Install using pip (For installing pip see https://pip.pypa.io/en/stable/installation/):
pip install lumparser
Using the interface
Once the library is installed, run the interface from command line using:
python -m lumparser
or
lumparser
Importing the library
To import the lumparser library, include the line
import lumparser
at the beginning of a script or module.
Maintenance and updates
The library is provided as-is and will not be maintained or updated after June 2023.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lumparser-1.0.0.tar.gz
.
File metadata
- Download URL: lumparser-1.0.0.tar.gz
- Upload date:
- Size: 4.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0441a006e708e1dc06bce30ca392aded8634e0efb51e17146e4422ce0aa470f5 |
|
MD5 | a2cb2f7f61606fc9103edf4934141020 |
|
BLAKE2b-256 | 26ac520306945707fcd25434433d18fb08d20d5e7d6a07cb6fddb2bb15ba62dd |
File details
Details for the file lumparser-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: lumparser-1.0.0-py3-none-any.whl
- Upload date:
- Size: 674.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8634dbb5459ce4dc9d0c4ccf11c44d22452145a630cb0c97b2be0b82c04cee26 |
|
MD5 | ab902a7a2d3b5eccd8e3215ac97e61ee |
|
BLAKE2b-256 | 61856c5df95bdfaf64c5276b9ff97fb14f98ca32353d9bbe431d722d9d4282d8 |