Skip to main content

EIR-auto-GP

EIR auto GP Logo

Documentation Status


EIR-auto-GP: Automated genomic prediction (GP) using deep learning models with EIR.

WARNING: This project is in alpha phase. Expect backwards incompatible changes and API changes.

NOTE: This project is specifically for genomic prediction. For more general and configurable deep learning tasks, please refer to EIR.

Overview

EIR-auto-GP is a comprehensive framework for genomic prediction (GP) tasks, built on top of the EIR deep learning framework. EIR-auto-GP streamlines the process of preparing data, training, and evaluating models on genomic data, automating much of the process from raw input files to results analysis. Key features include:

  • Support for .bed/.bim/.fam PLINK files as input data.
  • Automated data processing and train/test splitting.
  • Takes care of launching a configurable number of deep learning training runs.
  • SNP-based feature selection based on GWAS, deep learning-based attributions, and a combination of both.
  • Ensemble prediction from multiple training runs.
  • Analysis and visualization of results.

Installation

First, ensure that plink2 is installed and available in your PATH.

Then, install EIR-auto-GP using pip:

pip install eir-auto-gp

Important: The latest version of EIR-auto-GP supports Python 3.12. Using an older version of Python will install a outdated version of EIR-auto-GP, which likely be incompatible with the current documentation and might contain bugs. Please ensure that you are installing EIR-auto-GP in a Python 3.12 environment.

Usage

Please refer to the Documentation for examples and information.

Workflow

The rough workflow can be visualized as follows:

EIR auto GP Workflow

  1. Data processing: EIR-auto-GP processes the input .bed/.bim/.fam PLINK files and .csv label file, preparing the data for model training and evaluation.
  2. Train/test split: The processed data is automatically split into training and testing sets, with the option of manually specifying splits.
  3. Training: Configurable number of training runs are set up and executed using EIR's deep learning models.
  4. SNP feature selection: GWAS based feature selection, deep learning-based feature selection with Bayesian optimization, and mixed strategies are supported.
  5. Test set prediction: Predictions are made on the test set using all training run folds.
  6. Ensemble prediction: An ensemble prediction is created from the individual predictions.
  7. Results analysis: Performance metrics, visualizations, and analysis are generated to assess the model's performance.

Citation

If you use EIR-auto-GP in a scientific publication, we would appreciate if you could use one of the following citations:

@article{10.1093/nar/gkad373,
    author    = {Sigurdsson, Arn{\'o}r I and Louloudis, Ioannis and Banasik, Karina and Westergaard, David and Winther, Ole and Lund, Ole and Ostrowski, Sisse Rye and Erikstrup, Christian and Pedersen, Ole Birger Vesterager and Nyegaard, Mette and DBDS Genomic Consortium and Brunak, S{\o}ren and Vilhj{\'a}lmsson, Bjarni J and Rasmussen, Simon},
    title     = {{Deep integrative models for large-scale human genomics}},
    journal   = {Nucleic Acids Research},
    month     = {05},
    year      = {2023}
}

@article{sigurdsson2024non,
  title={Non-linear genetic regulation of the blood plasma proteome},
  author={Sigurdsson, Arnor I and Gr{\"a}f, Justus F and Yang, Zhiyu and Ravn, Kirstine and Meisner, Jonas and Thielemann, Roman and Webel, Henry and Smit, Roelof AJ and Niu, Lili and Mann, Matthias and others},
  journal={medRxiv},
  pages={2024--07},
  year={2024},
  publisher={Cold Spring Harbor Laboratory Press}
}

@article{sigurdsson2022improved,
    author    = {Sigurdsson, Arnor Ingi and Ravn, Kirstine and Winther, Ole and Lund, Ole and Brunak, S{\o}ren and Vilhjalmsson, Bjarni J and Rasmussen, Simon},
    title     = {Improved prediction of blood biomarkers using deep learning},
    journal   = {medRxiv},
    pages     = {2022--10},
    year      = {2022},
    publisher = {Cold Spring Harbor Laboratory Press}
}

Metadata

Release files for eir-auto-gp 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eir-auto-gp 0.10.0
File Size Uploaded
eir_auto_gp-0.10.0.tar.gz 94.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for eir-auto-gp 0.10.0
File Interpreter ABI Platform
eir_auto_gp-0.10.0-py3-none-any.whl Python 3 none any Details

Total release size: 216.4 kB

Release files / eir_auto_gp-0.10.0.tar.gz

Download URL eir_auto_gp-0.10.0.tar.gz
Size 94.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9ea4cfabc76197383162e538047359ce8bc8dbfc0d4002dc7e1f4e6dde17ec01
BLAKE2b-256 checksum
How to use checksums
7e2fa9004ffacdd7d591696ce79feb8f8c8b731956860e9f5d6fd545fbada044
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.23

Release files / eir_auto_gp-0.10.0-py3-none-any.whl

Download URL eir_auto_gp-0.10.0-py3-none-any.whl
Size 121.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9730c92cc1a44bad21f84f01378b0b3a6f51345ed9cffea40f3199502525e316
BLAKE2b-256 checksum
How to use checksums
7d146099df72f833f149d6127a6a5da5bd9a30b20ad425b4e98f4bd68b7d934c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.23
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page