# peisong-zheng/mcv_orb architecture

> Architecture diagram of the GitHub repository peisong-zheng/mcv_orb, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/peisong-zheng/mcv_orb
- Repository: https://github.com/peisong-zheng/mcv_orb

## Overview

MCV_ORB is research software for testing whether orbital precession phase is associated with abrupt warming-event rates after accounting for climate covariates and event history. Its principal workflow prepares event chronologies and forcing inputs, fits nested continuous-time event-rate models, evaluates phase effects, and reports uncertainty and sensitivity analyses as tables and figures. The repository also preserves a separate Barker (2011) comparison. Relationships below follow README descriptions and SOURCE INDEX references; unsampled modules are represented only at the supported subsystem level.

Main entry points: [`NGRIP_MIS6_event_phase_analysis.py`](https://github.com/peisong-zheng/mcv_orb/blob/main/NGRIP_MIS6_event_phase_analysis.py) (NGRIP–MIS6 fit), [`toolbox/event_model.py`](https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/event_model.py) (Covariates and integration), [`toolbox/plotting.py`](https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/plotting.py) (Shared plotting), [`toolbox/point_process.py`](https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/point_process.py) (Point-process fitting)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Records and chronologies"]
  node_event_inputs["Event catalogues"]
  node_forcing_prep["Forcing preparation"]
  node_sofular["Sofular chronology"]
end

subgraph group_analysis["Scientific analyses"]
  node_primary_analysis["NGRIP–MIS6 fit"]
  node_barker_analysis["Barker comparison"]
  node_uncertainty["Chronology and effect uncertainty<br/>[age_sensitivity.py]"]
  node_event_sensitivity["Event-selection sensitivity"]
  node_orbital_sensitivity["Orbital-driver sensitivity"]
  node_diagnostics["Model diagnostics"]
end

subgraph group_engine["Shared modeling"]
  node_config["Project configuration<br/>[project_config.py]"]
  node_event_model["Covariates and integration<br/>[event_model.py]"]
  node_likelihood["Point-process fitting<br/>[point_process.py]"]
  node_statistics["Likelihood statistics<br/>[model_stats.py]"]
  node_sampling["Bootstrap and simulation<br/>[sampling.py]"]
end

subgraph group_outputs["Results and figures"]
  node_plots["Shared plotting<br/>[plotting.py]"]
  node_paper_figures["Summary figures"]
  node_mechanism_figure["Orbital mechanism figure"]
  node_bootstrap_figure["Bootstrap figure"]
  node_paper_export["Figure export"]
end

node_researcher(("Researcher"))

node_researcher -->|"runs analysis"| node_primary_analysis
node_researcher -->|"runs comparison"| node_barker_analysis
node_event_inputs -->|"provides events"| node_primary_analysis
node_sofular -->|"propagates ages"| node_event_inputs
node_forcing_prep -.->|"prepares forcing inputs"| node_config
node_primary_analysis -->|"uses settings"| node_config
node_primary_analysis -->|"builds predictors"| node_event_model
node_primary_analysis -->|"fits event rates"| node_likelihood
node_primary_analysis -->|"compares models"| node_statistics
node_primary_analysis -->|"plots results"| node_plots
node_barker_analysis -->|"builds predictors"| node_event_model
node_barker_analysis -->|"fits event rates"| node_likelihood
node_barker_analysis -->|"compares models"| node_statistics
node_uncertainty -->|"rebuilds predictors"| node_event_model
node_uncertainty -->|"refits models"| node_likelihood
node_event_sensitivity -->|"tests event choices"| node_event_model
node_orbital_sensitivity -->|"tests orbital terms"| node_event_model
node_diagnostics -->|"diagnoses fits"| node_likelihood
node_sampling -->|"refits simulations"| node_likelihood
node_sampling -.->|"summarizes bootstrap"| node_statistics
node_plots -->|"uses phase statistics"| node_statistics
node_paper_figures -->|"uses model"| node_event_model
node_paper_figures -->|"uses plotting"| node_plots
node_mechanism_figure -->|"uses plotting"| node_plots
node_bootstrap_figure -->|"uses plotting"| node_plots
node_paper_export -.->|"exports figures"| node_paper_figures

click node_event_inputs "https://github.com/peisong-zheng/mcv_orb/tree/main/data/curated"
click node_forcing_prep "https://github.com/peisong-zheng/mcv_orb/blob/main/forcing_data_pre_processing.py"
click node_sofular "https://github.com/peisong-zheng/mcv_orb/blob/main/MIS6/sofular_chronology.py"
click node_primary_analysis "https://github.com/peisong-zheng/mcv_orb/blob/main/NGRIP_MIS6_event_phase_analysis.py"
click node_barker_analysis "https://github.com/peisong-zheng/mcv_orb/blob/main/Barker2011/Barker2011_event_phase_analysis.py"
click node_uncertainty "https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/age_sensitivity.py"
click node_event_sensitivity "https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/event_detection_sensitivity.py"
click node_orbital_sensitivity "https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/orbital_driver_sensitivity.py"
click node_diagnostics "https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/point_process_diagnostics.py"
click node_config "https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/project_config.py"
click node_event_model "https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/event_model.py"
click node_likelihood "https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/point_process.py"
click node_statistics "https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/model_stats.py"
click node_sampling "https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/sampling.py"
click node_plots "https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/plotting.py"
click node_paper_figures "https://github.com/peisong-zheng/mcv_orb/blob/main/paper_summary_figures.py"
click node_mechanism_figure "https://github.com/peisong-zheng/mcv_orb/blob/main/Figure_orbital_mechanism.py"
click node_bootstrap_figure "https://github.com/peisong-zheng/mcv_orb/blob/main/Figure_likelihood_bootstrap.py"
click node_paper_export "https://github.com/peisong-zheng/mcv_orb/blob/main/paper_figure_export.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_event_inputs,node_forcing_prep,node_sofular toneBlue
class node_primary_analysis,node_barker_analysis,node_uncertainty,node_event_sensitivity,node_orbital_sensitivity,node_diagnostics toneAmber
class node_config,node_event_model,node_likelihood,node_statistics,node_sampling toneMint
class node_plots,node_paper_figures,node_mechanism_figure,node_bootstrap_figure,node_paper_export toneRose
class node_researcher toneIndigo
```

## Components

### Records and chronologies

- [Event catalogues](https://github.com/peisong-zheng/mcv_orb/tree/main/data/curated): `data/curated`
- [Forcing preparation](https://github.com/peisong-zheng/mcv_orb/blob/main/forcing_data_pre_processing.py): `forcing_data_pre_processing.py`
- [Sofular chronology](https://github.com/peisong-zheng/mcv_orb/blob/main/MIS6/sofular_chronology.py): `MIS6/sofular_chronology.py`

### Scientific analyses

- [NGRIP–MIS6 fit](https://github.com/peisong-zheng/mcv_orb/blob/main/NGRIP_MIS6_event_phase_analysis.py): `NGRIP_MIS6_event_phase_analysis.py`
- [Barker comparison](https://github.com/peisong-zheng/mcv_orb/blob/main/Barker2011/Barker2011_event_phase_analysis.py): `Barker2011/Barker2011_event_phase_analysis.py`
- [Chronology and effect uncertainty](https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/age_sensitivity.py): `toolbox/age_sensitivity.py`
- [Event-selection sensitivity](https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/event_detection_sensitivity.py): `toolbox/event_detection_sensitivity.py`
- [Orbital-driver sensitivity](https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/orbital_driver_sensitivity.py): `toolbox/orbital_driver_sensitivity.py`
- [Model diagnostics](https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/point_process_diagnostics.py): `toolbox/point_process_diagnostics.py`

### Shared modeling

- [Project configuration](https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/project_config.py): `toolbox/project_config.py`
- [Covariates and integration](https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/event_model.py): `toolbox/event_model.py`
- [Point-process fitting](https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/point_process.py): `toolbox/point_process.py`
- [Likelihood statistics](https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/model_stats.py): `toolbox/model_stats.py`
- [Bootstrap and simulation](https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/sampling.py): `toolbox/sampling.py`

### Results and figures

- [Shared plotting](https://github.com/peisong-zheng/mcv_orb/blob/main/toolbox/plotting.py): `toolbox/plotting.py`
- [Summary figures](https://github.com/peisong-zheng/mcv_orb/blob/main/paper_summary_figures.py): `paper_summary_figures.py`
- [Orbital mechanism figure](https://github.com/peisong-zheng/mcv_orb/blob/main/Figure_orbital_mechanism.py): `Figure_orbital_mechanism.py`
- [Bootstrap figure](https://github.com/peisong-zheng/mcv_orb/blob/main/Figure_likelihood_bootstrap.py): `Figure_likelihood_bootstrap.py`
- [Figure export](https://github.com/peisong-zheng/mcv_orb/blob/main/paper_figure_export.py): `paper_figure_export.py`

### Other components

- **Researcher**

## Connections

- Researcher → NGRIP–MIS6 fit: runs analysis (evidence: `README.md`)
- Researcher → Barker comparison: runs comparison (evidence: `README.md`)
- Event catalogues → NGRIP–MIS6 fit: provides events (evidence: `README.md`)
- Sofular chronology → Event catalogues: propagates ages (evidence: `MIS6/sofular_chronology.py`)
- Forcing preparation → Project configuration: prepares forcing inputs
- NGRIP–MIS6 fit → Project configuration: uses settings (evidence: `NGRIP_MIS6_event_phase_analysis.py`)
- NGRIP–MIS6 fit → Covariates and integration: builds predictors (evidence: `NGRIP_MIS6_event_phase_analysis.py`)
- NGRIP–MIS6 fit → Point-process fitting: fits event rates (evidence: `NGRIP_MIS6_event_phase_analysis.py`)
- NGRIP–MIS6 fit → Likelihood statistics: compares models (evidence: `NGRIP_MIS6_event_phase_analysis.py`)
- NGRIP–MIS6 fit → Shared plotting: plots results (evidence: `NGRIP_MIS6_event_phase_analysis.py`)
- Barker comparison → Covariates and integration: builds predictors (evidence: `Barker2011/Barker2011_event_phase_analysis.py`)
- Barker comparison → Point-process fitting: fits event rates (evidence: `Barker2011/Barker2011_event_phase_analysis.py`)
- Barker comparison → Likelihood statistics: compares models (evidence: `Barker2011/Barker2011_event_phase_analysis.py`)
- Chronology and effect uncertainty → Covariates and integration: rebuilds predictors (evidence: `toolbox/age_sensitivity.py`)
- Chronology and effect uncertainty → Point-process fitting: refits models (evidence: `toolbox/age_sensitivity.py`)
- Event-selection sensitivity → Covariates and integration: tests event choices (evidence: `toolbox/event_detection_sensitivity.py`)
- Orbital-driver sensitivity → Covariates and integration: tests orbital terms (evidence: `toolbox/orbital_driver_sensitivity.py`)
- Model diagnostics → Point-process fitting: diagnoses fits (evidence: `toolbox/point_process_diagnostics.py`)
- Bootstrap and simulation → Point-process fitting: refits simulations (evidence: `toolbox/sampling.py`)
- Bootstrap and simulation → Likelihood statistics: summarizes bootstrap (evidence: `toolbox/sampling.py`)
- Shared plotting → Likelihood statistics: uses phase statistics (evidence: `toolbox/plotting.py`)
- Summary figures → Covariates and integration: uses model (evidence: `paper_summary_figures.py`)
- Summary figures → Shared plotting: uses plotting (evidence: `paper_summary_figures.py`)
- Orbital mechanism figure → Shared plotting: uses plotting (evidence: `Figure_orbital_mechanism.py`)
- Bootstrap figure → Shared plotting: uses plotting (evidence: `Figure_likelihood_bootstrap.py`)
- Figure export → Summary figures: exports figures (evidence: `paper_summary_figures.py`)
