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 - Ebenco36/shadow-antibiogram

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
config
config
 
 
datasets
datasets
 
 
docs
docs
 
 
scripts
scripts
 
 
sensitivity_result
sensitivity_result
 
 
src
src
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
__init__.py
__init__.py
 
 
requirements.txt
requirements.txt
 
 
run.sh
run.sh
 
 

Repository files navigation

Shadow Antibiogram: Co-testing Network Pipeline

This repository contains the code supporting the manuscript:

Network-based characterisation of latent co-testing patterns in antimicrobial susceptibility testing
iScience (2026) — https://doi.org/10.1016/j.isci.2026.117421

The pipeline constructs Shadow Antibiograms: empirical co-testing networks that summarise which antibiotics are tested together in routine microbiology, based on test-incidence (tested vs. not tested) rather than susceptibility outcomes.


Data availability

Processed, non-identifiable data are deposited at Mendeley Data:

https://doi.org/10.17632/8ffg3jb2vt.1

Download the WHO_Aware_data folder from that deposit and place it in datasets/ before running the pipeline (see Quick start).

Raw individual-level ARS surveillance records are not included due to data protection and governance constraints.


Quick start

Prerequisites: Python 3.x (python3 --version to verify). Runs on Linux, macOS, and HPC (SLURM-compatible).

# 1. Clone the repository
git clone https://github.com/Ebenco36/shadow-antibiogram.git
cd shadow-antibiogram

# 2. Place the deposited WHO_Aware_data folder into datasets/
#    so the path reads: datasets/WHO_Aware_data/

# 3. Run the full pipeline
bash run.sh

run.sh automatically creates a virtual environment, installs all dependencies from requirements.txt, and executes the complete analysis. No manual environment setup is required.

HPC (SLURM):

sbatch --chdir=/path/to/shadow-antibiogram run.sh

Outputs

All outputs are written to the outputs/ directory at runtime:

Output Location
Similarity matrices and edge lists outputs/
FDR-filtered co-testing networks outputs/
Louvain community assignments outputs/
Manuscript figures outputs/use_cases/

Repository structure

shadow-antibiogram/
├── datasets/
│   └── WHO_Aware_data/        # Aggregated contingency tables (deposit here)
├── src/
│   ├── runners/               # Pipeline orchestration
│   ├── controllers/           # Analysis workflows (AMR, co-testing)
│   ├── mappers/               # Pathogen cohort definitions
│   └── utils/                 # Shared helpers and configuration
├── outputs/                   # Created at runtime
├── run.sh                     # Single entry point
└── requirements.txt

Dataset schema

Each file in datasets/WHO_Aware_data/ contains one row per antibiotic pair per stratum:

Column Description
Pathogen Full pathogen name (e.g., Escherichia coli)
PathogenGenus Genus level (e.g., Escherichia)
GramType Gram classification
Sex Patient sex
CareType In-Patient / Out-Patient
TextMaterialgroupRkiL0 Specimen type (e.g., Urine, Blood Culture)
ARS_WardType Ward type (Normal Ward, ICU, etc.)
BroadAgeGroup Age group category
HighLevelAgeRange Detailed age range
Hospital_Priority Hospital level (High / Medium / Low)
Care_Complexity Care complexity tier
Year Year of isolation
ab_1 First antibiotic
ab_2 Second antibiotic
a Isolates where both antibiotics were tested
b Isolates where only ab_1 was tested
c Isolates where only ab_2 was tested
d Isolates where neither antibiotic was tested

Analysis configuration

Default settings used in the manuscript:

Parameter Value
Similarity metric Jaccard
Edge threshold τ = 0.30
Statistical filter Fisher's exact test, BH-FDR α = 0.05
Community detection Louvain, γ = 1.0

Interpretation

  • Shadow Antibiograms represent co-testing behaviour, not resistance outcomes.
  • Louvain communities are disjoint by design and reflect dominant co-testing configurations within a cohort, not exclusive biological categories.
  • Cross-context comparisons should use fixed parameters (same metric, threshold, and resolution).

Issues

Please open a GitHub issue for questions or problems with the pipeline.

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — 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.