Skip to main content

This tool combines search results from multiple ALEX123 extractor searches into a single output file.

Project description

ALEX123 Unifier

This tool combines search results from multiple ALEX123 extractor searches into a single output file.

Overview

An ALEX123 data search produces a directory with multiple subdirectories, one per MS range. Each subdirectory contains the same set of result files. This tool scans those subdirectories and merges files of the same type into a single output, writing one shared header followed by all data rows.

Installation

Install from PyPI:

pip install alex123-unifier

Usage

Point the tool at the directory produced by an ALEX123 search:

alex123-unifier <search_directory>

Or run it as a module:

python -m alex123_unifier <search_directory>

If no directory is given, the current working directory is used. The unified files are written back into the search directory itself.

Input

The search directory holds one subdirectory per MS range, each containing the same set of result files:

search_results/                          <-- pass this directory to the tool
    neg_101extract_195-400/
        results_alex123_ms1.tab
        lockmasses.tab
        maxgap.tab
        targetlist_ms1.txt
    neg_101extract_350-675/
        results_alex123_ms1.tab
        lockmasses.tab
        maxgap.tab
        targetlist_ms1.txt
    ...

Output

Files of the same type are merged into a single unified file:

Input file pattern Output file
results_alex123_* Results_unified.tab
lockmasses* Lockmass_unified.tab
maxgap* Maxgap_unified.tab
targetlist* Targetlist_unified.txt

Each output file contains the header from the first matched file, followed by the data rows from all matched files. Column headers are validated across files. The unifier raises an error if the columns don't match.

License

alex123-unifier is licensed under the GNU General Public License v3.0 or later (full text). The LICENSE file is included in the package distribution.

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_unifier-0.2.0.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

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

alex123_unifier-0.2.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file alex123_unifier-0.2.0.tar.gz.

File metadata

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

File hashes

Hashes for alex123_unifier-0.2.0.tar.gz
Algorithm Hash digest
SHA256 00d55e3a3974829c60ae09f6d46c9a3f749f2c4801403f1f831218a56003654d
MD5 679c924e3c9b22f72cbda3ed8f6eb25f
BLAKE2b-256 684103a0eb59a49ed2c87ac004f7ee6442ced7cabd5b3ba0bd49696baeea9676

See more details on using hashes here.

File details

Details for the file alex123_unifier-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for alex123_unifier-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 43d94321867f53b4ebd99a1de3d0e02d6768aa407761d3e7bcfdc1d989b82f76
MD5 3c3e5a88fef9dfe03a8e18acede7fa73
BLAKE2b-256 224ba8f3c56e12b6638593912dbedbf060da0f31fa937846a1b5ac2885eac64f

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