# buschman-lab/projecttemplate architecture

> Architecture diagram of the GitHub repository buschman-lab/projecttemplate, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/buschman-lab/projecttemplate
- Repository: https://github.com/buschman-lab/projecttemplate

## Overview

#### 1. Repository Role
This is an empty research-project template, not an implemented application or package. It defines a reproducible, collaborative workflow for organizing research data, analysis code, notebooks, documentation, publication artifacts, and presentations. The primary human entry point is `README.md`; project-wide visualization conventions belong in `STYLING.md`.

#### 2. Data Lifecycle Boundary
The intended pipeline is immutable input → reproducible transformation → analysis-ready/output subsets:
- Raw source data: `data/raw`
- Intermediate/small derived artifacts: `data/interim`
- Processed analysis datasets: `data/processed`

Raw data must not be manually altered. Future ingestion/download and preprocessing code should live in `source`, making transformations from `data/raw` to `data/processed` reproducible. Data is expected to be externally stored or downloaded rather than committed to Git.

#### 3. Reusable Analysis Layer
`source` is the designated home for reusable loaders, transformations, analysis functions, and data-processing scripts. It is the core implementation boundary: notebooks should call this code rather than duplicate substantial logic. `source/tests` is reserved for unit tests that specify and protect behavior of reusable source modules.

#### 4. Exploratory and Result-Assembly Layer
`notebooks` is the interactive analysis and visualization layer, suitable for Jupyter notebooks or MATLAB Live Scripts. Notebooks consume raw/processed data and invoke reusable code from `source`; they should retain concise orchestration, narrative, and plotting rather than become the canonical implementation. Intermediate notebook outputs may be stored in `data/interim`.

#### 5. Research Context and Method Provenance
Research inputs and interpretation are documented separately from executable analysis:
- Prior literature and summaries: `background`
- Data-collection protocols, dictionaries, and methodological documentation: `methods`
- Shared figure semantics and visual rules: `STYLING.md`

These materials support traceability from collected data through analysis to reported claims and provide the basis for eventual methods writing.

#### 6. Publication and Communication Outputs
Publication artifacts are organized independently of analysis:
- Drafts, final manuscript materials, and publication records: `manuscript`
- Generated figures and their compact supporting assets: `manuscript/figures`
- Slides, posters, and related presentation materials: `presentations`

The intended flow is analysis/notebook results → publication figures → manuscript and presentations. Figures should be reproducible from the analysis/source layer where practical.

#### 7. Collaboration and Runtime/Infrastructure
GitHub is the central infrastructure: Git provides versioned history and sharing; GitHub Issues are the intended tracker for analysis ideas, tasks, discussion, and completion records. GitHub can integrate with Slack for notifications and issue creation. No language runtime, package manifest, executable entry point, CI system, external data service, or implemented analysis code currently exists in the repository; all functional directories currently contain only `.gitkeep` placeholders.

