r/coolgithubprojects • • 1d ago

Variance - Open-source Rust desktop app for biostatistics and scientific graphing, verified against R and NIST

GitHub: https://github.com/maximedeprince/variance

I'm a microbiologist and just released v0.1.0 of Variance, a local-first, GPL-3.0 desktop application written in Rust for biostatistics and publication-ready scientific figures.

It includes 49 statistical analyses and 104 built-in equations across 8 table types, interactive multi-graph layouts, vector and raster exports (PDF, SVG, EPS, EMF, CMYK TIFF, .docx/.pptx), and a built-in English/French guide. All 49 analyses were differentially validated against R 4.6.2 and NIST StRD datasets (60k+ test cases, 63 numerical edge cases caught and fixed in validation/DISCREPANCIES.md), and every analysis has a Check in R button that exports a standalone R script to independently verify the exact numbers.

A standalone Windows x64 executable is on the Releases page, and it builds from source on Linux and macOS with cargo build --release.

Feedback and bug reports are welcome !

18 Upvotes

2 comments sorted by

1

u/unicornshedsocial 1d ago

The Check in R button is the part I'd trust most, since a reviewer can rerun the numbers instead of taking the GUI's word for it. Does the exported script pin the R version and the input data too, or just the analysis steps?

0

u/Linkredible 1d ago

Good question, and the honest answer is "partly".

The input data is exported next to the script as a companion CSV (same folder), and the script reads it from there, so the numbers are recomputed from exactly what Variance analysed. The header also records the Variance version that produced it.

The R version and package versions are not pinned, though. Most analyses stick to base R; otherwise the script only states "R 4.2 or later" plus the packages it needs (e.g. lme4, nlme, survival for some analyses). So a rerun on a different R environment could in principle differ slightly, although the comparison table uses tolerances for that.

Your question made me realize that while it wouldn't pin the environment, printing sessionInfo() at the end of the script output is trivial and would at least record the exact R and package versions used during the check. I'll add that in the next release !