adadmire
Functions for detecting anomalies in molecular data sets using Mixed Graphical Models.
Installation
Enter the following commands in a shell like bash, zsh or powershell:
pip install -U adadmire
Usage
The usage example in this section requires that you first download the data files from the data folder. For a description of the contents of this folder, see section Data of the adadmire documentation site.
from adadmire import admire, penalty
import numpy as np
# Load example data
X = np.load('data/Feist_et_al/scaled_data_raw.npy') # continuous data
D = np.load('data/Feist_et_al/pheno.npy') # discrete data
levels = np.load('data/Feist_et_al/levels.npy') # levels of discrete variables
# Define lambda sequence of penalty values
lam = penalty(X, D, min= -2.25, max = -1.5, step =0.25)
# Get anomalies in continuous and discrete data
X_cor, n_cont, position_cont, D_cor, n_disc, position_disc = admire(X, D, levels, lam)
print(X_cor) # corrected X
print(n_cont) # number of continuous anomalies
print(position_cont) # position in X
print(D_cor) # corrected D
print(n_disc) # number of discrete anomalies
print(position_disc) # position in D
You can find more usage examples in the Usage section of adadmire's documentation site.
Documentation
You can find the full documentation for adadmire at spang-lab.github.io/adadmire. Amongst others, it includes chapters about:
Citation
If you use adadmire in your research, please cite:
Buck L, Schmidt T, Feist M, Schwarzfischer P, Kube D, Oefner PJ, Zacharias HU, Altenbuchinger M, Dettmer K, Gronwald W, Spang R. Anomaly detection in mixed high-dimensional molecular data. Bioinformatics. 2023;39(8):btad501. doi:10.1093/bioinformatics/btad501
Metadata
Release files for adadmire 1.0.16
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 |
|---|---|---|---|---|
| adadmire-1.0.16.tar.gz | 1.2 MB | Without provenance | Details for adadmire-1.0.16.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| adadmire-1.0.16-py3-none-any.whl | Python 3 | none | any | Details for adadmire-1.0.16-py3-none-any.whl |
Total release size: 1.2 MB
Release files / adadmire-1.0.16.tar.gz
| Download URL | adadmire-1.0.16.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b53ba49f18453d98e635c3bfed936d2195c497f6c35a0b89b5dcf7c08e76414
|
|
BLAKE2b-256 checksum How to use checksums |
cdc8384134c1085207232f7455cdb43fe306396e716f1348eeb640f5f6fb5ae7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / adadmire-1.0.16-py3-none-any.whl
| Download URL | adadmire-1.0.16-py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3bdc4d5d7c9e426ba5c20e57baaa46b6cfcfcf1c8035e62c465049c4ce056b88
|
|
BLAKE2b-256 checksum How to use checksums |
f3a0cd6fe55a53eb6eaad7db6383c5e42c6b2bd980a7725e67045c627f69168a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for adadmire 1.0.16
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.