Skip to main content

Interpreting sequence-to-function machine learning models

Project description

PyPI version PyPI - Downloads

SeqExplainer Logo

SeqExplainer -- Interpreting sequence-to-function machine learning models

A huge goal of applying machine learniing to genomics data is to obtain novel geneetic insights [1]. This can be challenging when models are complex (such as with neural networks). There are many interpretability methods specifically designed for such complex sequence-to-function preditctors, but they can be difficult to use and often are not interoperable.

The goal of SeqExplainer is to bring all these methods under one roof. We have designed a workflow that can take in any PyTorch model trained to predict labels from DNA sequence and expose it to many of the most popular explainability methods available in the field. We also offer some wrappers for explaining "shallow" sklearn models.

What is the scope of SeqExplainer?

Most of the core functionality is for post-hoc analysis of a trained model.

Common workflows

Feature attribution analysis (coming soon)

Identifying motifs in attributions (coming soon)

Testing feature dependencies (coming soon)

Tutorials

Extracting motif syntax rules from a CNN (coming soon)

Explaining predictions for shallow models on synthetic MPRAs using SHAP (coming soon)

Requirements

The main dependencies of SeqExplainer are:

python
torch
captum
numpy
matplotlib
logomaker
sklearn
shap

References

  1. Novakovsky, G., Dexter, N., Libbrecht, M. W., Wasserman, W. W. & Mostafavi, S. Obtaining genetics insights from deep learning via explainable artificial intelligence. Nat. Rev. Genet. 1–13 (2022) doi:10.1038/s41576-022-00532-2

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

seqexplainer-0.1.1.tar.gz (32.6 kB view details)

Uploaded Source

Built Distribution

seqexplainer-0.1.1-py3-none-any.whl (40.6 kB view details)

Uploaded Python 3

File details

Details for the file seqexplainer-0.1.1.tar.gz.

File metadata

  • Download URL: seqexplainer-0.1.1.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.16 Linux/4.18.0-425.3.1.el8.x86_64

File hashes

Hashes for seqexplainer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6c4ee90ddf6b491dbc0d62864b7fa7a75b4c12fc7dadfaeb76d04b3807ad9300
MD5 7af4478acb05f769dd814564bd502ece
BLAKE2b-256 79011d3c6213cc8c6f7ecc84a2fa0314ed2838826c28ee6ae673ba91effd1509

See more details on using hashes here.

Provenance

File details

Details for the file seqexplainer-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: seqexplainer-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 40.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.16 Linux/4.18.0-425.3.1.el8.x86_64

File hashes

Hashes for seqexplainer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 28b2127e897fe3d4b391eb70e2db0be13f0b1e73c61e0cd593ed5425eb052b07
MD5 458e679d308a93862e54418e8f2615c4
BLAKE2b-256 dc1804b0568993f302f3babd5e7c838077c5a17bc7016abb90d9edcd7599131e

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page