Skip to content

feat(samples): bundle the Pasolli 2016 benchmark, fix wetlab label header - #25

Merged
eprifti merged 1 commit into
mainfrom
feat/pasolli-samples
Nov 26, 2026
Merged

eprifti merged 1 commit into
mainfrom
feat/pasolli-samples

Conversation

@eprifti

@eprifti eprifti commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Pasolli 2016 benchmark as demo datasets

Six binary disease-prediction tasks from Pasolli et al. 2016 (PLoS Comput Biol 12:e1004977), the same tasks used in Prifti et al. 2020. They are now available from "Load sample":

Demo Cohort Cases / controls Species Train / test
Pasolli2016 Liver Cirrhosis Qin N 2014 118 / 114 542 185 / 47
Pasolli2016 Colorectal Cancer Zeller 2014 48 / 73 503 96 / 25
Pasolli2016 IBD MetaHIT 25 / 85 443 88 / 22
Pasolli2016 Obesity Le Chatelier 2013 164 / 89 465 202 / 51
Pasolli2016 Type 2 Diabetes (China) Qin J 2012 170 / 174 572 275 / 69
Pasolli2016 Type 2 Diabetes (European women) Karlsson 2013 53 / 43 381 76 / 20

MetaPhlAn2 species profiles, relative abundance, stratified 80/20 split (seed 42). Each demo ships metadata.tsv (clinical covariates and train/test assignment) and a README with provenance. They add about 4 MB to the image.

wetlab_protocol label files

Ytrain.tsv and Ytest.tsv had no header line. Both gpredomics and the app's label reader (pd.read_csv, header=0) skip the first line, so the first sample of each file silently lost its label (the engine set it to class 2, unknown). A sample class header was added; all 918 samples are labelled and classes stay balanced (367/367, 92/92).

Test

test_bundled_samples_are_complete_and_labels_have_a_header checks that every declared demo ships its files and that each label file starts with a header and matches its X file. It fails on the previous wetlab file ("first line is a sample, not a header").

Backend suite: 561 passed, 6 skipped.

Deployment

The demos are copied into the image at build time (COPY samples/), so they appear after the next image rebuild.

…ader

- add the six binary tasks of Pasolli et al. 2016 as demo datasets
  (cirrhosis, colorectal, IBD, obesity, T2D China, T2D European women):
  MetaPhlAn2 species, stratified 80/20 split, metadata and README each
- wetlab_protocol: Ytrain/Ytest had no header line; the engine and the
  app's label reader both skip the first line, so the first sample of each
  file lost its label
- test that every declared demo ships its files and that every label file
  starts with a header
@eprifti
eprifti merged commit ca42837 into main Nov 26, 2026
3 of 4 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.

1 participant