[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CVZX5TYDNNNSBJK57FP79V":3,"skill-same:01M7CVZX5TYDNNNSBJK57FP79V":94},{"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},"01M7CVZX5TYDNNNSBJK57FP79V","sample-group-sankey-plot",null,"Use when generating Sankey or alluvial plots from sample annotation tables where rows are samples and selected columns are categorical stages such as risk group, response status, subtype, or cohort labels. NOT for: gene network flow analysis, continuous-value trajectories, or graph-structured pathway visualization.","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\u002Fsample-group-sankey-plot\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: sample-group-sankey-plot\ndescription: \"Use when generating Sankey or alluvial plots from sample annotation tables where rows are samples and selected columns are categorical stages such as risk group, response status, subtype, or cohort labels. NOT for: gene network flow analysis, continuous-value trajectories, or graph-structured pathway visualization.\"\nlicense: MIT\nskill-author: AIPOCH\n---\n\n# Sample Group Sankey Plot\n\nBuilds a reproducible Sankey\u002Falluvial visualization from a tabular sample annotation file and exports the selected annotations, lodes-format table, plot PDF, and session metadata.\n\n## Input Validation\n\nThis skill accepts: a sample annotation table in CSV or TSV format where rows are samples and selected columns are categorical stages (e.g., risk group, response status, subtype, cohort label). At least 2 stage columns are required.\n\nIf the user's request does not involve generating a Sankey or alluvial flow diagram from categorical sample annotations — for example, asking to visualize a gene regulatory network, plot continuous-value trajectories, analyze pathway flow, or process non-tabular data — do not proceed with the workflow. Instead respond:\n\n> \"sample-group-sankey-plot is designed to generate Sankey\u002Falluvial plots from categorical sample annotation tables. Your request appears to be outside this scope. Please provide a sample annotation table with at least 2 categorical stage columns, or use a more appropriate tool for gene network visualization or pathway analysis.\"\n\n**Readability guidance:** Sankey plots are recommended for fewer than 8 unique values per stage and fewer than 5 stages total. For larger inputs, filter or aggregate categories before plotting to ensure readable output.\n\n## Agent Response Contract\n\nAfter a successful run, report to the caller:\n\n```\nSankey plot generated successfully.\nStages plotted : \u003Ccomma-separated stage column names>\nSamples        : \u003Crow count>\nOutput prefix  : \u003Coutput_prefix>\nOutputs:\n  table\u002Fselected_annotations.csv\n  table\u002Fsankey_lodes.csv\n  plot\u002F\u003Coutput_prefix>.pdf\n  data\u002Fsession_info.txt\nReadability warnings (if any): \u003Cadvisory messages or \"none\">\n```\n\nIf the script exits with a non-zero status, surface the SKILL_* error code and message verbatim. Do not attempt to continue or retry silently.\n\n## When to Read External Files\n\n| Situation | File to Read | Purpose |\n|-----------|--------------|---------|\n| **Need to run analysis** | `scripts\u002Fmain.R` | Execute: `Rscript scripts\u002Fmain.R --input_file ... --output_dir ...` |\n| **Need algorithm details** | `references\u002Falgorithm.md` | Alluvial transformation logic, assumptions, and plotting choices |\n| **Encounter errors** | `references\u002Ftroubleshooting.md` | Common errors and solutions |\n| **Need CLI examples** | `references\u002Fcli-guide.md` | Detailed CLI examples |\n| **Need test data** | `tests\u002Fdata\u002F` | Sample annotation tables for smoke tests and regression checks |\n\n→ Reference files `algorithm.md`, `troubleshooting.md`, and `cli-guide.md` are in `references\u002F`. If absent, rely on the Error Handling table below for common issues.\n\n---\n\n## Usage\n\n### Environment Setup\n\nInstall required R packages before the first run:\n\n```bash\nRscript scripts\u002Finstall_dependencies.R\n```\n\nNote: `install_dependencies.R` installs from CRAN without version pinning. Tested with ggalluvial >= 0.12.5 and ggplot2 >= 3.4.0. For reproducible CI environments, consider using `remotes::install_version()`.\n\n### Basic Command\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --input_file .\u002Fannotations.csv \\\n  --output_dir .\u002Foutput \\\n  --columns risk,Responder \\\n  --seed 42\n```\n\n---\n\n## Arguments\n\n| Short | Long | Type | Default | Description |\n|-------|------|------|---------|-------------|\n| `-i` | `--input_file` | character | **required** | Input CSV\u002FTSV annotation table |\n| `-o` | `--output_dir` | character | `.\u002Foutput\u002F` | Output directory |\n| `-c` | `--columns` | character | all columns | Comma-separated stage columns to include in the plot. When omitted, all columns in the file are used as stages. |\n| `-p` | `--output_prefix` | character | `sankey_plot` | Prefix for generated output files (alphanumeric, dot, underscore, or hyphen characters only) |\n|  | `--width` | numeric | `7` | Plot width in inches |\n|  | `--height` | numeric | `5` | Plot height in inches |\n|  | `--alpha` | numeric | `0.5` | Flow transparency between `0` and `1` |\n|  | `--label_size` | numeric | `4.5` | Stratum label size |\n|  | `--missing_label` | character | `Missing` | Replacement label for blank or `NA` strata |\n|  | `--title` | character | empty | Optional plot title |\n| `-s` | `--seed` | integer | `42` | Random seed recorded for reproducibility |\n|  | `--timeout` | integer | `3600` | Maximum allowed elapsed runtime in seconds; use `0` to disable |\n\n---\n\n## Input Format\n\n### Annotation Table (`input_file`)\n\nDelimited text file where rows represent samples and each selected column is a categorical stage shown in the Sankey plot.\n\n```csv\nSampleID,risk,Responder,Subtype\nS1,High,Yes,Basal\nS2,Low,No,LumA\nS3,High,Yes,Basal\nS4,Low,No,LumB\n```\n\n**Requirements:**\n- The file must contain at least 2 columns if `--columns` is omitted.\n- Each selected column must exist in the file header.\n- Selected columns are interpreted as categorical stages and will be converted to character values.\n- Blank strings and `NA` values are replaced with `--missing_label`.\n- CSV and TSV inputs are supported.\n- Recommended: fewer than 8 unique values per stage and fewer than 5 stages total for readable plots.\n\n---\n\n## Output Files\n\n| File | Description |\n|------|-------------|\n| `table\u002Fselected_annotations.csv` | Filtered table containing only the plotted stage columns |\n| `table\u002Fsankey_lodes.csv` | Long-format lodes table used to build the Sankey plot |\n| `plot\u002F{output_prefix}.pdf` | Sankey\u002Falluvial plot as a PDF file; default filename is `sankey_plot.pdf` |\n| `data\u002Fsession_info.txt` | R session information and runtime parameters |\n\n### selected_annotations.csv\n\n| Column | Type | Description |\n|--------|------|-------------|\n| stage columns | character | One column per plotted stage in original order |\n\n### sankey_lodes.csv\n\n| Column | Type | Description |\n|--------|------|-------------|\n| `sample_id` | character | Synthetic row identifier used as the alluvium key |\n| `x` | character | Stage name |\n| `stratum` | character | Category label for the stage |\n\n---\n\n## Workflow\n\n### Step 1: Validate Input\n- Check that the input file exists and is readable.\n- Detect CSV vs TSV input.\n- Validate that at least 2 stage columns are available.\n- Validate that user-specified columns exist.\n\n### Step 2: Prepare Sankey Data\n- Subset the selected stage columns.\n- Replace missing or blank labels.\n- Add a row-level `sample_id` identifier.\n- Convert the table with `ggalluvial::to_lodes_form()`.\n\n### Step 2a: Readability Advisories\nAfter column selection, the script emits `log_warn` advisories when:\n- More than 5 stages are selected: `\"More than 5 stages selected; plot may be hard to read. Consider filtering.\"`\n- A stage has more than 8 unique values: `\"Stage \u003Cname> has \u003Cn> unique values; consider aggregating for readability.\"`\n\nThese are advisory only — the script continues and produces the plot.\n\n### Step 3: Generate Visualization\n- Build the Sankey\u002Falluvial plot with `geom_flow()` and `geom_stratum()`.\n- Render stratum labels.\n- Save the plot as PDF.\n\n### Step 4: Record Outputs\n- Save the selected annotations and lodes-format table as CSV files.\n- Save `sessionInfo()` and runtime arguments for reproducibility.\n\n---\n\n## Examples\n\n### Reproduce the Original Two-Column Plot\n\n```bash\nRscript scripts\u002Fmain.R \\\n  -i tests\u002Fdata\u002Fsample_annotations.csv \\\n  -o tests\u002Foutput \\\n  -c risk,Responder\n```\n\n### Plot Three Annotation Stages\n\n```bash\nRscript scripts\u002Fmain.R \\\n  -i tests\u002Fdata\u002Fsample_annotations.csv \\\n  -o tests\u002Foutput_three_stage \\\n  -c risk,Responder,Subtype \\\n  --title \"Risk to response transitions\"\n```\n\n### Use All Columns Automatically\n\n```bash\nRscript scripts\u002Fmain.R \\\n  -i tests\u002Fdata\u002Fminimal_annotations.csv \\\n  -o tests\u002Foutput_all_columns\n```\n\n---\n\n## Error Handling\n\n### Common Errors\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `SKILL_FILE_NOT_FOUND` | Input file does not exist | Check `--input_file` |\n| `SKILL_EMPTY_DATA` | The input file has zero rows or fewer than 2 usable columns | Provide a non-empty table with at least 2 stage columns |\n| `SKILL_MISSING_COLUMNS` | A requested stage column is absent | Correct `--columns` or fix the input header |\n| `SKILL_INVALID_PARAMETER` | Width, height, alpha, label size, or output prefix is invalid | Provide valid arguments per the Arguments table |\n| `SKILL_DEPENDENCY_MISSING` | A required R package is unavailable | Run `Rscript scripts\u002Finstall_dependencies.R` |\n| `SKILL_IO_ERROR` | Output directory cannot be created or written | Check permissions on `--output_dir` |\n\n**IF error persists**, READ: `references\u002Ftroubleshooting.md`\n\n---\n\n## Testing\n\n### Test with Sample Data\n\n```bash\nRscript scripts\u002Finstall_dependencies.R\n\nRscript scripts\u002Fmain.R --help\n\nRscript scripts\u002Fmain.R \\\n  -i tests\u002Fdata\u002Fsample_annotations.csv \\\n  -o tests\u002Foutput \\\n  -c risk,Responder,Subtype\n\nRscript tests\u002Ftest_skill.R\n\nRscript tests\u002Frun_smoke_test.R\n```\n\n### Validation Commands\n\n```bash\nls -la tests\u002Foutput\u002Ftable\nls -la tests\u002Foutput\u002Fplot\nls -la tests\u002Foutput\u002Fdata\n```\n\n---\n\n## References\n\n1. Brunson JC (2020) ggalluvial: Layered Grammar for Alluvial Plots. *Journal of Open Source Software*. doi:10.21105\u002Fjoss.02017\n2. Wickham H (2016) *ggplot2: Elegant Graphics for Data Analysis*. Springer. doi:10.1007\u002F978-3-319-24277-4\n\n**For detailed algorithm**, READ: `references\u002Falgorithm.md`\n","# Sample Group Sankey Plot\n\nBuilds a reproducible Sankey\u002Falluvial visualization from a tabular sample annotation file and exports the selected annotations, lodes-format table, plot PDF, and session metadata.\n\n## Input Validation\n\nThis skill accepts: a sample annotation table in CSV or TSV format where rows are samples and selected columns are categorical stages (e.g., risk group, response status, subtype, cohort label). At least 2 stage columns are required.\n\nIf the user's request does not involve generating a Sankey or alluvial flow diagram from categorical sample annotations — for example, asking to visualize a gene regulatory network, plot continuous-value trajectories, analyze pathway flow, or process non-tabular data — do not proceed with the workflow. Instead respond:\n\n> \"sample-group-sankey-plot is designed to generate Sankey\u002Falluvial plots from categorical sample annotation tables. Your request appears to be outside this scope. Please provide a sample annotation table with at least 2 categorical stage columns, or use a more appropriate tool for gene network visualization or pathway analysis.\"\n\n**Readability guidance:** Sankey plots are recommended for fewer than 8 unique values per stage and fewer than 5 stages total. For larger inputs, filter or aggregate categories before plotting to ensure readable output.\n\n## Agent Response Contract\n\nAfter a successful run, report to the caller:\n\n```\nSankey plot generated successfully.\nStages plotted : \u003Ccomma-separated stage column names>\nSamples        : \u003Crow count>\nOutput prefix  : \u003Coutput_prefix>\nOutputs:\n  table\u002Fselected_annotations.csv\n  table\u002Fsankey_lodes.csv\n  plot\u002F\u003Coutput_prefix>.pdf\n  data\u002Fsession_info.txt\nReadability warnings (if any): \u003Cadvisory messages or \"none\">\n```\n\nIf the script exits with a non-zero status, surface the SKILL_* error code and message verbatim. Do not attempt to continue or retry silently.\n\n## When to Read External Files\n\n| Situation | File to Read | Purpose |\n|-----------|--------------|---------|\n| **Need to run analysis** | `scripts\u002Fmain.R` | Execute: `Rscript scripts\u002Fmain.R --input_file ... --output_dir ...` |\n| **Need algorithm details** | `references\u002Falgorithm.md` | Alluvial transformation logic, assumptions, and plotting choices |\n| **Encounter errors** | `references\u002Ftroubleshooting.md` | Common errors and solutions |\n| **Need CLI examples** | `references\u002Fcli-guide.md` | Detailed CLI examples |\n| **Need test data** | `tests\u002Fdata\u002F` | Sample annotation tables for smoke tests and regression checks |\n\n→ Reference files `algorithm.md`, `troubleshooting.md`, and `cli-guide.md` are in `references\u002F`. If absent, rely on the Error Handling table below for common issues.\n\n---\n\n## Usage\n\n### Environment Setup\n\nInstall required R packages before the first run:\n\n```bash\nRscript scripts\u002Finstall_dependencies.R\n```\n\nNote: `install_dependencies.R` installs from CRAN without version pinning. Tested with ggalluvial >= 0.12.5 and ggplot2 >= 3.4.0. For reproducible CI environments, consider using `remotes::install_version()`.\n\n### Basic Command\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --input_file .\u002Fannotations.csv \\\n  --output_dir .\u002Foutput \\\n  --columns risk,Responder \\\n  --seed 42\n```\n\n---\n\n## Arguments\n\n| Short | Long | Type | Default | Description |\n|-------|------|------|---------|-------------|\n| `-i` | `--input_file` | character | **required** | Input CSV\u002FTSV annotation table |\n| `-o` | `--output_dir` | character | `.\u002Foutput\u002F` | Output directory |\n| `-c` | `--columns` | character | all columns | Comma-separated stage columns to include in the plot. When omitted, all columns in the file are used as stages. |\n| `-p` | `--output_prefix` | character | `sankey_plot` | Prefix for generated output files (alphanumeric, dot, underscore, or hyphen characters only) |\n|  | `--width` | numeric | `7` | Plot width in inches |\n|  | `--height` | numeric | `5` | Plot height in inches |\n|  | `--alpha` | numeric | `0.5` | Flow transparency between `0` and `1` |\n|  | `--label_size` | numeric | `4.5` | Stratum label size |\n|  | `--missing_label` | character | `Missing` | Replacement label for blank or `NA` strata |\n|  | `--title` | character | empty | Optional plot title |\n| `-s` | `--seed` | integer | `42` | Random seed recorded for reproducibility |\n|  | `--timeout` | integer | `3600` | Maximum allowed elapsed runtime in seconds; use `0` to disable |\n\n---\n\n## Input Format\n\n### Annotation Table (`input_file`)\n\nDelimited text file where rows represent samples and each selected column is a categorical stage shown in the Sankey plot.\n\n```csv\nSampleID,risk,Responder,Subtype\nS1,High,Yes,Basal\nS2,Low,No,LumA\nS3,High,Yes,Basal\nS4,Low,No,LumB\n```\n\n**Requirements:**\n- The file must contain at least 2 columns if `--columns` is omitted.\n- Each selected column must exist in the file header.\n- Selected columns are interpreted as categorical stages and will be converted to character values.\n- Blank strings and `NA` values are replaced with `--missing_label`.\n- CSV and TSV inputs are supported.\n- Recommended: fewer than 8 unique values per stage and fewer than 5 stages total for readable plots.\n\n---\n\n## Output Files\n\n| File | Description |\n|------|-------------|\n| `table\u002Fselected_annotations.csv` | Filtered table containing only the plotted stage columns |\n| `table\u002Fsankey_lodes.csv` | Long-format lodes table used to build the Sankey plot |\n| `plot\u002F{output_prefix}.pdf` | Sankey\u002Falluvial plot as a PDF file; default filename is `sankey_plot.pdf` |\n| `data\u002Fsession_info.txt` | R session information and runtime parameters |\n\n### selected_annotations.csv\n\n| Column | Type | Description |\n|--------|------|-------------|\n| stage columns | character | One column per plotted stage in original order |\n\n### sankey_lodes.csv\n\n| Column | Type | Description |\n|--------|------|-------------|\n| `sample_id` | character | Synthetic row identifier used as the alluvium key |\n| `x` | character | Stage name |\n| `stratum` | character | Category label for the stage |\n\n---\n\n## Workflow\n\n### Step 1: Validate Input\n- Check that the input file exists and is readable.\n- Detect CSV vs TSV input.\n- Validate that at least 2 stage columns are available.\n- Validate that user-specified columns exist.\n\n### Step 2: Prepare Sankey Data\n- Subset the selected stage columns.\n- Replace missing or blank labels.\n- Add a row-level `sample_id` identifier.\n- Convert the table with `ggalluvial::to_lodes_form()`.\n\n### Step 2a: Readability Advisories\nAfter column selection, the script emits `log_warn` advisories when:\n- More than 5 stages are selected: `\"More than 5 stages selected; plot may be hard to read. Consider filtering.\"`\n- A stage has more than 8 unique values: `\"Stage \u003Cname> has \u003Cn> unique values; consider aggregating for readability.\"`\n\nThese are advisory only — the script continues and produces the plot.\n\n### Step 3: Generate Visualization\n- Build the Sankey\u002Falluvial plot with `geom_flow()` and `geom_stratum()`.\n- Render stratum labels.\n- Save the plot as PDF.\n\n### Step 4: Record Outputs\n- Save the selected annotations and lodes-format table as CSV files.\n- Save `sessionInfo()` and runtime arguments for reproducibility.\n\n---\n\n## Examples\n\n### Reproduce the Original Two-Column Plot\n\n```bash\nRscript scripts\u002Fmain.R \\\n  -i tests\u002Fdata\u002Fsample_annotations.csv \\\n  -o tests\u002Foutput \\\n  -c risk,Responder\n```\n\n### Plot Three Annotation Stages\n\n```bash\nRscript scripts\u002Fmain.R \\\n  -i tests\u002Fdata\u002Fsample_annotations.csv \\\n  -o tests\u002Foutput_three_stage \\\n  -c risk,Responder,Subtype \\\n  --title \"Risk to response transitions\"\n```\n\n### Use All Columns Automatically\n\n```bash\nRscript scripts\u002Fmain.R \\\n  -i tests\u002Fdata\u002Fminimal_annotations.csv \\\n  -o tests\u002Foutput_all_columns\n```\n\n---\n\n## Error Handling\n\n### Common Errors\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `SKILL_FILE_NOT_FOUND` | Input file does not exist | Check `--input_file` |\n| `SKILL_EMPTY_DATA` | The input file has zero rows or fewer than 2 usable columns | Provide a non-empty table with at least 2 stage columns |\n| `SKILL_MISSING_COLUMNS` | A requested stage column is absent | Correct `--columns` or fix the input header |\n| `SKILL_INVALID_PARAMETER` | Width, height, alpha, label size, or output prefix is invalid | Provide valid arguments per the Arguments table |\n| `SKILL_DEPENDENCY_MISSING` | A required R package is unavailable | Run `Rscript scripts\u002Finstall_dependencies.R` |\n| `SKILL_IO_ERROR` | Output directory cannot be created or written | Check permissions on `--output_dir` |\n\n**IF error persists**, READ: `references\u002Ftroubleshooting.md`\n\n---\n\n## Testing\n\n### Test with Sample Data\n\n```bash\nRscript scripts\u002Finstall_dependencies.R\n\nRscript scripts\u002Fmain.R --help\n\nRscript scripts\u002Fmain.R \\\n  -i tests\u002Fdata\u002Fsample_annotations.csv \\\n  -o tests\u002Foutput \\\n  -c risk,Responder,Subtype\n\nRscript tests\u002Ftest_skill.R\n\nRscript tests\u002Frun_smoke_test.R\n```\n\n### Validation Commands\n\n```bash\nls -la tests\u002Foutput\u002Ftable\nls -la tests\u002Foutput\u002Fplot\nls -la tests\u002Foutput\u002Fdata\n```\n\n---\n\n## References\n\n1. Brunson JC (2020) ggalluvial: Layered Grammar for Alluvial Plots. *Journal of Open Source Software*. doi:10.21105\u002Fjoss.02017\n2. Wickham H (2016) *ggplot2: Elegant Graphics for Data Analysis*. Springer. doi:10.1007\u002F978-3-319-24277-4\n\n**For detailed algorithm**, READ: `references\u002Falgorithm.md`\n",{"name":5,"license":15,"description":7,"skill-author":24},"AIPOCH","main","e0956dc9606356ab78468936b502e55a365282e2","specialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fsample-group-sankey-plot",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 sample-group-sankey-plot",{"tool":38,"command":39},"bunx","bunx skills add mrsonord2240\u002Fopenscience-specialists --skill sample-group-sankey-plot",{"tool":41,"command":42},"pnpm","pnpm dlx skills add mrsonord2240\u002Fopenscience-specialists --skill sample-group-sankey-plot","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fsample-group-sankey-plot\u002FSKILL.md",true,[46,52,56,60,66,70,74,78,82,88],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Falgorithm.md","REFERENCE","参考文档",2065,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fsample-group-sankey-plot\u002Freferences\u002Falgorithm.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fcli-guide.md",1894,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fsample-group-sankey-plot\u002Freferences\u002Fcli-guide.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Ftroubleshooting.md",2396,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fsample-group-sankey-plot\u002Freferences\u002Ftroubleshooting.md",{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"scripts\u002Ffunctions.R","SCRIPT","脚本",3568,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fsample-group-sankey-plot\u002Fscripts\u002Ffunctions.R",{"path":67,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":68,"sourceHtmlUrl":69},"scripts\u002Finstall_dependencies.R",1164,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fsample-group-sankey-plot\u002Fscripts\u002Finstall_dependencies.R",{"path":71,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":72,"sourceHtmlUrl":73},"scripts\u002Fmain.R",5055,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fsample-group-sankey-plot\u002Fscripts\u002Fmain.R",{"path":75,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":76,"sourceHtmlUrl":77},"scripts\u002Frun_analysis.R",2764,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fsample-group-sankey-plot\u002Fscripts\u002Frun_analysis.R",{"path":79,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":80,"sourceHtmlUrl":81},"scripts\u002Futils.R",3396,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fsample-group-sankey-plot\u002Fscripts\u002Futils.R",{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"tests\u002Fdata\u002Fsample_annotations.csv","ASSET","资产文件",130,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fsample-group-sankey-plot\u002Ftests\u002Fdata\u002Fsample_annotations.csv",{"path":89,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":92,"sourceHtmlUrl":93},"tests\u002Frun_smoke_test.R","OTHER","其他",1452,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fsample-group-sankey-plot\u002Ftests\u002Frun_smoke_test.R",[95,103,110,117,124,131],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":99,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"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":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":99,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"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":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":99,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"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":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":99,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"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":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":99,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"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":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":99,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"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",[],[]]