Skip to main content

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", set DOTNET_ROOT to the directory that contains host/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 files
  • output_dir - Directory for output TXT files
  • state_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 file
  • include_filters - Glob pattern to filter scan types
  • named_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


Download files

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

Source Distribution

alex123_converter-0.3.1.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

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

alex123_converter-0.3.1-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

Details for the file alex123_converter-0.3.1.tar.gz.

File metadata

  • Download URL: alex123_converter-0.3.1.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for alex123_converter-0.3.1.tar.gz
Algorithm Hash digest
SHA256 beb4b168fb098be82b5d8d304b1836b11c55253b39997bf22bc7f070700fea63
MD5 1a54fb2708f36c74914614d2da741662
BLAKE2b-256 d5478f8df24800228aca39bc495637522491c8d0b3976f35670b0f5122334a86

See more details on using hashes here.

File details

Details for the file alex123_converter-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for alex123_converter-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45cef34c25fad37628d63ea98530565a19a3386912f81c21ee04ddc2267a7a01
MD5 59cd2fa70472d7e99abc750a1ba865a5
BLAKE2b-256 52a583c154c51e79c6e6f4ee69adad772e2a255ea3d89c448a12149d89865a0f

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