How traviswheelerlab/mirror works
MIRROR is a Python toolkit for matching peptide sequences to tandem mass spectra and producing annotations. The apparent workflow accepts spectra and sequence-search resources, constructs fragment-mass targets and spectrum graphs, explores alignments and candidate paths, then assembles labeled annotations. The source index establishes many module dependencies, but the README is empty and main.py’s references are not listed; its precise user-facing orchestration and several runtime calls therefore remain uncertain.
Main entry points: annotation.py Annotation · enumeration.py Enumeration · costmodels.py Path cost models · alignment.py Alignment
Components 22
Application entry
- Application
main.py - Enumeration
mirror/enumeration.py - Alignment
mirror/alignment.py
Spectra and sequence data
- Spectrum data
mirror/spectra/types.py - Spectrum simulation
mirror/spectra/simulation.py - Suffix array
mirror/sequences/suffix_array.py - Sequence queries
mirror/sequences/queries.py
Fragment matching
- Fragment spaces
mirror/fragments/types.py - Target masses
mirror/fragments/masses.py - Fragment search
mirror/fragments/search.py - Annotation
mirror/annotation.py
Graph search
- Spectrum graphs
mirror/graphs/types.py - Cost propagation
mirror/graphs/propagate.py - Path tracing
mirror/graphs/trace.py
Evaluation and results
- Path cost models
mirror/evaluation/costmodels.py - Path spaces
mirror/evaluation/pathspaces.py - Affix pairing
mirror/evaluation/affix_pairing.py - Candidate paths
mirror/evaluation/candidates.py - Labeled peaks
mirror/evaluation/labeled_peaks.py - Spectrum topology
mirror/evaluation/spectrum_topology.py - Serialization
mirror/io.py
Other components
- User
Connections 39
- User → Application: invokes
- Application → Enumeration: dispatches
- Enumeration → Annotation: uses
mirror/enumeration.py - Enumeration → Alignment: uses
mirror/enumeration.py - Enumeration → Suffix array: queries
mirror/enumeration.py - Enumeration → Affix pairing: uses
mirror/enumeration.py - Enumeration → Candidate paths: uses
mirror/enumeration.py - Enumeration → Path tracing: traces
mirror/enumeration.py - Enumeration → Path cost models: scores
mirror/enumeration.py - Spectrum data → Spectrum simulation: simulates
mirror/spectra/types.py - Sequence queries → Suffix array: queries
mirror/sequences/queries.py - Annotation → Spectrum data: reads
mirror/annotation.py - Annotation → Fragment spaces: uses
mirror/annotation.py - Annotation → Target masses: constructs
mirror/annotation.py - Annotation → Fragment search: searches
mirror/annotation.py - Annotation → Suffix array: queries
mirror/annotation.py - Annotation → Sequence queries: uses
mirror/annotation.py - Annotation → Labeled peaks: labels
mirror/annotation.py - Annotation → Spectrum topology: builds
mirror/annotation.py - Annotation → Serialization: serializes
mirror/annotation.py - Alignment → Cost propagation: propagates
mirror/alignment.py - Alignment → Path cost models: scores
mirror/alignment.py - Alignment → Annotation: uses
mirror/alignment.py - Cost propagation → Spectrum graphs: builds
mirror/graphs/propagate.py - Path tracing → Spectrum graphs: reads
mirror/graphs/trace.py - Path tracing → Path spaces: creates
mirror/graphs/trace.py - Path cost models → Cost propagation: uses
mirror/evaluation/costmodels.py - Path cost models → Path spaces: produces
mirror/evaluation/costmodels.py - Path cost models → Suffix array: queries
mirror/evaluation/costmodels.py - Affix pairing → Path cost models: uses
mirror/evaluation/affix_pairing.py - Affix pairing → Path spaces: uses
mirror/evaluation/affix_pairing.py - Candidate paths → Path spaces: reads
mirror/evaluation/candidates.py - Candidate paths → Path tracing: uses
mirror/evaluation/candidates.py - Candidate paths → Spectrum graphs: reads
mirror/evaluation/candidates.py - Labeled peaks → Spectrum data: reads
mirror/evaluation/labeled_peaks.py - Labeled peaks → Fragment spaces: uses
mirror/evaluation/labeled_peaks.py - Spectrum topology → Labeled peaks: uses
mirror/evaluation/spectrum_topology.py - Target masses → Fragment spaces: uses
mirror/fragments/masses.py - Fragment search → Fragment spaces: uses
mirror/fragments/search.py