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.2.tar.gz (25.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.2-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

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

Hashes for alex123_converter-0.3.2.tar.gz
Algorithm Hash digest
SHA256 b6e2a2e51212e7307d35325bdf3ae6da807368740894c5f0ec0cb4fcfd6cf2ef
MD5 f029a8ea82105c589d6447377bb4751e
BLAKE2b-256 3ee4a2a89a602c56f8baeb57020e5e925af2221c996c7371a78523d5cd9fe4a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alex123_converter-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 947925690679520b960b5137aaa36db3ef9c5bcf5a545d2675c3cf0160896a1b
MD5 4c4bdd01b65dcad4ff5292b61a1d32df
BLAKE2b-256 1797b900e39cb1c0c2c138152b3fba5ca82dab6ea63c5e5f53092b3c81da3fb8

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