Skip to content

MAI

Bioc current

Mechanism-Aware Imputation

v1.18.0 · Package record · 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.

Advisories

None published for Bioconductor

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

17

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

Has tests

Yes

Test-to-code ratio

0.02

testthat edition

3

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

In the Bioconductor 3.23 release
READMEYes · 36 wordsVignettesYes · 1 · dynamicNEWSYes · 67% structuredCitation fileNoWebsitenot declared in DESCRIPTION
Help pages
2
Examples that run
100%1 run in a plain check
Exported functions with examples
not tracked
Documented parameters
not tracked
Return-value docs
not tracked
Help pages citing references
50%

Repository practices

Upstream repositoryBeta

Checks run against github.com/kechrislab/mai on 2026-10-21.

No development-tooling practices detected in the upstream repository.

How this is detected·Detection ruleset v4 (2026-10-20)

Datasets

Bundled datasets · 1
NameClassSizeAlso in
untargeted_LCMS_datamatrix300 × 100No other package

All of MAI's data objects

Topics

Available on

CRANr2uBioconductorautoCRANCOPR

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 package has no citation file, so citation() returns this entry built from DESCRIPTION.

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-10-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-23, 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