data-analysis
Route and supervise clinical, biomedical, omics, imaging, survival, diagnostic, and machine-learning analyses with explicit schemas, backend limits, privacy gates, and reproducible outputs.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- data-analysis
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Route and supervise clinical, biomedical, omics, imaging, survival, diagnostic, and machine-learning analyses with explicit schemas, backend limits, privacy gates, and reproducible outputs.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/data-formats.md9.9 KB
- 参考文档references/troubleshooting.md9.7 KB
- 参考文档references/workflows.md11.1 KB
03 SKILL.md 正文
Data Analysis
Use this route for clinical statistics, omics/bioinformatics, machine learning (ML), survival or diagnostic modeling, data preparation, visualization, or a reproducible analysis record. This is an operating router, not a substitute for biostatistical review, clinical judgment, an ethics/privacy decision, or a specialist package skill.
Route in this order
- State the analysis contract. Capture the scientific question, unit of analysis, study design, data modality, outcome and predictors, cohort and split rules, intended output, available Python/R/tools, compute or GPU constraints, and acceptance checks. If any missing item could change the method, stop and request it rather than guessing.
- Apply the privacy gate. Confirm authorization and de-identification before
opening or exporting data. Remove direct identifiers and inspect free text,
filenames, DICOM tags, dates, rare combinations, and image burned-in text.
Never place PHI in prompts, logs, plots, model features, or filenames. Route
anonymization, access control, audit logging, or a possible clinical decision
to
operations-and-audit. - Validate the schema before modeling. Check identifiers, orientation, uniqueness, joins, data types, units, missingness, outcome coding, time order, class/event counts, and leakage-prone columns. Use references/data-formats.md.
- Select the narrowest evidence-backed workflow. Use the decision table and package boundaries in references/workflows.md, then read references/troubleshooting.md before executing a script or interpreting a failure.
- Make the backend explicit. Python workflows (for example
pydeseq2,scanpy,anndata,pyhealth,pydicom, andsurvival-analysis-km) and R workflows (for exampleroc-diagnostic-performance,LightGBM-analysis, andXGBoost-analysis) are not interchangeable. Record interpreter, package versions, seed, configuration, and optional backend status. Do not claim that a CPU check verifies CUDA, R packages, compressed-pixel codecs, or a clinical dataset connector. - Produce reviewable artifacts. Preserve the validated input manifest, schema/data dictionary, exclusions and transformations, analysis parameters, random seed/split, software environment, warnings, tables, figures, and a concise interpretation with uncertainty. Keep exploratory, diagnostic-only, and report-ready results distinct.
- Route adjacent work. Send a literature-grounded claim, evidence search,
or contradictory finding to
evidence-insight; send aims, estimands, eligibility, endpoint, power, confounding, or validation-plan decisions toprotocol-design; send PHI, governance, installation, audit, reproducibility review, or operational safety issues tooperations-and-audit.
Fast routing signals
- Bulk RNA-seq integer counts with a condition/design/contrast:
pydeseq2. - Single-cell data or
.h5ad:anndatafor structure and I/O;scanpyfor QC, normalization, dimensionality reduction, clustering, markers, and plots. - EHR or longitudinal clinical prediction:
pyhealthonly after a patient-level task and split are defined; start with an interpretable baseline when data are small or labels are sparse. - DICOM metadata, pixels, conversion, or de-identification:
pydicom; privacy and release decisions still requireoperations-and-audit. - Right-censored time-to-event data:
survival-analysis-kmfor Kaplan–Meier, group comparisons, and documented survival summaries. Check censoring, time origin, competing events, and proportional-hazards assumptions before using a Cox estimate. - Binary case/control marker performance:
roc-diagnostic-performancefor logistic-model coefficients, marker/full-model ROC curves, and AUC. It is not a survival, multiclass, calibration, or decision-curve workflow. - R tabular boosting with feature importance:
LightGBM-analysisorXGBoost-analysis. Exclude IDs and sensitive fields, check class balance and delimiter handling, and treat degenerate or tiny runs as diagnostic-only.
Non-negotiable boundaries
- Association, prediction, feature importance, AUC, and survival estimates do not establish causality, treatment benefit, or clinical utility.
- Do not tune thresholds, select genes, impute, normalize, or choose features using held-out test data. Fit preprocessing inside training folds when evaluating predictive performance.
- Do not mix raw counts, normalized expression, transformed values, and model outputs without naming the scale and preserving provenance.
- Do not silently transpose matrices, coerce outcome labels, drop samples, or replace missing values. Record every change and its reason.
- Stop on invalid or ambiguous schemas, unsupported backends, missing codecs, insufficient events/classes, severe separation, or unreviewed PHI. Offer a bounded fallback rather than fabricating results.
Bundled guidance
- references/workflows.md: intake, method selection, package-specific boundaries, validation, execution, visualization, and handoffs.
- references/data-formats.md: modality schemas, orientation, identifiers, outcome conventions, and artifact contracts.
- references/troubleshooting.md: failure diagnosis, safe recovery, backend escalation, privacy response, and stop rules.
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).