ALEX123 Converter - RAW to TXT mass spectrometry data converter
Project description
ALEX123 Converter
A Python package for extracting mass spectrometry data from Thermo RAW files and converting them to TXT format.
Overview
This tool extracts and averages spectral data stored in proprietary .RAW files. Specifically, scan-filter-specific peak lists are saved as searchable .txt files in dedicated folders named according to the originating scan filter.
Requirements
- Python >= 3.11
- .NET 8 runtime (Windows, Linux, or macOS)
- Thermo RawFileReader assemblies (installed once with
alex123-converter --setup)
The Thermo RawFileReader assemblies are proprietary and are not distributed with this package. After installing, run alex123-converter --setup once to download them directly from Thermo's official repository (you will be asked to accept Thermo's license). They are stored in a per-user data directory; set the ALEX123_LIB_DIR environment variable to use a different location.
Installing the .NET 8 runtime
The converter loads Thermo's RawFileReader .NET assemblies through pythonnet, so a .NET 8 runtime must be present on the machine.
Windows — run in an elevated terminal (or use the Microsoft Store):
winget install Microsoft.DotNet.Runtime.8
Or download it manually from the official .NET 8.0 page (choose .NET Runtime → Windows → your CPU architecture); see the Windows install guide.
Linux (Ubuntu/Debian):
sudo apt install dotnet-runtime-8.0
macOS:
brew install --cask dotnet-runtime
Verify the runtime is on PATH:
dotnet --list-runtimes
The output must contain a Microsoft.NETCore.App 8.x line.
macOS / Homebrew note. The converter auto-detects the .NET runtime in the usual locations (including Homebrew's keg-only
dotnet@8). If it still reports "Could not initialise the .NET runtime", setDOTNET_ROOTto the directory that containshost/fxr:export DOTNET_ROOT=/opt/homebrew/opt/dotnet@8/libexec
Installation
Install the package:
pip install alex123-converter
Then download the Thermo RawFileReader assemblies (one-time):
alex123-converter --setup
This fetches the assemblies from Thermo's official repository after you accept Thermo's license. If you are offline or behind a proxy, download the .nupkg files manually and point setup at them:
alex123-converter --setup --from /path/to/downloaded/nupkgs
Usage
alex123-converter config_file.txt
Or via the Python module:
python -m alex123_converter config_file.txt
Configuration
Create a JSON configuration file (see examples/config_file.txt for an example) with the following options:
input_dir- Directory containing RAW filesoutput_dir- Directory for output TXT filesstate_file- File to track processed files (enables incremental processing)data_format- "profile" or "centroid" (centroid is only available for FTMS scans)skip_scans- Number of scans to skip at the beginning/end of each fileinclude_filters- Glob pattern to filter scan typesnamed_averages- Define specific scan ranges to average
License
alex123-converter is licensed under the GNU General Public License v3.0 or later
(full text), with an additional
permission under GPL section 7 that allows combining it with Thermo Fisher
Scientific's RawFileReader assemblies. The LICENSE and LICENSE-EXCEPTION.txt
files are included in the package distribution.
The Thermo RawFileReader assemblies are not part of this project and are not
distributed with it. They are downloaded by alex123-converter --setup directly
from Thermo Fisher Scientific and remain subject to their own proprietary license
(the RawFileReader Software License Agreement), which prohibits commercial
exploitation and redistribution. You are responsible for complying with that
license.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file alex123_converter-0.3.2.tar.gz.
File metadata
- Download URL: alex123_converter-0.3.2.tar.gz
- Upload date:
- Size: 25.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6e2a2e51212e7307d35325bdf3ae6da807368740894c5f0ec0cb4fcfd6cf2ef
|
|
| MD5 |
f029a8ea82105c589d6447377bb4751e
|
|
| BLAKE2b-256 |
3ee4a2a89a602c56f8baeb57020e5e925af2221c996c7371a78523d5cd9fe4a9
|
File details
Details for the file alex123_converter-0.3.2-py3-none-any.whl.
File metadata
- Download URL: alex123_converter-0.3.2-py3-none-any.whl
- Upload date:
- Size: 27.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
947925690679520b960b5137aaa36db3ef9c5bcf5a545d2675c3cf0160896a1b
|
|
| MD5 |
4c4bdd01b65dcad4ff5292b61a1d32df
|
|
| BLAKE2b-256 |
1797b900e39cb1c0c2c138152b3fba5ca82dab6ea63c5e5f53092b3c81da3fb8
|