How core-bioinformatics/magpie works
MAGPIE aligns spatial metabolomics (MSI) with Visium transcriptomics and tissue morphology. The documented workflow is to provide per-sample MSI/Visium data, optionally select landmarks in the Shiny app, then run the Snakemake pipeline for coregistration. The source excerpts show coordinate transformation and MSI-to-Visium aggregation/formatting responsibilities, but do not include Snakefile rules, so detailed dispatch and output-stage links are omitted. The graph also includes input validation and the two Space Ranger-format generation modules; their runtime wiring is not established by the excerpts.
Main entry points: Snakefile Snakemake pipeline · magpie_shiny_app.py Landmark app · alter_data.py Coordinate alignment · create_perbarcode_matrix.py Spot aggregation
Components 10
Inputs and validation
- Input checks
scripts/check_inputs.py
Landmark selection
- Landmark app
magpie_shiny_app.py - Landmark files
Alignment and mapping
- Snakemake pipeline
Snakefile - Coordinate alignment
scripts/alter_data.py
Spatial integration
- MSI format conversion
scripts/create_mock_spaceranger.py - Spot aggregation
scripts/create_perbarcode_matrix.py - Aggregated format
scripts/create_perbarcode_matrix.py
Other components
- Researcher
- Sample data
Connections 9
- Researcher → Sample data: provides
README.md - Researcher → Landmark app: selects landmarks
README.md - Landmark app → Landmark files: downloads landmarks
README.md - Sample data → Input checks: validates files
- Researcher → Snakemake pipeline: runs pipeline
README.md - Landmark files → Snakemake pipeline: supplies landmarks
README.md - Snakemake pipeline → Coordinate alignment: dispatches alignment
- Coordinate alignment → Spot aggregation: provides coordinates
- Spot aggregation → Aggregated format: creates format
scripts/create_perbarcode_matrix.py