flowchart TD
A["Define the question and task"] --> B["Attach relevant files or excerpts"]
B --> C["Ask AI to review the supplied evidence"]
C --> D["Check claims against original sources"]
D --> E{"Is the evidence sufficient?"}
E -->|Yes| F["Record the decision and limitations"]
E -->|No| B
Appendix A — Inputs, source dictionary, and reproducibility checks
Exact workbook layout
The original Table_1.XLSX is kept unchanged in data/source/.
| Sheet | Header / data start | Role |
|---|---|---|
| Table S1 | Field names row 3; data row 4 | 1,018 recruited records |
| Table S2 | Field names row 3; data row 4 | 675 source-defined health-screened records |
| Table S3 | Field names row 3; data row 4 | 613 screened records with age and sex |
| Table S9 | Header row 2; data row 3 | Processed genus-relative-abundance table with matching sample IDs |
The first metadata header cell in row 3 is empty because the sample label appears in the preceding grouped header. The script explicitly renames the first column sample_id; it does not shift columns or infer sample IDs from row numbers.
| Source field | Derived field | Interpretation |
|---|---|---|
| First metadata column | sample_id | Source sample identifier; not an independently verified donor key |
| Age | age_years | Recorded age in years; adult rule ≥18 |
| Sex | sex_recorded | Preserve Female/Male as source labels; new labels trigger review |
| BMI | bmi | Supplied covariate; completeness does not validate measurement |
| Province | province | Geographic metadata; 25 selected adults lack values |
| Smoking | smoking | Recorded category |
| Drug | drug_recorded | Literal None retained as an answer |
NA/blank/unknown markers are missing. The loader disables pandas’ default NA inference so the valid string None is not silently erased. Clinical screening is taken from authors’ subset membership and methods, not reconstructed by assuming that any missing clinical answer means absence of disease.
Evidence provenance
data/source/provenance.tsv records the exact source URL, UTC retrieval time, byte size, SHA-256 and role of every source file. The publisher supplementary index establishes the workbook download URL. The XML article provides methods and data availability. Archived contrast candidates retain their original earlier retrieval dates.
The workbook is credited to Wu et al. (2024), DOI 10.3389/fmicb.2024.1412991. Preserve their attribution and the source license when reusing it. The full workbook is bundled in the project ZIP; the HTML website publishes compact derived tables instead.
What the checks reject
The preparation script stops on changed source hashes, schema changes, duplicate/missing sample identifiers, implausible or unrecognized ages, unexpected sex labels, conflicting shared metadata, mismatched subset/feature IDs, and unexpected archive mappings. It does not coerce unknown labels into Female or Male.
The independent verifier uses openpyxl and standard Python counters rather than importing the preparation code. It also checks figure/output hashes; altering generated outputs without regenerating the record fails verification.
Why the stages differ
Selection uses S3 adults with defined metadata, not all archive records. Completeness is reported separately for S1, S2, and selected adults so filtering cannot conceal the original missingness. The six plotted age/sex cells total 280, while the all-S1 decision table totals 1,018.
Age bands are [18,40), [40,60), and [60,100) for descriptive plotting. They do not prescribe the model for a future age/sex analysis or establish power for interactions.
Reproduction environment
data/derived/environment.json records the Python, platform, pandas, numpy, matplotlib and openpyxl versions used. generated-checksums.tsv records exact output hashes. The logical tables and selection should reproduce under the declared requirements; PNG/SVG bytes can differ with graphics-library or font versions, so regeneration writes a new local hash record.
Search limitations
The broad Europe PMC query is recorded with its first-page cap and total hits. The focused title query verifies the identified article. The example does not claim that every broad-query hit was screened or that the shortlist is exhaustive. The two infant-related contrasts are inherited examples, not new broad-query hits.
My study
The extraction code is specific to these verified source sheets. Another dataset needs its own source mapping and checks. The blank templates support other assays and repositories without forcing their identifiers through a sequence-archive-only scoring script.
Using AI with supporting evidence
Each prompt needs a clear task and relevant evidence. Attach the corresponding files or paste clearly labeled excerpts.
What to provide
| Discovery step | Supporting material | Human check |
|---|---|---|
| Describe the need | Research question and dataset brief | Requirements match the intended research |
| Find candidates | Brief, search terms, and search log | Studies and source links exist |
| Inspect evidence | Study methods, metadata, and field definitions | Claims match the original records |
| Compare suitability | Brief and candidate comparison table | Judgments follow documented evidence |
| Choose and verify | Sample decisions and verification output | Selected samples meet the criteria |
| Explain the choice | Draft report and supporting tables | Conclusions reflect the evidence and limitations |
Instruction to include with each prompt
Use the attached files and supplied excerpts as evidence. Identify the file, table, or field supporting each factual claim. Flag missing information rather than filling gaps with assumptions.
Attach only the material needed for the task; the complete project ZIP is usually unnecessary. For tables, include column definitions and missing-value conventions. Metadata figures describe coverage and missingness; they do not establish microbiome associations.