Sys.setenv(BOX_PATH = "/path/to/your_project")DatCol
Overview
Reproducibility
All analyses are provided as individual Quarto (.qmd) notebooks, which can be rendered independently. Each notebook reads processed .rds files from the dataframes/ folder and generates publication-quality figures and statistical outputs (Table S2).
To reproduce the analyses:
- Clone or download this repository to your local machine.
- Download the
dataframes/andTn-Seq/folders and place it in your working directory. - Download all
.qmdnotebooks from the repository and keep them in the same directory. - Install required R packages listed in R Session Info using
renvor manually. - Render the notebooks using Quarto to generate figures and results.
You can set environment variable as follows in R:
Alternatively, you can add this to your .Renviron file:
BOX_PATH=/path/to/your_projectThe whole project can be rendered using RStudio’s “Render” or “Build” options or in the terminal via:
quarto renderRepository Structure
This repository is organized as follows:
DatCol_project/
├── dataframes/
│ ├── [input data / CSV tables]
│ ├── [input data / RDS files]
│ └── …
├── Tn-Seq/
│ ├── RefSeqs/
│ │ ├── [reference sequence files]
│ │ └── …
│ ├── sites/
│ │ ├── [insertion site files]
│ │ └── …
│ ├── scripts/
│ │ └── TnGeneBin.pl
└── [analysis notebooks saved as .qmd files]
Data folders
- dataframes/
- Contains all processed data used to generate figures and statistical analyses (see Table S2)
- Files are provided in
.csvand.rdsformats for easy visualization and reproducibility in R .rdsfile names correspond to their associated.qmdanalysis notebooksDatCol_CFUs_HNO_Chemical.rdsandDatCol_CFUs_HNO_Genetic.rdsboth correspond to the Complementation notebookDatCol_CFUs_HNO_Controls.rdscontains all monocolonization control data associated withHNO_Competition.qmd
- Tn-Seq/
- Raw FASTQ files are available through the SRA [insert link or BioProject accession]
- Processed insertion site files are included here to reproduce the Essential Gene Analysis and associated figure generation
- Subfolders include:
RefSeqs/: reference genome filessites/: transposon insertion site filesscripts/: includes theTnGeneBin.plPerl script used to bin insertion sites for essential gene analysis
Analysis Notebooks
- Main Analysis Notebooks:
- Other Notebooks: