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
- 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
Metadata
Release files for seqexplainer 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| seqexplainer-0.1.2.tar.gz | 32.6 kB | Without provenance | Details for seqexplainer-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| seqexplainer-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for seqexplainer-0.1.2-py3-none-any.whl |
Total release size: 73.2 kB
Release files / seqexplainer-0.1.2.tar.gz
| Download URL | seqexplainer-0.1.2.tar.gz |
|---|---|
| Size | 32.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89ad85e3ce624f7eb5d84e75d4be0162319891104bf7d5575171347cccddc391
|
|
BLAKE2b-256 checksum How to use checksums |
0d4abd33b39f8eef8d029547f6805ae60876be1c5dda4400cbf64cc72164741f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.9.16 Linux/4.18.0-425.3.1.el8.x86_64
|
Release files / seqexplainer-0.1.2-py3-none-any.whl
| Download URL | seqexplainer-0.1.2-py3-none-any.whl |
|---|---|
| Size | 40.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2c039ea56e3095d5a22e1591aa45a22f3e2b167c008451070b1d0d8fb55d036
|
|
BLAKE2b-256 checksum How to use checksums |
cd762da64231cc08c72419a59d6cb7f13902a25522a4897c5285b202d5b5738d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.9.16 Linux/4.18.0-425.3.1.el8.x86_64
|
Security for seqexplainer 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.