Repository navigation
feat(samples): bundle the Pasolli 2016 benchmark, fix wetlab label header - #25
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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":
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.tsvandYtest.tsvhad 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). Asample classheader 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_headerchecks 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.