Skip to content

Simplify mutt installation and study downloads - #2

Merged
maxwellkonnaris merged 12 commits into
mainfrom
codex/mutt-v1-release
Nov 23, 2026
Merged

maxwellkonnaris merged 12 commits into
mainfrom
codex/mutt-v1-release

Conversation

@jsilve24

@jsilve24 jsilve24 commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

mutt brings together microbiome profiles and microbial-load measurements from published studies. This PR changes how users get those prepared data into R: install the package, choose a study, and download just that study's data.

Where the code and data live

The original project kept large study files in the repository using Git LFS. This PR keeps the code and study descriptions in Git, and distributes the prepared study data through GitHub Releases:

Location What it contains
R/ Package functions for finding, downloading and loading studies.
studies/ Each study's source information and download and processing scripts.
scripts/ Maintainer tools for checking, packaging and releasing prepared data.
inst/extdata/studies.json A small catalog telling the package which data version to download for each study, where to get it and how to check the file.
GitHub Releases One ZIP per study, containing saved R data and a record of its sources and preparation. These ZIPs are downloaded directly, without Git LFS.

For maintainers, a code or documentation change can be released as a package update. When study data change, prepare a new data release and update the catalog to point to it. Earlier published files remain available; they are not replaced.

Separating the package from the data should make the collection easier to maintain as it grows. Contributors can work on code without downloading all the studies. Package fixes can be released without redistributing unchanged data, and corrected data can get a new version while earlier versions remain available for repeating analyses.

What changes for users

The basic workflow is to list studies, choose one and load it. The data release is still a draft, so the download example below will work once the release is public and the study is marked available:

mutt_studies()
x <- mutt("vandeputte2017")
study <- x$vandeputte2017

study contains the counts, relative abundances, taxonomy, microbial-load measurements and sample information. Results from different methods remain separate. Later requests reuse the downloaded copy. The README explains how to inspect these tables and choose the ones needed for an analysis.

Users can also look up a study's sources and processing scripts with mutt_source() and mutt_recipe(). Those functions do not require downloading the processed study.

Review

Please start with the README: does it give a new user enough information to find and load a study, and understand the result? Then review the loading code in R/ and the maintainer guide for preparing future data releases. Completed migration scripts and reports have been removed; the reusable release tools and study processing scripts remain.

The draft data release contains 40 study ZIPs. Every ZIP was downloaded again and checked, and the packaged study data were also checked through the package loader. No scientific processing was rerun. The package passes local R CMD check with Status OK, and the release-tool tests pass. The optional miaverse converter could not be checked with TreeSummarizedExperiment in this environment because that package was unavailable.

To install the version under review:

remotes::install_github("Silverman-Lab/mutt@codex/mutt-v1-release")

@jsilve24 jsilve24 changed the title Restructure mutt around pinned study releases while preserving current data Simplify MUTT installation and study downloads Oct 30, 2026
@jsilve24 jsilve24 changed the title Simplify MUTT installation and study downloads Simplify mutt installation and study downloads Oct 30, 2026
@maxwellkonnaris
maxwellkonnaris marked this pull request as ready for review October 30, 2026 17:58
@maxwellkonnaris
maxwellkonnaris merged commit 30480ac into main Nov 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants