executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
denoising-preprocessingChoose and run Dipy denoising and preprocessing steps, including NLMeans, local PCA, MPPCA, Patch2Self, Gibbs removal, noise estimation, bias correction, and pre-fit validation.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a Dipy task needs denoising or preprocessing before reconstruction, tracking, segmentation, or metric extraction: NLMeans, localpca, mppca, Patch2Self, Gibbs ringing removal, noise estimation, DWI bias-field correction, preprocessing masks, and validation of 3D/4D volume, mask, sigma, and patch-radius choices.
../io-data/ for loading/saving NIfTI files, b-values/b-vectors, GradientTable construction from files, affine/header preservation, and image/gradient shape validation.../reconstruction-models/ after preprocessing when the next task is tensor/CSD/DKI/ODF/peak fitting or reconstruction metric generation.../tracking-segmentation/ for brain masks, tissue classification, streamline tracking, segmentation, and tractometry; keep only preprocessing-specific masks here.../cli-workflows/ for console-entry discovery, parser behavior, --help probing, globbing semantics, and generic dipy_* command mechanics.dipy_evac_plus and dipy_correct_biasfield --method n4 as optional because base installs may lack model assets or ML dependencies.references/api-reference.md lists denoising/preprocessing APIs, signatures, array contracts, and validation checks.references/workflows.md gives decision rules and safe API/CLI recipes for NLMeans, LPCA, MPPCA, Patch2Self, Gibbs removal, and bias correction.references/troubleshooting.md maps common shape, sigma, patch, mask, CLI, and optional-dependency failures to concrete fixes.scripts/dipy_denoise_smoke.py runs deterministic tiny in-memory checks and prints JSON; it does not download data or write persistent outputs.data.shape[-1] against b-values/b-vectors for gradient-aware paths and validate any mask with mask.shape == data.shape[:3].sigma, LPCA with sigma or a gtab, MPPCA when noise is unknown and volume count supports local PCA, and Patch2Self for self-supervised DWI denoising with enough volumes.num_processes=1 for deterministic Gibbs probes, and tiny synthetic arrays for smoke tests.out_dtype, nonempty in-mask output, and no accidental all-zero background expansion.import dipy fails because generated version metadata is missing, run smoke checks from outside the checkout or use a normal installed package environment.peaks_from_model from dipy.reconst.peaks; route reconstruction to ../reconstruction-models/, where the verified import is dipy.direction.peaks.peaks_from_model.