Skip to main content

A Python package for online gas chromatography.

Project description

ChromStream

pyGCxGC Logo

A Python package for processing on-line gas chromatography data. ChromStream provides tools to parse, analyze, and visualize chromatographic data from various GC systems, and combine it with data from logfiles such as temperature and pressure.

Features

  • Parse chromatographic data from multiple formats (Chromeleon, FID, etc.)
  • Access to data at experiment, channel and chromatogram level
  • Quick plotting of chromatograms
  • Small selection of baseline corrections, possibility to use custom ones
  • Integration using a dict of peaks
  • Addition of logfiles

Installation

Installing using pip

pip install ChromStream

Install using uv

If you're using uv for fast Python package management:

uv add ChromStream

Quick Start

Check the Quickstart Notebook to see a full demonstration of the most important features of the package. Here's a simple example of how to set up an experiment, add chromatograms and plot them:

import chromstream as cs

exp = cs.Experiment(name='hello there')
exp.add_chromatogram('path-to-your-chromatogram') #loop over files to add multiple
exp.plot_chromatograms()

To access specific channels:

exp.channels['channel-name'].plot()

For specific chromatograms:

exp.channels['channel-name'].chromatograms[0].plot()

Supported File Formats

ChromStream currently supports parsing data from:

  • Chromeleon software exports (.txt)
  • (software names) (ascii files)
  • simple log files (e.g. exported from labview)

Documentation

  • You can find the full documentation of the package here.

Example Notebooks

Check out the example_notebooks/ directory for comprehensive examples:

  • example_calibration.ipynb - GC calibration procedures

Roadmap

  • Support for more files formats
  • Addition of more data sources such as spectroscopy
  • JSON saving and parsings
  • tests

Contributing

This package is in active development. Any help is appreciated. You can submit feature requests or bug reports as issues on the repository. If you have a specific file format which presently is nto supported please provide an example file. PRs are more than welcome.

Authors

Sebastian Rejman - Utrecht University

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chromstream-0.0.2.tar.gz (54.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chromstream-0.0.2-py3-none-any.whl (61.2 kB view details)

Uploaded Python 3

File details

Details for the file chromstream-0.0.2.tar.gz.

File metadata

  • Download URL: chromstream-0.0.2.tar.gz
  • Upload date:
  • Size: 54.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.12

File hashes

Hashes for chromstream-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8a3d3c6fb934213396deb05c3464bb955ba5ab143d39f11d6ac8288fcde89de7
MD5 05e95a3a68fda9e9df8f68850b14b1ef
BLAKE2b-256 645051a68815df20db37b8df755fd765de3b97a8431d83fe85a1ef71b8cd94e7

See more details on using hashes here.

File details

Details for the file chromstream-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for chromstream-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c233fd4356dd28267a86f0a11da9e762e2f3c45e8d43927b76b7cf2d97a89dc6
MD5 d688008881faac1e3a4e0ced957d6570
BLAKE2b-256 68cfc668c3d54e32f51a5b5367fa66ca86b041292875e7f149745aaf1b6a7809

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page