技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-io-signal【数据与研究】Handle Nilearn Niimg image I/O, volume image operations, masking/unmasking, and signal cleaning with tiny no-network checks.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about low-level Nilearn volume images and array time series: loading 3D/4D Niimg inputs, creating new NIfTI images, resampling, smoothing, thresholding, applying or computing masks, and cleaning signals with confounds or sample masks.
nilearn.image.load_img and
nilearn.image.check_niimg for path, glob, pathlib.Path, or in-memory
nibabel inputs. See data formats and
API reference.index_img, iter_img, concat_imgs, mean_img,
new_img_like, math_img, resample_img, resample_to_img, smooth_img,
threshold_img, and clean_img. See workflows.compute_epi_mask, compute_background_mask,
compute_brain_mask, intersect_masks, apply_mask, and unmask for
direct image-to-array workflows. See API reference.nilearn.signal.clean for 2D arrays shaped
(n_samples, n_features), confounds, run labels, temporal filtering,
scrubbing, and standardization. See data formats.python scripts/smoke_image_signal.py from this sub-skill directory.NiftiMasker, labels/spheres maskers,
region extraction, and scikit-learn pipeline integration to maskers-regions.SurfaceImage, and vol_to_surf to
surface-workflows.plotting-reporting.numpy arrays and
nibabel.Nifti1Image objects in memory.check_niimg(..., ensure_ndim=3 or 4) before
assuming a 3D map or 4D run.shape[:3] and affine before apply_mask; resample to a
shared field of view before masking.apply_mask output as (n_samples, n_voxels) and signal.clean
input as (n_samples, n_features).t_r when using temporal filters (low_pass or high_pass) and make
confounds/sample masks align to the original number of time points.