Ompute
Ompute is a Python package for omics data missing value imputation, providing a unified interface to 22 individual and 10 Tribrid imputation models. Each model implements a reproducible classical, machine-learning, bayesian, or hybrid strategy to handle MCAR, MAR, and MNAR missing values in omics datasets.
Imputation Model Details
Individual Imputation Models
| Category | Model Name |
|---|---|
| MCAR | Mean Imputation |
| MCAR | Median Imputation |
| MCAR | Mode Imputation |
| MCAR | Hot-Deck Imputation |
| MCAR | KNN Imputation |
| MCAR | MissForest Imputation |
| MCAR | PPCA / BPCA |
| MCAR | SVD / SoftImpute |
| MCAR | Expectation-Maximization (EM) |
| MAR | MICE / Iterative Imputer |
| MAR | Linear / ElasticNet Regression Imputation |
| MAR | Random Forest Regression Imputation |
| MAR | Local Least Squares (LLS / LSA) |
| MAR | SoftImpute (Matrix Completion) |
| MAR | MissMDA (PCA Iterative) |
| MAR | Bayesian Regression (DPR) |
| MAR | Autoencoder Imputation |
| MNAR | MinDet (Minimum Detection Limit) |
| MNAR | MinProb (Minimum Probability) |
| MNAR | Perseus Downshifted Normal |
| MNAR | Truncated Normal Imputation |
| MNAR | QRILC (Quantile Regression Imputation of Left-Censored) |
Tribrid (Hybrid) Models
| Model | MCAR Component | MAR Component | MNAR Component |
|---|---|---|---|
| trb1 | KNN Imputation | MissForest Imputation | QRILC |
| trb2 | KNN Imputation | Random Forest Regression | QRILC |
| trb3 | Mean Imputation | MICE / Iterative Imputer | MinProb |
| trb4 | Median Imputation | Linear / ElasticNet Regression | Perseus Downshifted Normal |
| trb5 | Mode Imputation | MissForest Imputation | MinDet |
| trb6 | Hot-Deck Imputation | Local Least Squares (LLS / LSA) | Truncated Normal Imputation |
| trb7 | KNN Imputation | MissForest Imputation | Perseus Downshifted Normal |
| trb8 | SVD / SoftImpute | MissMDA (PCA Iterative) | QRILC |
| trb9 | PPCA / BPCA | MICE / Iterative Imputer | MinProb |
| trb10 | KNN Imputation | Random Forest Regression | MinDet |
Input and Experimental Design Structure
1. Input File (input.csv)
The package accepts only CSV files as input.
The input.csv file can contain both metadata columns (e.g., Gene, Protein, Protein Description) and data columns (quantitative features such as intensities or expression values) to be considered for imputation.
Only the data columns specified in the experimental design file (expdes.csv) will be subjected to imputation.
2. Experimental Design File (expdes.csv)
The expdes.csv file defines the structure and mapping between metadata and data columns for imputation.
It guides the imputation pipeline by indicating which columns in the input file correspond to biological metadata and which correspond to numeric data values.
Example:
| Column Name | Group | Replicate |
|---|---|---|
| Control | Control | 1 |
| Control | Control | 2 |
| Control | Control | 3 |
| TreatmentA1 | Test1 | 1 |
| TreatmentA2 | Test1 | 2 |
| TreatmentA3 | Test1 | 3 |
| TreatmentB1 | Test2 | 1 |
| TreatmentB2 | Test2 | 2 |
| TreatmentB3 | Test2 | 3 |
3. Notes
- Both
input.csvandexpdes.csvmust have matching column names for imputation and are case-sensitive. - Missing values (
NaN/0/ blank) in data columns are imputed by the selected model. - Other metadata columns remain same and reflected as it is conserving the original file structure.
- The package expects all input files in comma-separated CSV format with headers.
Usage
Each model can be executed directly as a function once the package is installed.
import ompute
# Example 1: Run an individual model
ompute.knn(i="data/input.csv", d="data/expdes.csv", o="/results")
# Example 2: Run a Tribrid model
ompute.trb1(i="data/input.csv", d="data/expdes.csv", o="/results")
# Example 3: Get imputed data as a pandas DataFrame
df = ompute.mean(i="data/input.csv", d="data/expdes.csv", o="/results", return_df=True)
Metadata
Release files for ompute 1.0.0
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 |
|---|---|---|---|---|
| ompute-1.0.0.tar.gz | 36.4 kB | Without provenance | Details for ompute-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ompute-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for ompute-1.0.0-py3-none-any.whl |
Total release size: 124.5 kB
Release files / ompute-1.0.0.tar.gz
| Download URL | ompute-1.0.0.tar.gz |
|---|---|
| Size | 36.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ae3fff9e996dd5690b1fc114a984730a447e7f399bb6e1de8d43974e51ffab1
|
|
BLAKE2b-256 checksum How to use checksums |
bfe351fb6c4529fcf80c17301c3542e5d95a4b08ec089f7d1e0676e453acf422
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / ompute-1.0.0-py3-none-any.whl
| Download URL | ompute-1.0.0-py3-none-any.whl |
|---|---|
| Size | 88.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df6bdd7f9414f64f9979c95c078b538f037a2d58898cb2cad8eb1d116842c0fe
|
|
BLAKE2b-256 checksum How to use checksums |
8586cc670a421d3a01c1a748835dd3120dd36d3d9f197038775e94aa4fc811cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for ompute 1.0.0
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.