GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - almlab/PeanutAllergy_Microbiome: The repo contains scripts for reproducing microbiome data analyses of ClinicalTrial ID #NCT02960074

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
01_human_FMT_analysis.R
01_human_FMT_analysis.R
 
 
02_mice_FMT_analysis.R
02_mice_FMT_analysis.R
 
 
README.md
README.md
 
 
helpers.R
helpers.R
 
 
preprocessing.sh
preprocessing.sh
 
 

Repository files navigation

Peanut allergy FMT — 16S rRNA microbiome analyses

R and Qiime2 scripts accompanying the manuscript on fecal microbiota transplantation (FMT) for peanut allergy. The codebase covers two parallel analyses:

  1. Human cohort. Patients with peanut allergy received FMT from one of three healthy donors (A, B, C). Stool samples were collected at multiple time points (Baseline through Month 12) and 16S rRNA gene amplicons were sequenced. Patients were retrospectively classified as responders (R) or non-responders (NR) based on clinical outcome.
  2. Germ-free mouse follow-up. Three independent mouse experiments were carried out, transferring stool from defined sets of human patients into germ-free mice. Mice were sampled before sensitization (BS) and at the experimental endpoint after peanut challenge (EP). Donor stool was either the patient's baseline (BL) sample or the post-FMT 4-month (4M) sample.

Repository layout

.
├── README.md                       <- you are here
├── qiime2/
│   └── preprocessing.sh            <- Qiime2 exports (mouse cohort shown;
│                                     run analogously for the human cohort)
└── R/
    ├── helpers.R                   <- shared utility functions
    ├── 01_human_FMT_analysis.R     <- human cohort end-to-end analysis
    └── 02_mice_FMT_analysis.R      <- mouse cohort end-to-end analysis

Required input files

The R scripts expect a Qiime2 export directory of the form:

export/
├── otu-feature-table.tsv           # ASV-level table (samples × features)
├── strain-feature-table.tsv        # species-level collapse (rank 7)
├── genus-feature-table.tsv         # genus-level collapse  (rank 6)
└── family-feature-table.tsv        # family-level collapse (rank 5)
taxonomy.tsv                        # ASV → taxonomy lineage
dna-sequences.fasta                 # ASV representative sequences
metadata_single_donors_May2021_ancom.txt   # human-cohort metadata

For the mouse cohort the equivalents are feature-table.Mice_FMT*.tsv, rep-seqs-dada2.Mice_FMT.taxonomy.txt, dna-sequences_Mice_FMT.fasta and metadata_Mice_FMT_exp_2022.txt. The qiime2/preprocessing.sh script documents how the .tsv exports are produced from Qiime2 artifacts.

Software environment

  • Qiime2 ≥ 2019.1 (preprocessing only)

  • R ≥ 4.0 with the following CRAN/Bioconductor packages:

    Package Source Used for
    vegan CRAN rarefaction, Bray-Curtis, PERMANOVA
    ape CRAN PCoA (pcoa())
    ggplot2 CRAN plotting
    dplyr, readr CRAN data manipulation, I/O
    egg, grid CRAN fixed-size ggplot panels
    RColorBrewer CRAN colour palettes
    seqinr CRAN FASTA I/O
    ALDEx2 Bioconductor compositional differential abundance
    Maaslin2 Bioconductor per-feature multivariable association

Install Bioconductor packages with:

if (!requireNamespace("BiocManager", quietly = TRUE))
  install.packages("BiocManager")
BiocManager::install(c("ALDEx2", "Maaslin2"))

Running the analyses

From the project root:

# (1) Qiime2 exports
conda activate qiime2-2019.1
cd qiime2 && bash preprocessing.sh && cd ..

# (2) R analyses
Rscript R/01_human_FMT_analysis.R
Rscript R/02_mice_FMT_analysis.R

Each R script can also be sourced interactively. The scripts assume the working directory contains the Qiime2 export folder for the relevant cohort; edit the setwd() call near the top of each script if needed.

A fixed random seed (set.seed(151)) is used in the human script so the rarefaction step is reproducible.

Outputs

Each script writes its outputs into the current working directory:

  • PERMANOVA result tables (adonis_*.txt)
  • PCoA ordination plots (pcoa_*.pdf)
  • Distance trajectories (bray_curtis_*.pdf)
  • Maaslin2 output directories (Maaslin2_*/)
  • Cleaned, pooled feature tables and matching taxonomy files

Statistical results that were reported in the manuscript (PERMANOVA tables, t-tests, Kruskal-Wallis tests, ALDEx2 minimum BH-corrected p-values) are preserved as inline comments next to the call that produces them, so the expected numerical output can be checked at a glance.

Citation

If you use this code, please cite the accompanying publication (reference to be added on acceptance).

About

The repo contains scripts for reproducing microbiome data analyses of ClinicalTrial ID #NCT02960074

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.