Main entry points: [`source`](https://github.com/buschman-lab/projecttemplate/tree/main/source) (Reusable source), [`notebooks`](https://github.com/buschman-lab/projecttemplate/tree/main/notebooks) (Notebooks), [`data/raw`](https://github.com/buschman-lab/projecttemplate/tree/main/data/raw) (Raw data), [`manuscript/figures`](https://github.com/buschman-lab/projecttemplate/tree/main/manuscript/figures) (Publication figures)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data lifecycle"]
  node_raw[("Raw data<br/>immutable input")]
  node_interim[("Interim data<br/>derived artifacts")]
  node_processed[("Processed data<br/>analysis dataset")]
end

subgraph group_analysis["Analysis"]
  node_source["Reusable source<br/>implementation"]
  node_tests["Source tests<br/>unit tests"]
  node_notebooks["Notebooks<br/>interactive analysis"]
end

subgraph group_context["Research context"]
  node_background["Background<br/>literature context"]
  node_methods["Methods<br/>provenance docs"]
  node_styling["Styling guide<br/>visual conventions<br/>[STYLING.md]"]
end

subgraph group_outputs["Communication outputs"]
  node_figures["Publication figures<br/>generated assets"]
  node_manuscript["Manuscript<br/>publication artifacts"]
  node_presentations["Presentations<br/>slides and posters"]
end

node_readme["README<br/>project guide<br/>[README.md]"]
node_github{{"GitHub + Git<br/>collaboration infrastructure"}}
node_issues["GitHub Issues<br/>work tracker"]
node_slack["Slack<br/>notifications"]

node_readme -.->|"orients contributors"| node_source
node_raw -->|"input"| node_source
node_source -->|"reproducibly transforms"| node_processed
node_source -->|"derives small artifacts"| node_interim
node_tests -.->|"specifies behavior"| node_source
node_raw -.->|"may be explored"| node_notebooks
node_processed -->|"analysis input"| node_notebooks
node_source -->|"reused by"| node_notebooks
node_notebooks -.->|"intermediate outputs"| node_interim
node_background -.->|"informs interpretation"| node_notebooks
node_methods -.->|"documents collection"| node_raw
node_methods -.->|"informs processing"| node_source
node_styling -.->|"guides visuals"| node_notebooks
node_notebooks -->|"generates results"| node_figures
node_styling -.->|"guides figure semantics"| node_figures
node_figures -->|"included in"| node_manuscript
node_notebooks -->|"supplies results"| node_presentations
node_manuscript -.->|"communicates findings"| node_presentations
node_github -->|"hosts"| node_issues
node_slack -.->|"creates and notifies"| node_issues
node_github -.->|"versions and shares"| node_source
node_github -.->|"versions and shares"| node_manuscript

click node_readme "https://github.com/buschman-lab/projecttemplate/blob/main/README.md"
click node_raw "https://github.com/buschman-lab/projecttemplate/tree/main/data/raw"
click node_interim "https://github.com/buschman-lab/projecttemplate/tree/main/data/interim"
click node_processed "https://github.com/buschman-lab/projecttemplate/tree/main/data/processed"
click node_source "https://github.com/buschman-lab/projecttemplate/tree/main/source"
click node_tests "https://github.com/buschman-lab/projecttemplate/tree/main/source/tests"
click node_notebooks "https://github.com/buschman-lab/projecttemplate/tree/main/notebooks"
click node_background "https://github.com/buschman-lab/projecttemplate/tree/main/background"
click node_methods "https://github.com/buschman-lab/projecttemplate/tree/main/methods"
click node_styling "https://github.com/buschman-lab/projecttemplate/blob/main/STYLING.md"
click node_figures "https://github.com/buschman-lab/projecttemplate/tree/main/manuscript/figures"
click node_manuscript "https://github.com/buschman-lab/projecttemplate/tree/main/manuscript"
click node_presentations "https://github.com/buschman-lab/projecttemplate/tree/main/presentations"

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_raw,node_interim,node_processed toneBlue
class node_source,node_tests,node_notebooks toneAmber
class node_background,node_methods,node_styling toneMint
class node_figures,node_manuscript,node_presentations toneRose
class node_readme,node_github,node_issues,node_slack toneNeutral
```

## Components

### Data lifecycle

- [Raw data](https://github.com/buschman-lab/projecttemplate/tree/main/data/raw): immutable input · Externally stored or downloaded source data. · `data/raw`
- [Interim data](https://github.com/buschman-lab/projecttemplate/tree/main/data/interim): derived artifacts · `data/interim`
- [Processed data](https://github.com/buschman-lab/projecttemplate/tree/main/data/processed): analysis dataset · `data/processed`

### Analysis

- [Reusable source](https://github.com/buschman-lab/projecttemplate/tree/main/source): implementation · Loaders, transformations, analyses, and processing scripts. · `source`
- [Source tests](https://github.com/buschman-lab/projecttemplate/tree/main/source/tests): unit tests · Protect reusable source-module behavior. · `source/tests`
- [Notebooks](https://github.com/buschman-lab/projecttemplate/tree/main/notebooks): interactive analysis · Narrative orchestration and visualization. · `notebooks`

### Research context

- [Background](https://github.com/buschman-lab/projecttemplate/tree/main/background): literature context · `background`
- [Methods](https://github.com/buschman-lab/projecttemplate/tree/main/methods): provenance docs · Protocols, dictionaries, and methodological documentation. · `methods`
- [Styling guide](https://github.com/buschman-lab/projecttemplate/blob/main/STYLING.md): visual conventions · `STYLING.md`

### Communication outputs

- [Publication figures](https://github.com/buschman-lab/projecttemplate/tree/main/manuscript/figures): generated assets · `manuscript/figures`
- [Manuscript](https://github.com/buschman-lab/projecttemplate/tree/main/manuscript): publication artifacts · `manuscript`
- [Presentations](https://github.com/buschman-lab/projecttemplate/tree/main/presentations): slides and posters · `presentations`

### Other components

- [README](https://github.com/buschman-lab/projecttemplate/blob/main/README.md): project guide · Primary human entry point. · `README.md`
- **GitHub + Git**: collaboration infrastructure · Versioned sharing and project coordination.
- **GitHub Issues**: work tracker · Tracks ideas, tasks, discussion, and completion.
- **Slack**: notifications · Can receive notifications and create issues.

## Connections

- README → Reusable source: orients contributors
- Raw data → Reusable source: input
- Reusable source → Processed data: reproducibly transforms
- Reusable source → Interim data: derives small artifacts
- Source tests → Reusable source: specifies behavior
- Raw data → Notebooks: may be explored
- Processed data → Notebooks: analysis input
- Reusable source → Notebooks: reused by
- Notebooks → Interim data: intermediate outputs
- Background → Notebooks: informs interpretation
- Methods → Raw data: documents collection
- Methods → Reusable source: informs processing
- Styling guide → Notebooks: guides visuals
- Notebooks → Publication figures: generates results
- Styling guide → Publication figures: guides figure semantics
- Publication figures → Manuscript: included in
- Notebooks → Presentations: supplies results
- Manuscript → Presentations: communicates findings
- GitHub + Git → GitHub Issues: hosts
- Slack → GitHub Issues: creates and notifies
- GitHub + Git → Reusable source: versions and shares
- GitHub + Git → Manuscript: versions and shares
