Skip to content

MAI

Bioc current

Mechanism-Aware Imputation

v1.18.0 · software · GPL-3

Release Lineage

Entered 3.14 · Oct 27, 2021

Current · Requires R 4.6

1.0 In 10 of 49 releases 3.23

Description

A two-step approach to imputing missing data in metabolomics. Step 1 uses a random forest classifier to classify missing values as either Missing Completely at Random/Missing At Random (MCAR/MAR) or Missing Not At Random (MNAR). MCAR/MAR are combined because it is often difficult to distinguish these two missing types in metabolomics data. Step 2 imputes the missing values based on the classified missing mechanisms, using the appropriate imputation algorithms. Imputation algorithms tested and available for MCAR/MAR include Bayesian Principal Component Analysis (BPCA), Multiple Imputation No-Skip K-Nearest Neighbors (Multi_nsKNN), and Random Forest. Imputation algorithms tested and available for MNAR include nsKNN and a single imputation approach for imputation of metabolites where left-censoring is present.

Test coverage

Line coverage

Expression

Tests / Examples

Functions

9 0 exported

Complexity

11.7 avg / 28 max

Call network

9 nodes / 8 edges

Test coverage is not measured for Bioconductor packages; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Code

Structure

Lines of code

1,370

Files

18

Compiled share

0%

Has compiled src

No

Language breakdown

R 1,104 (80.6%)Tests 17 (1.2%)Docs 102 (7.4%)Vignettes 147 (10.7%)

API

Exported functions

1

Internal functions

9

Testing & CI

Has tests

Yes

Test-to-code ratio

0.02

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Roxygen coverage

0%

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

10

First release

2021-10-26

Latest release

2026-04-28

Avg cadence

182 days

Cold removal rate

Dep drift

0

LOC over versions

v3.14: 1,341 LOCv3.15: 1,341 LOCv3.16: 1,370 LOCv3.17: 1,370 LOCv3.18: 1,370 LOCv3.19: 1,370 LOCv3.20: 1,370 LOCv3.21: 1,370 LOCv3.22: 1,370 LOCv3.23: 1,370 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/bioc-code-metrics.

Documentation

Documentation
READMEYes · 36 wordsVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
not tracked
Return-value docs
not tracked
References docs
50%

Datasets

Bundled datasets · 1
NameClassRows × ColsAlso in
untargeted_LCMS_datamatrix300 × 100No other package

All of MAI's data objects

Topics

People

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("MAI")
Dekermanjian, J., Ghosh, D., Kechris, K., Nandy, D., & Shaddox, E. (2026). MAI: Mechanism-Aware Imputation (Version 1.18.0) [Computer software]. https://bioconductor.org/packages/MAI

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for MAI version 1.18.0 [Data set]. HJJB, LLC. Data release v2026-08-26. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy