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.14.tar.gz (10.0 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.14-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for exomiser_ml-0.1.14.tar.gz
Algorithm Hash digest
SHA256 520b929b6ce4fa3156a77126744274a0352f4ed2216bb45946bcca707e22a7a5
MD5 b43da54066c65bf55563053a9ed9aa0e
BLAKE2b-256 02e429a0dd8681e773cb796a70ccc8cfdc0fe5888ab43817032934f4f452c66a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exomiser_ml-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 7c4da7a92f97b50da8832e7080e00df375eee855524deebf3502feb3a6e0f2ff
MD5 beeed466f95da7475cc7ce2e4b20dd61
BLAKE2b-256 c075c7d9bf6f19d6b41d0bc07d342289fbbc01aae197f520e24a5f6d986b1818

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