Read chromatography and mass spectrometry binary files
Project description
rainbow
rainbow provides programmatic access to the raw data encoded in chromatography and mass spectrometry binary files. This library supports the following vendors and detectors:
Agilent .D
.uv
- UV spectrum (supports incomplete files).ch
- UV, FID, CAD, and ELSD channels.ms
- MS (supports incomplete files)MSProfile.bin
- HRMS
Waters .raw
CHRO
- CAD and ELSD, as well as miscellaneous analog dataFUNC
- UV and MS
There is documentation for rainbow that also details the structure of each binary file format.
Installation
pip install rainbow-api
Usage
The easiest way to get started is to give rainbow a directory path. Assume that we have a directory mydata.D
that contains a binary file DAD1.uv
with UV data.
import rainbow as rb
datadir = rb.read("mydata.D")
datafile = datadir.get_file("DAD1A.uv")
Here, the datadir
DataDirectory object contains a DataFile object for DAD1A.uv
.
The raw UV data is contained in numpy arrays that are attributes of datafile
. Users may find the following particularly useful:
datafile.xlabels
- 1D numpy array with retention timesdatafile.ylabels
- 1D numpy array with wavelengthsdatafile.data
- 2D numpy array with absorbances
There is a tutorial available. There are also example snippets for basic tasks. Or just check out the full API.
Contents
rainbow/
contains the code of the Python library.docs/
contains code for generating documentation. To build documentation locally, you will need to install thesphinx
andsphinx-rtd-theme
packages. Then, move to thedocs/
directory and runmake html
. The docpages will be generated underdocs/_build
.tests/
contains unit tests for the library. These can be run withpython -m unittest
.
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 rainbow_api-1.0.9.tar.gz
.
File metadata
- Download URL: rainbow_api-1.0.9.tar.gz
- Upload date:
- Size: 34.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bab8c589b6d263c235fd7d31e8216b88c0c92f472c82f5ae5dd95a66ed0df3c |
|
MD5 | d4632b7c339d3c82c9154d148309ea30 |
|
BLAKE2b-256 | ab226ddbd00c979195690a9b92e253a9e16a3e23168728eb06b486662269c5d6 |
File details
Details for the file rainbow_api-1.0.9-py3-none-any.whl
.
File metadata
- Download URL: rainbow_api-1.0.9-py3-none-any.whl
- Upload date:
- Size: 35.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 136b8a895c392682b49d687fb949800fdc40e9e9debff43dceada58a46dc7c21 |
|
MD5 | 6863616da8024a9bc53a8b02c11df2ee |
|
BLAKE2b-256 | a1a5180d3a29c4297a6fbdbc4669081ef7dc17c949659ab3bca92dc4a026f8ee |