[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CVZF656GSM6R5FDTYCMGWT":3,"skill-same:01M7CVZF656GSM6R5FDTYCMGWT":96},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7CVZF656GSM6R5FDTYCMGWT","km-survival-curve",null,"Use when generating Kaplan-Meier survival curves from tabular survival data containing time, event status, and a precomputed risk group. Supports command-line parameter input, parameter validation, automatic time-unit handling, single-file PDF figure export, and session metadata capture.","mrsonord2240\u002Fopenscience-specialists","mrsonord2240","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F76487430?v=4","01M7CTEM40S43GSJZ9A3YCCXZK","Samuel Nord","01M7CTEM4K69JD1GBYNHVJ9ZP4",2,"MIT","https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fkm-survival-curve\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: km-survival-curve\ndescription: Use when generating Kaplan-Meier survival curves from tabular survival data containing time, event status, and a precomputed risk group. Supports command-line parameter input, parameter validation, automatic time-unit handling, single-file PDF figure export, and session metadata capture.\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\u002F\u002Fgithub.com\u002Faipoch\u002Fmedical-research-skills](https:\u002F\u002Fgithub.com\u002Faipoch\u002Fmedical-research-skills)\n\n# Kaplan-Meier Survival Curve Analysis\n\nUse this skill to run Kaplan-Meier survival analysis on a tabular dataset and export a single PDF survival figure.\n\n## Use This Skill When\n\n- You need a Kaplan-Meier survival curve from a table containing time, status, and group columns.\n- You need a command-line survival workflow with parameter validation.\n- You need a single Kaplan-Meier plot as the final analysis result.\n\n## Primary Command\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --input_file \u003Cinput_file> \\\n  --output_dir \u003Coutput_dir> \\\n  --time_col \u003Ctime_column> \\\n  --status_col \u003Cstatus_column> \\\n  --risk_col \u003Cgroup_column>\n```\n\n## Prerequisites\n\n- `Rscript` is available in the shell.\n- Required R packages: `optparse`, `data.table`, `survival`, `survminer`, `ggplot2`.\n- Install missing packages with `Rscript -e 'install.packages(c(\"optparse\", \"data.table\", \"survival\", \"survminer\", \"ggplot2\"), repos=\"https:\u002F\u002Fcloud.r-project.org\")'`.\n\n## Core Arguments\n\n| Argument | Required | Description |\n|----------|----------|-------------|\n| `--input_file` | Yes | Input data file in CSV or tab-delimited TXT\u002FTSV format |\n| `--output_dir` | No | Output directory, default `.\u002FKM_Results` |\n| `--time_col` | No | Survival time column, default `futime` |\n| `--status_col` | No | Event status column, default `fustat` |\n| `--risk_col` | No | Risk group column, default `risk_group` |\n| `--time_unit` | No | Time unit label: `year`, `month`, or `day`, default `year` |\n| `--auto_convert_days` | No | Heuristically convert large time values from days when `time_unit` is `year` or `month`, default `true` |\n| `--statistics_method` | No | `logrank` or `wald`, default `logrank` |\n\n## Plot Customization Arguments\n\n| Argument | Default | Description |\n|----------|---------|-------------|\n| `--figure_width` | `10` | Figure width in inches |\n| `--figure_height` | `7` | Figure height in inches |\n| `--figure_family` | `sans` | Font family |\n| `--title_x` | `Time` | X-axis title. If left as default, the script renders `Time (\u003Ctime_unit>)` |\n| `--title_y` | `Survival probability` | Y-axis title |\n| `--title_main` | empty | Plot title |\n| `--legend_position` | `top` | `top`, `bottom`, `left`, `right`, `none` |\n| `--legend_show` | `true` | Whether to show legend |\n| `--legend_title` | empty | Legend title |\n| `--line_type` | `solid` | Survival line type: `solid`, `dashed`, `dotted`, `dotdash`, `longdash`, `twodash` |\n| `--line_size` | `1` | Survival line width |\n| `--line_colors` | `#4DBBD5,#E64B35,#00A087,#3C5488,#F39B7F,#8491B4,#91D1C2,#DC0000` | Comma-separated group colors |\n| `--censor_show` | `true` | Whether to show censor markers |\n| `--censor_size` | `7` | Censor marker size |\n| `--confidence_show` | `true` | Whether to show confidence interval |\n| `--confidence_alpha` | `0.2` | Confidence band transparency |\n| `--risk_table_show` | `true` | Whether to show the risk table |\n| `--risk_table_border` | `true` | Whether to show the risk table border |\n| `--risk_table_panel` | `false` | Whether to show the risk table panel background |\n| `--risk_table_size` | `6` | Risk table font size |\n| `--axis_title_size` | `12` | Axis title font size |\n| `--axis_text_size` | `10` | Axis tick-label font size |\n| `--legend_text_size` | `11` | Legend text font size |\n\n## Input Requirements\n\n- The input file must contain the requested time, status, and group columns.\n- `.txt` inputs must be tab-delimited.\n- `time` must contain finite non-negative numeric values.\n- `status` must be coded as `0` for censored and `1` for event.\n- The risk group column must be a precomputed categorical grouping variable, not a continuous score column.\n- The risk group column must contain at least 2 groups after filtering.\n- `--line_colors` must provide at least one color per retained group when you override the default palette.\n- Rows with missing time, status, or group values are removed before analysis.\n- At least 2 complete observations must remain after filtering.\n- Near-unique or continuous-looking grouping columns are rejected before model fitting.\n- If `--auto_convert_days true` and `max(time) > 365`, the script assumes the retained time values are in days and converts them to the requested `--time_unit` when `time_unit` is `year` or `month`.\n- Only use `--auto_convert_days true` when the source time column is known to be in days.\n- If your source data are already in years or months, disable `--auto_convert_days` to avoid incorrect conversion.\n- `--statistics_method wald` only supports exactly 2 retained groups; use `logrank` for multi-group comparisons.\n- Invalid plotting parameters such as unsupported `--line_type` values are rejected before plotting.\n\nExample input:\n\n```text\nid\tfustat\tfutime\trisk_score\trisk_group\tGPR161\tRIBC2\nTCGA-C5-A1M5\t1\t5.62191780821918\t-1.10702407761445\tlow\t2.82521576230566\t5.35318564979635\nTCGA-VS-A94W\t0\t3.40547945205479\t-0.671246677921865\thigh\t4.26241812321536\t4.00802068790173\n```\n\nBundled test datasets:\n\n- `tests\u002Fdata\u002Fkm_sample1.txt`: baseline KM example with `risk_group`\n- `tests\u002Fdata\u002Fkm_sample2.txt`: alternate cohort for plotting and statistics examples\n- `tests\u002Fdata\u002Fkm_sample3.txt`: additional cohort for validation and repeated testing\n\n## Minimal Workflow\n\n1. Confirm the input file exists and identify the time, status, and group columns.\n2. Run `scripts\u002Fmain.R` with the requested output directory and any optional plot parameters.\n3. Check the output directory for `km-plot.pdf`.\n\nIf you omit `--input_file`, the script exits with `SKILL_MISSING_INPUT`.\n\n## Outputs\n\nExpected output:\n\n```text\n\u003Coutput_dir>\u002F\n├── km-plot.pdf\n└── session_info.txt\n```\n\n## Interpretation Guide\n\n- Use the survival figure to inspect separation between groups over time.\n- Use the p-value annotation, confidence interval, and risk table in the figure to interpret group separation.\n\n## Time Conversion Caution\n\n- Automatic conversion is a convenience heuristic, not a unit detector.\n- The script only checks whether `max(time) > 365`; it does not infer the true source unit from metadata.\n- If the input time column is already expressed in years or months, run with `--auto_convert_days false`.\n- Review the console log for the conversion warning whenever `time_unit` is `year` or `month`.\n\n## Reproducibility Note\n\n- Repeated runs on identical input should be analytically consistent.\n- The exported `km-plot.pdf` may not be byte-identical across repeated runs because PDF metadata and graphics-device output can vary.\n- If you need byte-stable artifacts, add a deterministic PDF post-processing step outside this skill.\n\n## Do Not Use This Skill When\n\n- You need this tool to derive a cutoff or split a continuous score into risk groups.\n- You need multivariable Cox regression, covariate adjustment, or hazard-ratio modeling beyond the p-value route already exposed here.\n- You need a broader survival-analysis workflow with upstream feature engineering, biomarker selection, or data harmonization.\n- You need multiple plots, report generation, or downstream interpretation beyond producing one Kaplan-Meier figure and session metadata.\n\n## Read These Files When Needed\n\n| Need | File |\n|------|------|\n| Kaplan-Meier method details and interpretation | `references\u002Falgorithm.md` |\n| More CLI examples | `references\u002Fcli-guide.md` |\n| Error diagnosis | `references\u002Ftroubleshooting.md` |\n| Main execution entry point | `scripts\u002Fmain.R` |\n| Sample test data | `tests\u002Fdata\u002Fkm_sample1.txt`, `tests\u002Fdata\u002Fkm_sample2.txt`, `tests\u002Fdata\u002Fkm_sample3.txt` |\n\n## Quick Examples\n\nBasic Kaplan-Meier analysis:\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --input_file tests\u002Fdata\u002Fkm_sample1.txt \\\n  --output_dir tests\u002Foutput_basic\n```\n\nCustom column names:\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --input_file tests\u002Fdata\u002Fkm_sample1.txt \\\n  --time_col futime \\\n  --status_col fustat \\\n  --risk_col risk_group \\\n  --output_dir tests\u002Foutput_custom_columns\n```\n\nCustom plot title:\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --input_file tests\u002Fdata\u002Fkm_sample2.txt \\\n  --title_main \"Study KM Curve\" \\\n  --output_dir tests\u002Foutput_title\n```\n\nHide confidence interval and risk table:\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --input_file tests\u002Fdata\u002Fkm_sample3.txt \\\n  --confidence_show false \\\n  --risk_table_show false \\\n  --output_dir tests\u002Foutput_simple\n```\n\n## Validation\n\n```bash\nRscript scripts\u002Fmain.R --help\n```\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --input_file tests\u002Fdata\u002Fkm_sample1.txt \\\n  --output_dir tests\u002Fvalidation_output\n```\n\nAfter running analysis, verify that `tests\u002Fvalidation_output\u002Fkm-plot.pdf` exists.\n\n## Common Errors\n\n- `SKILL_FILE_NOT_FOUND`: Input file path is wrong or inaccessible.\n- `SKILL_MISSING_COLUMNS`: A requested time, status, or risk group column is missing.\n- `SKILL_INVALID_DATA`: Input data is malformed or unsuitable for survival analysis.\n- `SKILL_INVALID_DATA`: A continuous or near-unique risk column was supplied where a categorical group column is required.\n- `SKILL_INVALID_PARAMETER`: An argument value is invalid.\n- `SKILL_INVALID_PARAMETER`: Plotting options such as `--line_type` or `--line_colors` are incompatible with the retained groups.\n- `SKILL_INSUFFICIENT_DATA`: Too few complete observations remain after filtering.\n- `SKILL_DEPENDENCY_MISSING`: A required R package such as `optparse` or `survival` is unavailable.\n\nIf the issue is not obvious, read `references\u002Ftroubleshooting.md`.\n","> **Source**: [https:\u002F\u002Fgithub.com\u002Faipoch\u002Fmedical-research-skills](https:\u002F\u002Fgithub.com\u002Faipoch\u002Fmedical-research-skills)\n\n# Kaplan-Meier Survival Curve Analysis\n\nUse this skill to run Kaplan-Meier survival analysis on a tabular dataset and export a single PDF survival figure.\n\n## Use This Skill When\n\n- You need a Kaplan-Meier survival curve from a table containing time, status, and group columns.\n- You need a command-line survival workflow with parameter validation.\n- You need a single Kaplan-Meier plot as the final analysis result.\n\n## Primary Command\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --input_file \u003Cinput_file> \\\n  --output_dir \u003Coutput_dir> \\\n  --time_col \u003Ctime_column> \\\n  --status_col \u003Cstatus_column> \\\n  --risk_col \u003Cgroup_column>\n```\n\n## Prerequisites\n\n- `Rscript` is available in the shell.\n- Required R packages: `optparse`, `data.table`, `survival`, `survminer`, `ggplot2`.\n- Install missing packages with `Rscript -e 'install.packages(c(\"optparse\", \"data.table\", \"survival\", \"survminer\", \"ggplot2\"), repos=\"https:\u002F\u002Fcloud.r-project.org\")'`.\n\n## Core Arguments\n\n| Argument | Required | Description |\n|----------|----------|-------------|\n| `--input_file` | Yes | Input data file in CSV or tab-delimited TXT\u002FTSV format |\n| `--output_dir` | No | Output directory, default `.\u002FKM_Results` |\n| `--time_col` | No | Survival time column, default `futime` |\n| `--status_col` | No | Event status column, default `fustat` |\n| `--risk_col` | No | Risk group column, default `risk_group` |\n| `--time_unit` | No | Time unit label: `year`, `month`, or `day`, default `year` |\n| `--auto_convert_days` | No | Heuristically convert large time values from days when `time_unit` is `year` or `month`, default `true` |\n| `--statistics_method` | No | `logrank` or `wald`, default `logrank` |\n\n## Plot Customization Arguments\n\n| Argument | Default | Description |\n|----------|---------|-------------|\n| `--figure_width` | `10` | Figure width in inches |\n| `--figure_height` | `7` | Figure height in inches |\n| `--figure_family` | `sans` | Font family |\n| `--title_x` | `Time` | X-axis title. If left as default, the script renders `Time (\u003Ctime_unit>)` |\n| `--title_y` | `Survival probability` | Y-axis title |\n| `--title_main` | empty | Plot title |\n| `--legend_position` | `top` | `top`, `bottom`, `left`, `right`, `none` |\n| `--legend_show` | `true` | Whether to show legend |\n| `--legend_title` | empty | Legend title |\n| `--line_type` | `solid` | Survival line type: `solid`, `dashed`, `dotted`, `dotdash`, `longdash`, `twodash` |\n| `--line_size` | `1` | Survival line width |\n| `--line_colors` | `#4DBBD5,#E64B35,#00A087,#3C5488,#F39B7F,#8491B4,#91D1C2,#DC0000` | Comma-separated group colors |\n| `--censor_show` | `true` | Whether to show censor markers |\n| `--censor_size` | `7` | Censor marker size |\n| `--confidence_show` | `true` | Whether to show confidence interval |\n| `--confidence_alpha` | `0.2` | Confidence band transparency |\n| `--risk_table_show` | `true` | Whether to show the risk table |\n| `--risk_table_border` | `true` | Whether to show the risk table border |\n| `--risk_table_panel` | `false` | Whether to show the risk table panel background |\n| `--risk_table_size` | `6` | Risk table font size |\n| `--axis_title_size` | `12` | Axis title font size |\n| `--axis_text_size` | `10` | Axis tick-label font size |\n| `--legend_text_size` | `11` | Legend text font size |\n\n## Input Requirements\n\n- The input file must contain the requested time, status, and group columns.\n- `.txt` inputs must be tab-delimited.\n- `time` must contain finite non-negative numeric values.\n- `status` must be coded as `0` for censored and `1` for event.\n- The risk group column must be a precomputed categorical grouping variable, not a continuous score column.\n- The risk group column must contain at least 2 groups after filtering.\n- `--line_colors` must provide at least one color per retained group when you override the default palette.\n- Rows with missing time, status, or group values are removed before analysis.\n- At least 2 complete observations must remain after filtering.\n- Near-unique or continuous-looking grouping columns are rejected before model fitting.\n- If `--auto_convert_days true` and `max(time) > 365`, the script assumes the retained time values are in days and converts them to the requested `--time_unit` when `time_unit` is `year` or `month`.\n- Only use `--auto_convert_days true` when the source time column is known to be in days.\n- If your source data are already in years or months, disable `--auto_convert_days` to avoid incorrect conversion.\n- `--statistics_method wald` only supports exactly 2 retained groups; use `logrank` for multi-group comparisons.\n- Invalid plotting parameters such as unsupported `--line_type` values are rejected before plotting.\n\nExample input:\n\n```text\nid\tfustat\tfutime\trisk_score\trisk_group\tGPR161\tRIBC2\nTCGA-C5-A1M5\t1\t5.62191780821918\t-1.10702407761445\tlow\t2.82521576230566\t5.35318564979635\nTCGA-VS-A94W\t0\t3.40547945205479\t-0.671246677921865\thigh\t4.26241812321536\t4.00802068790173\n```\n\nBundled test datasets:\n\n- `tests\u002Fdata\u002Fkm_sample1.txt`: baseline KM example with `risk_group`\n- `tests\u002Fdata\u002Fkm_sample2.txt`: alternate cohort for plotting and statistics examples\n- `tests\u002Fdata\u002Fkm_sample3.txt`: additional cohort for validation and repeated testing\n\n## Minimal Workflow\n\n1. Confirm the input file exists and identify the time, status, and group columns.\n2. Run `scripts\u002Fmain.R` with the requested output directory and any optional plot parameters.\n3. Check the output directory for `km-plot.pdf`.\n\nIf you omit `--input_file`, the script exits with `SKILL_MISSING_INPUT`.\n\n## Outputs\n\nExpected output:\n\n```text\n\u003Coutput_dir>\u002F\n├── km-plot.pdf\n└── session_info.txt\n```\n\n## Interpretation Guide\n\n- Use the survival figure to inspect separation between groups over time.\n- Use the p-value annotation, confidence interval, and risk table in the figure to interpret group separation.\n\n## Time Conversion Caution\n\n- Automatic conversion is a convenience heuristic, not a unit detector.\n- The script only checks whether `max(time) > 365`; it does not infer the true source unit from metadata.\n- If the input time column is already expressed in years or months, run with `--auto_convert_days false`.\n- Review the console log for the conversion warning whenever `time_unit` is `year` or `month`.\n\n## Reproducibility Note\n\n- Repeated runs on identical input should be analytically consistent.\n- The exported `km-plot.pdf` may not be byte-identical across repeated runs because PDF metadata and graphics-device output can vary.\n- If you need byte-stable artifacts, add a deterministic PDF post-processing step outside this skill.\n\n## Do Not Use This Skill When\n\n- You need this tool to derive a cutoff or split a continuous score into risk groups.\n- You need multivariable Cox regression, covariate adjustment, or hazard-ratio modeling beyond the p-value route already exposed here.\n- You need a broader survival-analysis workflow with upstream feature engineering, biomarker selection, or data harmonization.\n- You need multiple plots, report generation, or downstream interpretation beyond producing one Kaplan-Meier figure and session metadata.\n\n## Read These Files When Needed\n\n| Need | File |\n|------|------|\n| Kaplan-Meier method details and interpretation | `references\u002Falgorithm.md` |\n| More CLI examples | `references\u002Fcli-guide.md` |\n| Error diagnosis | `references\u002Ftroubleshooting.md` |\n| Main execution entry point | `scripts\u002Fmain.R` |\n| Sample test data | `tests\u002Fdata\u002Fkm_sample1.txt`, `tests\u002Fdata\u002Fkm_sample2.txt`, `tests\u002Fdata\u002Fkm_sample3.txt` |\n\n## Quick Examples\n\nBasic Kaplan-Meier analysis:\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --input_file tests\u002Fdata\u002Fkm_sample1.txt \\\n  --output_dir tests\u002Foutput_basic\n```\n\nCustom column names:\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --input_file tests\u002Fdata\u002Fkm_sample1.txt \\\n  --time_col futime \\\n  --status_col fustat \\\n  --risk_col risk_group \\\n  --output_dir tests\u002Foutput_custom_columns\n```\n\nCustom plot title:\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --input_file tests\u002Fdata\u002Fkm_sample2.txt \\\n  --title_main \"Study KM Curve\" \\\n  --output_dir tests\u002Foutput_title\n```\n\nHide confidence interval and risk table:\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --input_file tests\u002Fdata\u002Fkm_sample3.txt \\\n  --confidence_show false \\\n  --risk_table_show false \\\n  --output_dir tests\u002Foutput_simple\n```\n\n## Validation\n\n```bash\nRscript scripts\u002Fmain.R --help\n```\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --input_file tests\u002Fdata\u002Fkm_sample1.txt \\\n  --output_dir tests\u002Fvalidation_output\n```\n\nAfter running analysis, verify that `tests\u002Fvalidation_output\u002Fkm-plot.pdf` exists.\n\n## Common Errors\n\n- `SKILL_FILE_NOT_FOUND`: Input file path is wrong or inaccessible.\n- `SKILL_MISSING_COLUMNS`: A requested time, status, or risk group column is missing.\n- `SKILL_INVALID_DATA`: Input data is malformed or unsuitable for survival analysis.\n- `SKILL_INVALID_DATA`: A continuous or near-unique risk column was supplied where a categorical group column is required.\n- `SKILL_INVALID_PARAMETER`: An argument value is invalid.\n- `SKILL_INVALID_PARAMETER`: Plotting options such as `--line_type` or `--line_colors` are incompatible with the retained groups.\n- `SKILL_INSUFFICIENT_DATA`: Too few complete observations remain after filtering.\n- `SKILL_DEPENDENCY_MISSING`: A required R package such as `optparse` or `survival` is unavailable.\n\nIf the issue is not obvious, read `references\u002Ftroubleshooting.md`.\n",{"name":5,"author":24,"license":15,"description":7},"AIPOCH","main","e0956dc9606356ab78468936b502e55a365282e2","specialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fkm-survival-curve",0,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists","https:\u002F\u002Fgithub.com\u002Fmrsonord2240","2026-10-12 03:19:04",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add mrsonord2240\u002Fopenscience-specialists --skill km-survival-curve",{"tool":38,"command":39},"bunx","bunx skills add mrsonord2240\u002Fopenscience-specialists --skill km-survival-curve",{"tool":41,"command":42},"pnpm","pnpm dlx skills add mrsonord2240\u002Fopenscience-specialists --skill km-survival-curve","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fkm-survival-curve\u002FSKILL.md",true,[46,52,56,60,66,70,74,78,84,88,92],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Falgorithm.md","REFERENCE","参考文档",3343,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fkm-survival-curve\u002Freferences\u002Falgorithm.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fcli-guide.md",5712,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fkm-survival-curve\u002Freferences\u002Fcli-guide.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Ftroubleshooting.md",4371,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fkm-survival-curve\u002Freferences\u002Ftroubleshooting.md",{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"scripts\u002Ffunctions.R","SCRIPT","脚本",11730,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fkm-survival-curve\u002Fscripts\u002Ffunctions.R",{"path":67,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":68,"sourceHtmlUrl":69},"scripts\u002Fmain.R",7310,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fkm-survival-curve\u002Fscripts\u002Fmain.R",{"path":71,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":72,"sourceHtmlUrl":73},"scripts\u002Frun_analysis.R",1717,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fkm-survival-curve\u002Fscripts\u002Frun_analysis.R",{"path":75,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":76,"sourceHtmlUrl":77},"scripts\u002Futils.R",5091,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fkm-survival-curve\u002Fscripts\u002Futils.R",{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"tests\u002Fdata\u002Fkm_custom_columns.csv","ASSET","资产文件",166,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fkm-survival-curve\u002Ftests\u002Fdata\u002Fkm_custom_columns.csv",{"path":85,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":86,"sourceHtmlUrl":87},"tests\u002Fdata\u002Fkm_sample1.txt",16119,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fkm-survival-curve\u002Ftests\u002Fdata\u002Fkm_sample1.txt",{"path":89,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":90,"sourceHtmlUrl":91},"tests\u002Fdata\u002Fkm_sample2.txt",5581,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fkm-survival-curve\u002Ftests\u002Fdata\u002Fkm_sample2.txt",{"path":93,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":94,"sourceHtmlUrl":95},"tests\u002Fdata\u002Fkm_sample3.txt",21648,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fkm-survival-curve\u002Ftests\u002Fdata\u002Fkm_sample3.txt",[97,105,112,119,126,133],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":101,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M7CW36A6QAGWFE2C008M1XPG","bio-workflows-metabolomics-pipeline","Orchestrates the untargeted LC-MS metabolomics pipeline end-to-end (xcms 4.x feature extraction, QC\u002Fdrift\u002Fnormalization, confidence-stratified annotation, permutation-validated statistics, background-aware pathway mapping), naming what each stage decides and where it silently fails. Use when running a full LC-MS metabolomics study from raw mzML to enriched pathways and needing the honest handoffs between stages. Each stage defers to its component skill for parameters and traps; for stable-isotope flux (a separate branch, not this untargeted flow) see metabolomics\u002Fisotope-tracing.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Funtargeted-metabolomics-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fbio-workflows-metabolomics-pipeline\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":101,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":19},"01M7CW2Y18623NA2S1Y30FRQW1","bio-metabolomics-xcms-preprocessing","Programmatic untargeted LC-MS feature extraction in R with the modern xcms 4.x MsExperiment\u002FXcmsExperiment API, taking raw mzML to a feature table via CentWave peak detection, retention-time alignment, peak-density correspondence, gap-filling, CAMERA redundancy collapse, and built-in QC feature filtering. Use when converting centroided LC-MS runs into a features-by-samples matrix and deciding centWave\u002Fgrouping\u002Falignment parameters. For drift correction and QC\u002FCV filtering execution see metabolomics\u002Fnormalization-qc; for metabolite identification see metabolomics\u002Fmetabolite-annotation; for the MS-DIAL GUI alternative with MS2Dec deconvolution see metabolomics\u002Fmsdial-preprocessing; for downstream statistics see metabolomics\u002Fstatistical-analysis.","https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Funtargeted-metabolomics-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fbio-metabolomics-xcms-preprocessing\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":101,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":19},"01M7CW2M364HVWPNQEKE2WP4PP","bio-metabolomics-statistical-analysis","Decision-grade statistical analysis for metabolomics intensity tables. Covers transformation and scaling (Pareto vs unit-variance as a hidden hypothesis), unsupervised structure (PCA\u002FHCA for QC), permutation-validated PLS-DA\u002FOPLS-DA (R2 vs Q2, double CV, VIP as heuristic), univariate testing (Welch\u002FMann-Whitney\u002FANOVA\u002FLMM with covariate adjustment), and dependence-aware multiple testing. Use when testing which metabolites differ, building or validating a discriminant model, choosing a scaling, or correcting many correlated tests. For sample-wise normalization\u002Fdrift correction see metabolomics\u002Fnormalization-qc; for ML classifiers and selection-inside-CV leakage see machine-learning\u002Fbiomarker-discovery and machine-learning\u002Fmodel-validation; for pathway interpretation see metabolomics\u002Fpathway-mapping; for design\u002Fpower\u002Fmultiplicity regime see experimental-design\u002Fmultiple-testing.","https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Funtargeted-metabolomics-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fbio-metabolomics-statistical-analysis\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":101,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":19},"01M7CW2BCBF851WYE03Z8XPEDQ","bio-metabolomics-pathway-mapping","Maps metabolomics results to biological pathways via over-representation (ORA), metabolite-set enrichment (MSEA\u002FQEA), mummichog\u002FPSEA on raw m\u002Fz peaks, and network-diffusion enrichment (FELLA), with correct background-set construction and honest interpretive ceilings. Use when interpreting differential metabolites or an untargeted LC-MS feature table in pathway context, choosing ORA vs MSEA vs mummichog vs topology, or setting the reference\u002Fbackground set. For annotation confidence levels feeding ORA see metabolomics\u002Fmetabolite-annotation; for gene-set concepts see pathway-analysis\u002Fgo-enrichment and pathway-analysis\u002Fgsea; for joint gene+metabolite pathways see multi-omics-integration\u002Fmofa-integration.","https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Funtargeted-metabolomics-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fbio-metabolomics-pathway-mapping\u002FSKILL.md",[],[],{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":101,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":19},"01M7CW21NSZMCPMF7D9CHJM718","bio-metabolomics-normalization-qc","Designs QC, corrects signal drift, removes batch effects, filters features, normalizes samples, and imputes missing values for untargeted LC-MS\u002FGC-MS metabolomics, framing each step as a measurement model that can create or erase biological signal. Use when processing a peak\u002Ffeature table before statistical analysis, choosing a drift-correction or sample-normalization method, deciding QC RSD vs D-ratio filtering, or handling left-censored missing values. The feature table is produced by metabolomics\u002Fxcms-preprocessing or metabolomics\u002Fmsdial-preprocessing; transformation\u002Fscaling for modeling defers to metabolomics\u002Fstatistical-analysis; cross-study design issues link to experimental-design\u002Fbatch-design.","https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Funtargeted-metabolomics-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fbio-metabolomics-normalization-qc\u002FSKILL.md",[],[],{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":101,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":19},"01M7CW1SWVM0NYHVE6Q7MA3G7R","bio-metabolomics-msdial-preprocessing","Runs the MS-DIAL preprocessing workflow (peak picking, MS2Dec spectral deconvolution, alignment, gap-filling) and imports the alignment-result table into R or Python with honest filtering. Use when preprocessing LC-MS DDA\u002FDIA (SWATH) or GC-MS raw data with MS-DIAL, deciding MS-DIAL vs XCMS, configuring the MSDIALCUI console run, or parsing an MS-DIAL export into a clean feature matrix. For programmatic R peak detection and the feature-table-as-artifact framing see metabolomics\u002Fxcms-preprocessing; for lipid annotation mode see metabolomics\u002Flipidomics; for MSI-level confidence honesty see metabolomics\u002Fmetabolite-annotation; for drift correction and QC see metabolomics\u002Fnormalization-qc.","https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Funtargeted-metabolomics-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fbio-metabolomics-msdial-preprocessing\u002FSKILL.md",[],[]]