Skip to main content

A machine learning pipeline for variant prioritisation using Exomiser output.

Project description

Exomiser ML

Exomiser-ML is a Python-based machine learning pipeline designed to enhance variant prioritisation by integrating various Exomiser scores. It supports classification using Logistic Regression, Random Forest, and XGBoost, and includes utilities for feature extraction, data splitting, model training, and post-processing.

🚀 Features

  • Extracts features from Exomiser variant TSV result files and Phenopackets.
  • Supports multiple classifiers: Logistic Regression, Random Forest, and XGBoost.
  • Provides CLI commands for training, and full pipeline execution.
  • Generates metadata and post-processed results compatible with PhEval for benchmarking.

📦 Installation

Ensure you have Python 3.12 or higher installed.

pip install exomiser-ml

🧪 Usage

The package provides several CLI commands:

  1. run-model

Trains and evaluates a model using provided training data and test directory.

run-model \
  --training-data path/to/train.tsv \
  --test-dir path/to/test_dir \
  --features FEATURE1 FEATURE2 ... \
  --output-dir path/to/output \
  --phenopacket-dir path/to/phenopackets \
  --model MODEL_TYPE

Parameters:

  • --training-data: Path to the training data TSV file.
  • --test-dir: Directory containing test data files.
  • --features: List of features to extract.
  • --output-dir: Directory to save outputs.
  • --phenopacket-dir: Directory containing Phenopacket JSON files.
  • --model: Model type to use. Choices: LOGISTIC_REGRESSION, RANDOM_FOREST, XGBOOST_CLASSIFIER
  1. run-pipeline

Executes the full pipeline: feature extraction, data splitting, training, evaluation, and post-processing.

run-pipeline \
  --phenopacket-dir path/to/phenopackets \
  --result-dir path/to/exomiser_results \
  --output-dir path/to/output \
  --features FEATURE1 FEATURE2 ... \
  --test-size 0.2 \
  --model MODEL_TYPE

Parameters:

  • --phenopacket-dir: Directory containing Phenopacket JSON files.
  • --result-dir: Directory containing Exomiser result TSV files.
  • --output-dir: Directory to save outputs.
  • --features: List of features to extract.
  • --test-size: Proportion of data to use for testing (e.g., 0.2 for 20%).
  • --model: Model type to use. Choices: LOGISTIC_REGRESSION, RANDOM_FOREST, XGBOOST_CLASSIFIER.
  1. add-features

Adds features to Exomiser results.

add-features \
  --phenopacket-dir path/to/phenopackets \
  --result-dir path/to/exomiser_results \
  --output-dir path/to/output
  1. split-data

Splits data (Exomiser TSV results) into training and testing sets.

split-data \
  --input-dir path/to/input_data \
  --test-size 0.2 \
  --output-dir path/to/output
  1. post-process

Post-processes test results for downstream benchmarking with PhEval.

post-process \
  --test-dir path/to/test_results \
  --phenopacket-dir path/to/phenopackets \
  --output-dir path/to/output \
  --score NEW_SCORE

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

exomiser_ml-0.1.2.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

exomiser_ml-0.1.2-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file exomiser_ml-0.1.2.tar.gz.

File metadata

  • Download URL: exomiser_ml-0.1.2.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.3

File hashes

Hashes for exomiser_ml-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f3efcf81e84f6d9e8da292be7240a33a663120a9637cb83fe23f6686239981a7
MD5 867afc121d500ee65fbc6eaa837ff928
BLAKE2b-256 946811b5978554d2e03f939228bfff271ea8e024ff284791276a4776faace2de

See more details on using hashes here.

File details

Details for the file exomiser_ml-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for exomiser_ml-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b77960c76a2da09b96093f9e1ffc3e3404c7d5a0f91ce9d7cbc0b9b6fed0baf3
MD5 5e44e3b5cdf3577d9d56d6bfbca920b0
BLAKE2b-256 2cbf16454b52de0846e5ddf91bfee10e574df9ed2751dc21b4cdb616dda374d9

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