auxiliary-analysis
Use TotalSegmentator auxiliary analysis CLIs for contrast phase, CT/MR modality, body statistics, and Evans index.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- auxiliary-analysis
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use TotalSegmentator auxiliary analysis CLIs for contrast phase, CT/MR modality, body statistics, and Evans index.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/auxiliary-tools.md11.0 KB
- 参考文档references/troubleshooting.md7.3 KB
- 脚本scripts/build_auxiliary_command.py8.4 KB
03 SKILL.md 正文
Auxiliary Analysis
Use this sub-skill when the task is not to run a general segmentation, but to run one of TotalSegmentator's secondary analysis commands: contrast phase prediction, CT/MR modality prediction, body-stat prediction, or Evans index calculation.
TotalSegmentator and these helper outputs are research/workflow aids, not standalone clinical decision systems. Preserve input provenance, inspect generated JSON/PNG outputs, and route license, install, and backend setup questions to the appropriate sibling skill.
Start Here
- Build a safe command without running models:
python scripts/build_auxiliary_command.py <phase|modality|body-stats|evans-index> .... - Read
references/auxiliary-tools.mdfor command flags, output schemas, dependency notes, and reuse limits. - Read
references/troubleshooting.mdfor optional dependency, license, classifier resource, output path, and expensive-rerun fixes. - Use
totalseg_get_phasefor CT contrast phase JSON withpi_time, phase label, confidence probability, min/max, and ensemblestddev. - Use
totalseg_get_modalityfor CT/MR classification JSON; add-nonly when intensities are normalized and ROI-based prediction is needed. - Use
totalseg_get_body_statsfor weight, size, age, sex, BMI, and BSA JSON from CT/MR images; default CNN inference is usually preferred over XGBoost. - Use
totalseg_evans_indexfor Evans index JSON plus a required preview PNG for visual validation.
Route Elsewhere
- For selectable task/class discovery, registry APIs, or license-required task inventory, use
../capability-discovery/SKILL.md. - For ordinary
TotalSegmentator -i ... -o ...segmentation runs andpython_api.totalsegmentator(...), use../segmentation-workflows/SKILL.md. - For run reports,
statistics.json, multilabel masks, probabilities, and mask combination, use../outputs-and-statistics/SKILL.md. - For installation, model weights, offline caches, license setup, device/backend setup, and usage-stat configuration, use
../runtime-configuration/SKILL.mdwhen present in this generated skill. - For DICOM input layout, NIfTI/DICOM conversion, DICOM outputs, and
crop_to_body, use../dicom-and-formats/SKILL.mdwhen present in this generated skill.
Safe Operating Rules
- Prefer the bundled command builder for automation because it prints shell-quoted commands and dependency cautions without importing TotalSegmentator or running inference.
- Always write JSON outputs to explicit paths; for Evans index, always request and inspect the preview PNG before trusting the numeric result.
- Treat optional dependencies as workflow-specific: XGBoost for phase/modality/XGBoost body stats, PyTorch+timm+MONAI for body-stats CNN, and antspyx+blosc for Evans index registration/serialization.
- Do not rerun expensive segmentation blindly. Reuse documented existing statistics for contrast phase when available; body-stats CLI does not expose a safe existing-statistics flag.
- Keep general segmentation planning and task/ROI selection out of this sub-skill unless the auxiliary tool itself invokes segmentation internally.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).