Transform lengthy academic papers into concise, structured 250-word abstracts.
日本語の概要は準備中です。原文の説明を表示しています。
Use when evaluating the clinical utility of a binary prediction model from a single clinical CSV file by fitting a logistic decision-curve model, plotting decision and clinical-impact curves, and exporting summary outputs. NOT for: survival calibration, ROC-only discrimination analysis, nomogram construction, or time-to-event outcomes.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Use this skill when you need to:
Typical user requests:
Do not use this skill for:
| Situation | File to Read | Purpose |
|---|---|---|
| Need algorithm details | references/algorithm.md | Statistical methods and formulas |
| Need to run analysis | scripts/main.R | Get the complete command |
| Encounter errors | references/troubleshooting.md | Find solutions |
| Need CLI examples | references/cli-guide.md | Parameter usage examples |
Rscript scripts/main.R \
--data_file ./clinical_dca_data.csv \
--outcome_col fustat \
--predictor_col riskScore \
--output_dir ./output/
| Short | Long | Type | Default | Description |
|---|---|---|---|---|
-d | --data_file | character | required | Clinical CSV file with row names as sample IDs |
--outcome_col | character | fustat | Binary outcome column encoded as 0/1 | |
--predictor_col | character | riskScore | Numeric predictor column used in the logistic DCA model | |
--study_design | character | case-control | Study design: case-control or cohort | |
--population_prevalence | double | 0.3 | Population prevalence for case-control DCA (ignored for cohort design) | |
--threshold_by | double | 0.01 | Threshold step size; values below 0.005 significantly increase computation time | |
--confidence_level | double | 0.95 | Confidence level passed to rmda::decision_curve() | |
--population_size | integer | 1000 | Population size used in the clinical-impact plot | |
--n_cost_benefits | integer | 8 | Number of cost-benefit labels in the clinical-impact plot | |
--show_confidence_intervals | flag | FALSE | Show confidence intervals on the decision curve | |
--standardize_net_benefit | flag | FALSE | Report standardized net benefit (sNB) instead of raw net benefit (NB) | |
--decision_curve_color | character | #E64B35 | Decision-curve line color | |
--impact_colors | character | #E64B35,#4DBBD5 | Two comma-separated colors for the clinical-impact plot | |
--plot_width | double | 6 | PDF width in inches | |
--plot_height | double | 5.5 | PDF height in inches | |
--font_family | character | sans | PDF font family | |
--plot_title | character | Decision Curve Analysis | Decision-curve plot title | |
--base_cex | double | 0.9 | Base text-size multiplier | |
-o | --output_dir | character | ./output/ | Output directory |
--overwrite | flag | FALSE | Allow writing into a non-empty output directory | |
-s | --seed | integer | 42 | Random seed for reproducibility |
-T | --timeout_seconds | integer | 0 | Elapsed time limit in seconds; 0 disables timeout |
--data_file)CSV file with row names as sample IDs. The dataset must contain at least one binary outcome column and one numeric predictor column.
,fustat,riskScore,FOXP3,CD45
Patient_1,1,0.630147268229631,5.7783584300481,3.5407433709834
Patient_2,0,0.23007730941193,6.70308857663772,3.11795942819676
Patient_3,1,0.534809528754818,5.46860669585825,3.40086667402884
Requirements
.csv.outcome_col and predictor_col must exist.0/1 encoding. Outcome values are coerced to numeric before validation; logical TRUE/FALSE are converted to 1/0. Factor or character values will produce SKILL_INVALID_PARAMETER.Design note: When --study_design cohort is selected, --population_prevalence has no statistical effect; the raw observed event rate is used instead. A warning is emitted if you set a non-default population_prevalence with cohort design.
| File | Format | Description |
|---|---|---|
data/dca_model.rds | RDS | Saved rmda::decision_curve() result object |
table/dca_summary.txt | Plain text | Text summary of decision-curve net benefit statistics |
plot/decision_curve.pdf | Decision-curve plot | |
plot/clinical_impact_curve.pdf | Clinical-impact plot | |
session_info.txt | Plain text | Session information and run parameters |
dca_summary.txtSummary fields include:
summary(dca_model);NB or sNB);session_info.txt.population_prevalence is non-default and study_design is cohort.rmda::decision_curve().0 to 1 using threshold_by.population_prevalence when study_design is case-control..rds..txt.After a successful run, report:
dca_summary.txtplot/decision_curve.pdf, plot/clinical_impact_curve.pdf, data/dca_model.rdsRscript scripts/main.R \
--data_file clinical_dca_data.csv \
--outcome_col fustat \
--predictor_col riskScore \
--output_dir ./output/
Rscript scripts/main.R \
--data_file clinical_dca_data.csv \
--study_design cohort \
--outcome_col fustat \
--predictor_col riskScore \
--plot_title "Cohort DCA" \
--decision_curve_color "#3C5488" \
--impact_colors "#3C5488,#00A087" \
--show_confidence_intervals \
--output_dir ./cohort_output/
Rscript scripts/main.R \
--data_file tests/data/dca_data.csv \
--outcome_col fustat \
--predictor_col riskScore \
--output_dir tests/output/ \
--overwrite
| Error | Cause | Solution |
|---|---|---|
SKILL_INVALID_PARAMETER | Invalid design, invalid numeric range, invalid outcome coding, insufficient rows/class counts, or failed model fitting | Check arguments, data ranges, and binary outcome coding |
SKILL_FILE_NOT_FOUND | Input CSV does not exist | Verify the input path |
SKILL_MISSING_COLUMNS | Required columns are absent | Check outcome_col and predictor_col names |
SKILL_EMPTY_DATA | Input file is empty or contains no usable rows/columns | Check the CSV content |
SKILL_SAMPLE_MISMATCH | Reserved for cross-file sample mismatch scenarios | Not expected for this single-file workflow |
SKILL_PACKAGE_NOT_FOUND | Required R package is missing | Install with: Rscript -e "install.packages('rmda', repos='https://cloud.r-project.org')" |
IF error persists, READ: references/troubleshooting.md
This skill accepts: a single clinical CSV file with a binary outcome column (0/1 encoded) and a numeric predictor column, for decision curve analysis of a binary prediction model.
If the user's request does not involve decision curve analysis of a binary prediction model — for example, asking to run survival analysis, build ROC curves only, construct a nomogram, or analyze multiclass outcomes — do not proceed with the workflow. Instead respond:
"Decision Curve Analysis is designed to evaluate the clinical utility of binary prediction models by computing net benefit across decision thresholds. Your request appears to be outside this scope. Please provide a binary outcome dataset for DCA, or use a more appropriate tool for survival analysis, ROC analysis, or nomogram construction."
Rscript scripts/main.R --help
Rscript scripts/main.R \
--data_file tests/data/dca_data.csv \
--outcome_col fustat \
--predictor_col riskScore \
--output_dir tests/output/ \
--overwrite
Rscript tests/run_smoke_test.R
Optional shell wrapper:
bash tests/run_smoke_test.sh
tests/output/
|-- data/dca_model.rds
|-- plot/clinical_impact_curve.pdf
|-- plot/decision_curve.pdf
|-- session_info.txt
`-- table/dca_summary.txt
For detailed algorithm, READ: references/algorithm.md
optparseset.seed() for reproducibilitysource() usage via get_script_dir()scripts/tests/data/SKILL_* codesreferences/Last updated: 2026-04-27 | Version: 1.1.0
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Transform lengthy academic papers into concise, structured 250-word abstracts.
日本語の概要は準備中です。原文の説明を表示しています。
Precision editing tool that reduces abstract word count through intelligent compression techniques, maintaining scientific rigor while meeting strict journal and conference requirements.
日本語の概要は準備中です。原文の説明を表示しています。
Refines long medical academic texts into SCI-style unstructured Chinese and English abstracts; use when you need to condense drafts/reports/summaries into bilingual abstracts and generate Summary_Report.md.
日本語の概要は準備中です。原文の説明を表示しています。
Generates submission-ready Elsevier/SCI Highlights from manuscript text or extracted PDF/DOCX/TXT content. Use when a user needs 3-5 concise, evidence-grounded highlight bullets for a research paper, review, meta-analysis, case report, or bioinformatics manuscript.
日本語の概要は準備中です。原文の説明を表示しています。
Generates complete FAERS pharmacovigilance study designs for multi-drug or class-level safety comparison inside one predefined SOC or AE family using active comparators, disproportionality analysis, subgroup characterization, and reviewer-facing evidence control.
日本語の概要は準備中です。原文の説明を表示しています。
Analyze data with `adme-property-predictor` using a reproducible workflow, explicit validation, and structured outputs for review-ready interpretation.
日本語の概要は準備中です。原文の説明を表示しています。