Pipeline and analysis workspace for the cefiderocol resistance study in Klebsiella pneumoniae.
This repository captures the code and supporting notes used to study the molecular basis of cefiderocol resistance across 33 local clinical isolates and larger public-genome comparison sets. The workflow combines whole-genome sequencing, protein-level alignment, Prokka/BLAST/Miniprot annotation, LC-MS uptake analysis, population analysis profiling, phylogenetics, and publication figure generation.
- Local clinical isolate analysis for 33 K. pneumoniae genomes.
- Public-genome acquisition and filtering scripts for BV-BRC, NCBI Assembly, and Long et al. comparison sets.
- Resistance mechanism annotation scripts for CirA, OmpK35/OmpK36, FEC operon status, and carbapenemase context.
- LC-MS and PAP analysis scripts for cefiderocol uptake and heteroresistance.
- Phylogenetic and figure-generation scripts for the manuscript and publication figures.
- Working notes and pipeline logs that document the current study state.
The analysis centers on how cefiderocol resistance arises in K. pneumoniae, with emphasis on:
- CirA disruption, truncation, and frameshifts.
- Carbapenemase background, especially KPC and NDM combinations.
- Porin loss or alteration in OmpK35/OmpK36.
- Efflux and FEC operon context.
- Phenotype concordance across in-house BMD, commercial systems, LC-MS uptake, PAP, and WGS.
analysis/- core analysis scripts, manuscript drafts, reference protein extraction, and resistance-annotation utilities.analysis/Scripts/- ordered pipeline scripts for public genome retrieval, QC, Prokka, BLAST, Miniprot, phylogenetics, and statistics.publication_figures/scripts/- figure-focused scripts for the manuscript and presentation-ready plots.PIPELINE_COMMANDS.md- command-by-command record of the analysis workflow.STUDY_PROGRESS.md- live study notebook describing dataset status and interpretation.Fasta files/,Dataset/,LCMS data/,Papers/,Presentation/,results/- local working folders for data, notes, and outputs.
Large generated outputs and local working directories are intentionally excluded from version control via .gitignore.
The analysis pipeline is organized around these steps:
- Build a reference protein set from ATCC 13883.
- Annotate genomes with Miniprot and Prokka.
- Search CirA with BLAST+ to classify complete versus incomplete protein hits.
- Parse protein alignments into mutation summaries.
- Enrich the master table with Kleborate, MIC, and clinical metadata.
- Generate iTOL annotation tracks and phylogenetic trees.
- Run LC-MS uptake, PAP, and statistical analyses.
- Produce publication figures.
Representative scripts:
analysis/enrich_merged_table.pyanalysis/generate_itol_annotations.pyanalysis/plot_tree.Ranalysis/select_representatives.pyanalysis/Scripts/01a_bvbrc_specialty_genes.pyanalysis/Scripts/03_download_genomes.pyanalysis/Scripts/04_qc_filter.pyanalysis/Scripts/05_run_prokka_batch.shanalysis/Scripts/06_run_blastp_batch.shanalysis/Scripts/07_run_miniprot_batch.shanalysis/Scripts/08_parse_miniprot_public.pyanalysis/Scripts/09_merge_combined_global.pyanalysis/Scripts/10_snippy_batch.shanalysis/Scripts/12_snippy_core_iqtree.shanalysis/Scripts/13_statistical_analysis.Ranalysis/Scripts/14_publication_figures.pyanalysis/Scripts/15_enrich_clinical_and_itol.pyanalysis/Scripts/16_fec_operon_census.pyanalysis/Scripts/17_lcms_uptake_analysis.pyanalysis/Scripts/18_pap_analysis.py
Publication-specific scripts are mirrored in publication_figures/scripts/.
The repository is designed to work with the local study data already present in the workspace, including:
- 33 local FASTA assemblies in
Fasta files/fasta/. - Clinical and MIC spreadsheets in
Dataset/. - LC-MS cleaned data in
LCMS data/data_clean.csv. - Reference proteins and alignment outputs in
analysis/.
Generated deliverables are written to locations such as:
analysis/results/analysis/results/stats/analysis/phylogenetics/publication_figures/figures/
- This repo contains analysis code and study notes, not a packaged command-line application.
- Several folders in the workspace are intentionally not tracked because they contain large intermediate data, raw assemblies, or local-only working files.
- The current study log and pipeline command file are the best starting points if you want to reproduce or extend the analysis.
If you are trying to understand the project quickly, read these files in order:
STUDY_PROGRESS.mdPIPELINE_COMMANDS.mdanalysis/Scripts/09_merge_combined_global.pyanalysis/Scripts/15_enrich_clinical_and_itol.pyanalysis/Scripts/17_lcms_uptake_analysis.pyanalysis/Scripts/18_pap_analysis.py