LaserTRAM-DB
Welcome to LaserTRAM-DB, a PyQt6-based graphical user interface for processing LA-ICP-MS (Laser Ablation Inductively Coupled Plasma Mass Spectrometry) data using the lasertram library.
Migrating from previous versions
Previously, LaserTRAM-DB had been built using Plotly-Dash and hosted on GitHub. That repository has now been archived and all current development will be happening in this repository, as all new dev work by me will be done on USGS time, rather than when I was a grad student. It is HIGHLY recommended you abandon using the GitHub version of the dashboard as it is no longer supported and switch over to this one.
Motivation
LaserTRAM-DB is a dashboard for the complete processing pipeline of Laser Ablation Inductively Coupled Plasma Mass Spectrometry (LA-ICP-MS) data in complex materials such as geologic samples. As LA-ICP-MS data in geologic samples frequently have multiple phases, inclusions, and other compositional complexities within them that do not represent the material of interest, user interaction is required to filter unwanted signals out of the overall ablation signal. LaserTRAM-DB allows the user to filter which portion of the ablation peak is utilized in calculating concentrations, subsequently allowing for more accurate data to be obtained. It allows easy inspection of any sort of calculation done to the data and just about everything is exportable from tables and figures displayed within the dashboard.
Installation
It is recommended you do this in a fresh virtual environment. For example, using conda:
# create lasertramdb virtual environment
# using specifically python 3.13
conda create -n lasertramdb python=3.13
Then with your virtual environment activated clone the repository to your local machine wherever you like:
# Clone or download the repository
# and navigate to it on your machine
cd lasertramdb
conda activate lasertramdb
# install normally
pip install .
# Or install in development mode with dev dependencies
pip install -e ".[dev]"
Launching the Application
# with the virtual environment activated
# and library installed
lasertramdb
Basic Structure
The dashboard is comprised of four parts:
Note to get more information all the annotated widgets below, with the installation complete, simply activate your virtual environment and:
lasertramdb --help
The first time you run this command, it will take a bit to start up as it is compiling the application. After that, it should start up much faster.
Preprocessing
Below is an annotated LaserTRAM preprocessing tab from LaserTRAM-DB. This tab is used for taking a folder of .csv files, each containing the raw counts per second data for a single spot analysis, and combining them into one coherent dataset that can then be processed using the LaserTRAM tab. Each .csv file is the untouched file off the mass spectrometer for a single spot analysis. Rather than dealing with a collection of hundreds of files, this tab allows the user to consolidate all that information into one place.
LaserTRAM
Below is an annotated LaserTRAM tab from LaserTRAM-DB. This tab is used for determining which portion of a signal is utilized for further processing. As many geologic materials contain heterogeneities, this time resolved analysis is crucial in accurately calculating concentrations for materials of interest. Everything in this tab is designed to make that process efficient and quantifiable.
LaserTRAM reprocessing
Below is an annotated LaserTRAM-reprocessing tab from LaserTRAM-DB. This tab is used for "redoing" the lasertram process with already chosen intervals (i.e., the results of a previous experiemnt). Its purpose is to allow the user to use intervals from a previous session to either re-normalize to a different internal standard, apply (or not) a despiking algorithm to the data, or both! The overall goal is to make it such that the most time consuming part of laser ablation data processing - the choosing of ablation intervals that reflect the material of interest - is only done once.
LaserCalc
Below is an annotated LaserCalc tab from LaserTRAM-DB. The purpose of this tab is to take data that have been filtered for the desired signal region and normalized to an internal standard and calculate concentrations based on the known concentrations of:
- a user specified calibration standard reference material
- the internal standard in the unknown analyses.
For more information on the math behind this, the user is referred to the lasertram documentation. There are also widgets within the LaserCalc tab for inspecting the behavior or analytes in the calibration standard over time. As these data are extremely important in calculating final concentrations, checking their quality and behavior over an analytical session helps maximize final concentration quality.
Usage
After installation, to fire up the application run from the command line (within whichever envrironment the dashboard is installed. The first time you run this command, it will take a bit to start up as it is compiling the application. After that, it should start up much faster.):
lasertramdb
Or from Python:
from lasertramdb.app import main
main()
On application startup a File Dialog will prompt the user to choose a directory. This will be the "home" directory for the data processing session and the default location that all other File Dialogs will open up to and save files to. It is also where each session log file will be saved. This can be updated at any point in the session.
Workflow
It is recommended that users first become familiar with basic laser ablation ICP-MS data processing workflows. This can be done by referencing the lasertram documentation. Specifically the following sections:
In many ways you can think of this dashboard as a graphical user interface for the lasertram library where the widgets help you efficiently inspect how choosing different ablation intervals, internal standards, and calibration standards affect your final calculated concentrations.
Demo Videos
Coming Soon
For now we refer users to the old videos here, as much of the logic and general workflow can be found there.
Referencing
The underlying math and data structures are outlined in the following manuscript:
Lubbers, J., Kent, A. J., & Russo, C. (2025). lasertram: A Python library for time resolved analysis of laser ablation inductively coupled plasma mass spectrometry data. Applied Computing and Geosciences, 25, 100225. https://doi.org/10.1016/j.acags.2025.100225
The dashboard itself is also citeable:
Lubbers, J., (2026). lasertramdb, version 2.0.0: U.S. Geological Survey software release https://doi.org/10.5066/P14VNQMY
Contributing
I am more than happy to have contributors. If you feel that you have ideas you would like implemented or want to help contribute please reach out:
Maintainer: Jordan Lubbers jlubbers at usgs dot gov
Metadata
Release files for lasertramdb 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lasertramdb-2.0.0.tar.gz | 6.0 MB | Without provenance | Details for lasertramdb-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lasertramdb-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for lasertramdb-2.0.0-py3-none-any.whl |
Total release size: 12.0 MB
Release files / lasertramdb-2.0.0.tar.gz
| Download URL | lasertramdb-2.0.0.tar.gz |
|---|---|
| Size | 6.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ab68cf61b4c2e8618c027e6ca66292fb7d26d61f84bd849db9fa5ca76f267e1
|
|
BLAKE2b-256 checksum How to use checksums |
d12a898d0f2927bf23744f0d447449b6d0e42c46b7e8393b3ec906b20b607776
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / lasertramdb-2.0.0-py3-none-any.whl
| Download URL | lasertramdb-2.0.0-py3-none-any.whl |
|---|---|
| Size | 6.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6936bceda2c0cbc5fe8e8106b0de82aebf4e214e39c4c12d382aaa438e81397
|
|
BLAKE2b-256 checksum How to use checksums |
1ce6fbd76c2d48a6f8927f9983040db06e512beb77bda4a525e4f5a10a8481f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for lasertramdb 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.