Children's Hospital of Philadelphia · Moustafa & Planet labs ·
2024–2025
Bacteria do not only inherit their genomes down the family tree. They
also take DNA from each other, and a block that arrived that way
carries the history of wherever it came from rather than the history
of the chromosome it now sits in. Working out which stretches arrived
that way is how you tell whether a resistance gene spread by descent
or by transfer.
RedCarpet finds those stretches without aligning anything. For every
protein it asks which genomes in the database carry an exact copy of
it, then compares those genome sets between proteins. Proteins
that share a history share a set, so ordering the proteins along the
chromosome turns the comparison into a signal, and a recombined block
shows up as a stretch where that signal shifts. Detecting the shifts
is a changepoint problem, and Figure 1 below is the detector running
on S. aureus NCTC8325.
---
Presentations
Redcarpet: Rapid Recombination Detection in Staphylococcus
aureus and Other Species Amid Expanding Genomic Databases.
A. Moustafa, E. Theiller, A. Lal, S. Yamali, A. Feder,
A. Narechania, P. Planet. 19th International Symposium on
Staphylococci and Staphylococcal Infections, Perth, Australia, 2024.
---
Files
Download slidesPDF · 21 pages · 13 MBCarpet Change Catcher, the deck from the end of
the project, which covers how the changepoint penalty was scaled to
genome size, why a synthetic benchmark could not work, results on
five genomes, and the check that merges neighbouring regions that
are not statistically different.
Figure 1. The 2,630-protein similarity matrix for
S. aureus NCTC8325. Proteins are ordered along the genome,
so a run of proteins that share a history shows up as a bright
block on the diagonal. The cyan lines are the eleven changepoints
the detector placed at the region boundaries.
Figure 2. A single row of the matrix from another run, which
is the first protein's similarity to every other protein in the
order they sit on the genome, with that run's changepoints drawn
over it. The detector works on the whole matrix, and one row is only
a way of seeing what it responds to, which is the stretches where
the similarity falls to almost nothing.
Figure 3. Recombination moves a block of DNA from a donor
genome into a recipient. That block then co-occurs with a different
set of database genomes than the rest of the chromosome does, and
that difference is the whole signal the method is built on.
Figure 4. A recombinant stretch reads as a band that is dim
against the core genome but bright within itself. This figure is
the reference I used to explain what the detector is looking for
before showing it running.
Figure 5. The Snakemake workflow, from genome in to region
calls out. Making it a workflow rather than a set of scripts is
what let other people in the lab run it without me.
Figure 6. Measured on genomes up to 5,700 proteins. The
rewritten matrix engine is 27× faster than the original and
produces byte-identical output, which is the only reason it was
safe to swap in.