Skip to content
Back to skills

Reconstruction Models

ASecurity

"Choose and fit Dipy diffusion reconstruction models, compute

  • 247 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 8, 2026
toolspythonapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill reconstruction-models --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Reconstruction Models?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Reconstruction Models
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-reconstruction-models/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-reconstruction-models)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: reconstruction-models
description: "Choose and fit Dipy diffusion reconstruction models, compute
  scalar maps, ODFs, peaks, tiny simulations, and reconstruction CLI workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# Reconstruction Models

Use this sub-skill when a task involves Dipy diffusion reconstruction: `TensorModel`, DKI, CSD/MSMT-CSD, CSA/QBall/OPDT, DSI/DSID, GQI, MAPMRI, SFM, FORECAST, FWDTI, FORCE, RUMBA, SH models, `peaks_from_model`, scalar maps, ODFs, simulated signals, or `dipy_fit_*` reconstruction commands.

## Route First

- Use `../io-data/` for loading/saving NIfTI images, b-values/b-vectors, `GradientTable` file ingestion, PAM files, tractograms, and image/gradient shape validation.
- Use `../denoising-preprocessing/` before fitting when the signal needs denoising, Gibbs removal, masking, noise estimation, bias correction, or invalid-signal repair.
- Use `../tracking-segmentation/` when reconstruction outputs become tracking inputs: peaks, PAM files, tensor directions, stopping criteria, tissue masks, segmentation, or tractometry.
- Use `../cli-workflows/` for console-entry discovery, parser behavior, help probing, batch globbing semantics, and translating API recipes into installed `dipy_*` commands.

## Core References

- `references/model-selection.md` explains how to choose DTI, DKI, CSD, CSA/QBall, DSI, GQI, MAPMRI, SFM, FWDTI, FORECAST, FORCE, RUMBA, IVIM, SDT, and power-map workflows.
- `references/api-reference.md` lists high-value Python APIs, signatures, shapes, outputs, and validation checks.
- `references/workflows.md` gives safe API and CLI recipes, output naming, handoff notes, and skip markers.
- `references/troubleshooting.md` maps reconstruction symptoms to causes, fixes, and validation checks.
- `scripts/dipy_tensor_smoke.py` runs a deterministic tiny synthetic `TensorModel` fit and emits JSON with finite FA/eigenvalue validation.

## Fast Operating Pattern

1. Confirm the reconstruction question and acquisition class before choosing a model; prefer the simplest scientifically adequate model.
2. Ensure diffusion volumes are on the last axis and `len(gtab.bvals) == data.shape[-1]`; masks must be exactly `data.shape[:-1]`.
3. Guard signals before fitting: finite numeric data, positive values for log-sensitive models, appropriate `b0_threshold`, and a mask that excludes background.
4. Fit with a mask when possible, compute model-specific maps or peaks, then validate finite values, expected shapes, and nonzero in-mask coverage.
5. For ODF/peak workflows, record sphere, `sh_order_max`, response function, thresholds, SH basis settings, and whether `parallel` was used.
6. For CLI workflows, run help first, set an explicit output directory, and treat full-image CSD/MSMT-CSD/MAPMRI/DSI/FORCE/RUMBA runs as `skip-expensive` unless authorized.

## Safety Defaults

- Prefer tiny synthetic arrays and `snr=None` simulations for smoke checks; avoid downloads, GUI rendering, neural-network surfaces, and benchmark-scale data by default.
- Do not claim `dipy_fit_rumba` is installed; use RUMBA as a Python API/specialized workflow surface unless an installed command is verified in the active environment.
- Use `dipy.direction.peaks.peaks_from_model`; do not import peaks from `dipy.reconst.peaks` for this Dipy version.

Files in this skill

  • SKILL.md3.3 KB
  • references/api-reference.md7.4 KB
  • references/model-selection.md7.4 KB
  • references/troubleshooting.md7.3 KB
  • references/workflows.md6.7 KB
  • scripts/dipy_tensor_smoke.py3.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.