agentsclimarketplace

Detrending

Skill BioTender-max/awesome-bio-agent-skills/skills/neuroclaw/detrending

Use this model doc whenever the user wants to perform neuroimaging signal denoising with classical detrending methods. This is a non-deep-learning preprocessing route focused on removing low-frequency drift and linear trends from time series before downstream analysis.From its SKILL.md

Install
npx -y skills add BioTender-max/awesome-bio-agent-skills --skill detrending

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT License (NeuroClaw custom skill - freely modifiable within the project). That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

3.9 KB, 747 tokens by cl100k_base, as published. Nobody here has run it

Detrending Model Doc

Overview

Detrending is a classical non-deep-learning method for neuroimaging signal denoising.

  • Model family: non-deep-learning preprocessing and denoising method
  • Typical objectives:
    • remove low-frequency drift and temporal trends
    • stabilize time series before connectivity, decoding, or statistical analysis
    • prepare cleaner voxel-wise or ROI-wise time series for downstream workflows
  • Primary input: preprocessed fMRI time series, optional confounds, optional mask, TR
  • Primary output: cleaned BOLD image, cleaned ROI time series, optional QC summaries

In NeuroClaw, this document is model-level guidance for detrending workflows rather than predictive modeling.

Upstream preparation should usually be delegated to:

  • fmri-skill for modality-level denoising planning and validated preprocessing sequences
  • nilearn-tool for concrete detrending and cleaned time series export

Research use only.


Quick Start

1) Prepare denoising inputs

Expected inputs:

  • preprocessed BOLD image
  • repetition time (TR)
  • optional confounds TSV
  • optional brain mask

If images are not preprocessed yet, delegate to fmri-skill first.

2) Detrending route

Representative operations:

  • load preprocessed image or extracted ROI time series
  • remove constant and linear temporal trends
  • optionally combine detrending with confound regression or standardization
  • export cleaned image or time series table

Example execution route:

# delegated through claw-shell after preprocessing is confirmed
python skills/nilearn-tool/scripts/denoise_timeseries_reference.py \
  --bold path/to/sub-001_rest_preproc_bold.nii.gz \
  --confounds path/to/sub-001_confounds.tsv \
  --tr 2.0 \
  --detrend \
  --output-dir run_models_output/detrending

Input / Output Contract

Required inputs

  • preprocessed BOLD image or extracted time series
  • TR when combined with temporal cleaning workflow metadata

Optional inputs

  • confounds table
  • mask image
  • standardization options

Produced outputs

  • cleaned BOLD image or cleaned time series
  • optional QC summary of detrending settings

Recommended Delegation

  • modality-level denoising plan -> fmri-skill
  • concrete implementation of detrending -> nilearn-tool
  • shell execution and logging -> claw-shell

No execution before explicit plan confirmation.


When to Use Detrending

  • The user wants signal cleaning rather than statistical modeling or prediction.
  • The goal is to remove drift before connectivity or decoding.
  • The workflow needs standardized temporal preprocessing before ROI extraction.
  • A classical transparent denoising baseline is preferred over learned denoising methods.
  • The user explicitly asks for detrending or drift removal.

Limitations and Notes

  • Detrending alone does not remove motion or physiological confounds unless combined with regression.
  • Detrending choices should be reported because they directly affect downstream analyses.
  • Aggressive cleaning sequences can alter downstream effect estimates if applied without task awareness.

Reference

Created At: 2026-04-14 00:40 HKT Last Updated At: 2026-04-14 00:45 HKT Author: chengwang96

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.