[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CVYV5H8KR3CR2RWSZ3T7HD":3,"skill-same:01M7CVYV5H8KR3CR2RWSZ3T7HD":110},{"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},"01M7CVYV5H8KR3CR2RWSZ3T7HD","gsva-analysis-and-visualization",null,"Use this skill to run GSVA or ssGSEA pathway-level differential analysis from a bulk expression matrix and a sample group file, then generate a heatmap from the saved GSVA result object. Trigger keywords: GSVA, ssGSEA, pathway enrichment, KEGG pathway analysis, MSigDB. NOT for: gene-level differential expression, single-cell analysis, methylation analysis, clinical diagnosis.","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\u002Fgsva-analysis-and-visualization\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: gsva-analysis-and-visualization\ndescription: \"Use this skill to run GSVA or ssGSEA pathway-level differential analysis from a bulk expression matrix and a sample group file, then generate a heatmap from the saved GSVA result object. Trigger keywords: GSVA, ssGSEA, pathway enrichment, KEGG pathway analysis, MSigDB. NOT for: gene-level differential expression, single-cell analysis, methylation analysis, clinical diagnosis.\"\nlicense: MIT\nskill-author: AIPOCH\n---\n\n# GSVA Analysis And Visualization\n\n## When to Use\n\nUse this skill when the user wants one of the following:\n\n- Pathway-level GSVA or ssGSEA analysis from a bulk expression matrix plus a sample group file\n- Case-vs-control or treatment-vs-control pathway enrichment comparison using GSVA plus limma\n- KEGG or MSigDB pathway analysis for bulk RNA-seq or microarray-like expression data\n- Heatmap generation from an existing `data\u002FGSVA_list.rda` result object\n- A reproducible CLI-backed GSVA workflow with saved tables, an `.rda` object, and a PDF heatmap\n\nTypical request patterns:\n\n- \"Run GSVA on my bulk RNA-seq matrix and compare case vs control\"\n- \"Use ssGSEA to score pathways and save the pathway differential results\"\n- \"Generate a KEGG pathway heatmap from my saved GSVA result\"\n- \"Do pathway enrichment with GSVA for these grouped bulk samples\"\n\n## Execution Model\n\nThis is a hybrid skill.\n\n1. Use `SKILL.md` to verify that the request is in scope.\n2. Use `scripts\u002Fmain.R` for real execution.\n3. Use `--mode analyze` to compute pathway scores and differential results.\n4. Use `--mode visualize` to reuse an existing `data\u002FGSVA_list.rda` and generate a heatmap. In visualize mode, `GSVA_list.rda` must exist in `output_dir\u002Fdata\u002F`; run `analyze` or `full` mode first if it is missing (`SKILL_FILE_NOT_FOUND` will be raised otherwise).\n5. Use `--mode full` to run analysis and visualization in one pass.\n6. Read reference files only when you need algorithm details, troubleshooting, or additional CLI examples.\n\n## When to Read External Files\n\n| Situation | File to Read | Purpose |\n|-----------|--------------|---------|\n| Need algorithm details | `references\u002Falgorithm.md` | Understand GSVA, limma, and heatmap generation logic |\n| Need to run analysis or plotting | `scripts\u002Fmain.R` | Execute the CLI entry point |\n| Encounter errors | `references\u002Ftroubleshooting.md` | Find standard error codes and fixes |\n| Need more CLI examples or the baseline execution record | `references\u002Fcli-guide.md` | Copy ready-to-run commands and review the recorded test run |\n| Need sample input files | `tests\u002Fdata\u002F` | Use the bundled demo matrix and group file |\n\n## When Not to Use\n\n- Gene-level differential expression: use `differential-expression-analysis` instead\n- Single-cell RNA-seq clustering or communication analysis: use `sc-clustering` or `cellchat`\n- Immune infiltration scoring rather than pathway enrichment: use `ssgsea-r` or `ssgsea_immune`\n- Clinical diagnosis, treatment selection, or patient-specific interpretation: do not use this skill; ask for a validated clinical workflow or human expert review\n\nIf the request falls outside these boundaries, stop and tell the user that this skill only covers bulk expression pathway-level GSVA\u002FssGSEA analysis plus downstream heatmap visualization.\n\n## Method Selection Guide\n\nChoose `--method` based on your data characteristics:\n\n- `gsva`: kernel-based enrichment scores suitable for continuous expression data with moderate-to-large sample sizes (≥ 10 samples per group recommended).\n- `ssgsea`: rank-based enrichment scores; less sensitive to outliers and more suitable for noisy data or smaller sample sizes.\n\nFor detailed methodological comparison, READ: `references\u002Falgorithm.md`\n\n## Usage\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --mode full \\\n  --input_file tests\u002Fdata\u002Fexpr_matrix.csv \\\n  --group_file tests\u002Fdata\u002Fgroup.csv \\\n  --case_group Tumor \\\n  --control_group Healthy \\\n  --species \"Homo sapiens\" \\\n  --category C2 \\\n  --subcategory KEGG \\\n  --output_dir .\u002Foutput \\\n  --seed 42\n```\n\n## Arguments\n\n| Short | Long | Type | Default | Description |\n|-------|------|------|---------|-------------|\n| `-m` | `--mode` | character | `analyze` | Run mode: `analyze`, `visualize`, or `full` |\n| `-i` | `--input_file` | character | required for `analyze`\u002F`full` | Expression matrix file (CSV or TSV, genes as rows, samples as columns) |\n| `-g` | `--group_file` | character | required for `analyze`\u002F`full` | Sample group file (CSV or TSV with sample and group columns) |\n| `-a` | `--case_group` | character | required for `analyze`\u002F`full` | Case or treatment group label |\n| `-c` | `--control_group` | character | required for `analyze`\u002F`full` | Control group label |\n| `-o` | `--output_dir` | character | `.\u002Foutput\u002F` | Output directory |\n| `-s` | `--species` | character | `Homo sapiens` | MSigDB species |\n| `-C` | `--category` | character | `C2` | MSigDB category |\n| `-S` | `--subcategory` | character | `KEGG` | MSigDB subcategory |\n|  | `--method` | character | `gsva` | GSVA method: `gsva` or `ssgsea` (see Method Selection Guide above) |\n|  | `--kcdf` | character | `Gaussian` | GSVA kernel: `Gaussian`, `Poisson`, or `none` |\n|  | `--min_sz` | integer | `2` | Minimum gene set size |\n|  | `--max_sz` | integer | `10000` | Maximum gene set size |\n|  | `--parallel_sz` | integer | `1` | Parallel worker count passed to GSVA |\n|  | `--mx_diff` | logical | `TRUE` | GSVA `mx.diff` flag |\n|  | `--tau` | double | `1` | GSVA `tau` value |\n|  | `--fdr_threshold` | double | `0.05` | FDR threshold used to select top pathways |\n|  | `--top_n` | integer | `20` | Number of pathways exported to the top score matrix |\n|  | `--seed` | integer | `42` | Random seed |\n|  | `--timeout_seconds` | integer | `0` | Optional timeout in seconds; `0` disables it |\n|  | `--plot_file` | character | `GSVA_heatmap.pdf` | Heatmap file name under `plot\u002F` (file name only; no path separators) |\n|  | `--plot_title` | character | `GSVA Enrichment Heatmap` | Heatmap title |\n|  | `--width` | double | `14` | Heatmap width in inches |\n|  | `--height` | double | `8` | Heatmap height in inches |\n|  | `--colors` | character | `#91bfdb,#ffffbf,#fc8d59` | Comma-separated heatmap colors |\n|  | `--scale` | character | `none` | Heatmap scale mode: `none`, `row`, or `column` |\n|  | `--cluster_rows` | logical | `TRUE` | Cluster heatmap rows |\n|  | `--cluster_cols` | logical | `FALSE` | Cluster heatmap columns |\n|  | `--show_rownames` | logical | `TRUE` | Show pathway names on the heatmap |\n|  | `--show_colnames` | logical | `FALSE` | Show sample names on the heatmap |\n|  | `--fontsize` | double | `10` | Base heatmap font size |\n|  | `--fontsize_row` | double | `8` | Row label font size |\n|  | `--fontsize_col` | double | `9` | Column label font size |\n|  | `--legend_cex` | double | `1` | Legend text scaling factor |\n|  | `--top_up` | integer | optional | Number of up-regulated pathways retained for plotting |\n|  | `--top_down` | integer | optional | Number of down-regulated pathways retained for plotting |\n|  | `--top_mode` | character | `both` | Heatmap subset mode: `both`, `up`, `down`, or `total` |\n|  | `--sort_by` | character | `FDR` | Pathway ranking: `FDR`, `absLFC`, or `LFC` |\n|  | `--append_stats` | logical | `FALSE` | Append `FDR` and `logFC` to heatmap labels |\n|  | `--label_max_chars` | integer | `80` | Maximum heatmap label length |\n\n## Input Format\n\n### Expression Matrix\n\n- CSV or TSV file\n- First column contains gene identifiers\n- Remaining columns are sample names\n- Values must be numeric and contain no missing values\n\nExample:\n\n```csv\ngene,S1,S2,S3,S4\nTP53,8.1,7.9,6.5,6.3\nEGFR,5.2,5.0,4.2,4.1\n```\n\nThe bundled `tests\u002Fdata\u002Fexpr_matrix.csv` is derived from the public GEO series `GSE44076` after probe-to-gene collapsing and contains the `Tumor` versus `Healthy` subset.\n\n### Group File\n\n- CSV or TSV file with a header row\n- One sample column: `sample`, `sample_name`, or `sample_id`\n- One group column: `group`, `condition`, `cluster`, or `class`\n- Sample names must match the expression matrix columns\n\nExample:\n\n```csv\nsample,group\nGSM1077746,Tumor\nGSM1077747,Tumor\nGSM1077598,Healthy\nGSM1077599,Healthy\n```\n\n## Output Files\n\n| File | Description |\n|------|-------------|\n| `table\u002FGSVA_diff.csv` | limma differential pathway results with `logFC`, `P.Value`, and `adj.P.Val` |\n| `table\u002FGSVA_enrichment_results.csv` | Full GSVA score matrix |\n| `table\u002FGSVA_enrichment_results_topN.csv` | Top pathway score matrix selected by `--top_n` and `--fdr_threshold` |\n| `data\u002FGSVA_list.rda` | Saved `gsva_result` object for downstream visualization |\n| `plot\u002FGSVA_heatmap.pdf` | Heatmap PDF generated in `visualize` or `full` mode |\n| `session_info.txt` | R session and package version information |\n| `output_manifest.txt` | Append-only manifest of generated outputs across runs in the same `output_dir` |\n| `run_record.txt` | Append-only run log with parameters, runtime, and output summaries across runs in the same `output_dir` |\n\n### table\u002FGSVA_diff.csv\n\n| Column | Type | Description |\n|--------|------|-------------|\n| `logFC` | numeric | limma-estimated pathway score difference between case and control |\n| `AveExpr` | numeric | Average pathway score across all samples |\n| `t` | numeric | Moderated t statistic from limma |\n| `P.Value` | numeric | Raw p-value from limma |\n| `adj.P.Val` | numeric | Benjamini-Hochberg adjusted p-value |\n| `B` | numeric | Log-odds that the pathway is differentially enriched |\n| `geneset` | character | Pathway identifier used in the GSVA run |\n\n## Workflow\n\n### Step 1: Validate Input\n\n- Check that the expression matrix and group file exist\n- Validate supported columns and matching sample names\n- Validate CLI ranges and mode-specific required parameters\n\n### Step 2: Run Pathway Analysis\n\n- Load MSigDB gene sets for the requested species and collection\n- Compute GSVA or ssGSEA scores for each sample\n- Fit a limma model for the case-vs-control pathway comparison\n\n### Step 3: Generate Output\n\n- Save the full score matrix, top pathway subset, and differential results to `table\u002F`\n- Save the reusable `gsva_result` object to `data\u002FGSVA_list.rda`\n- Generate the heatmap PDF in `plot\u002F` when running `visualize` or `full`\n- Append a new section to `output_manifest.txt` and `run_record.txt` for each invocation so earlier provenance is preserved when reusing one `output_dir`\n\n## Examples\n\n### Basic Usage\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --mode full \\\n  --input_file .\u002Fexpression_matrix.csv \\\n  --group_file .\u002Fgroup_info.csv \\\n  --case_group treatment \\\n  --control_group control \\\n  --output_dir .\u002Foutput\n```\n\n### With ssGSEA and Custom Parameters\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --mode analyze \\\n  --input_file .\u002Fexpression_matrix.csv \\\n  --group_file .\u002Fgroup_info.csv \\\n  --case_group treatment \\\n  --control_group control \\\n  --method ssgsea \\\n  --top_n 30 \\\n  --fdr_threshold 0.1 \\\n  --output_dir .\u002Fssgsea_output \\\n  --seed 123\n```\n\n### Reuse a Saved Result Object\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --mode visualize \\\n  --output_dir .\u002Foutput \\\n  --plot_file custom_heatmap.pdf \\\n  --top_up 10 \\\n  --top_down 10 \\\n  --top_mode both\n```\n\nFor the bundled real-data baseline record, READ: `references\u002Fcli-guide.md`\n\n## Error Handling\n\n| Error Code | Meaning | Solution |\n|------------|---------|----------|\n| `SKILL_FILE_NOT_FOUND` | Input file or saved result file is missing; in visualize mode, `GSVA_list.rda` must exist in `output_dir\u002Fdata\u002F` — run analyze or full mode first | Check the path and rerun with the correct file |\n| `SKILL_MISSING_COLUMNS` | Group file lacks a valid sample or group column | Rename the columns to a supported name |\n| `SKILL_SAMPLE_MISMATCH` | Sample names do not match between files | Align sample names before running the skill |\n| `SKILL_EMPTY_DATA` | Input matrix, gene set query, or plotting matrix is empty | Verify the input matrix and MSigDB settings |\n| `SKILL_INVALID_PARAMETER` | A CLI argument is missing or out of range | Review the parameter table and rerun |\n| `SKILL_PACKAGE_NOT_FOUND` | Required R packages are not installed | Install the missing packages listed in `references\u002Fcli-guide.md` |\n\nIf the error persists, READ: `references\u002Ftroubleshooting.md`\n\n## Input Validation\n\nThis skill accepts:\n\n- A bulk expression matrix file in CSV or TSV format with genes as rows and samples as columns\n- A sample group file with one supported sample column and one supported group column\n- A valid case\u002Fcontrol comparison for pathway-level GSVA or ssGSEA analysis\n- Optional heatmap customization parameters for visualization of a saved `GSVA_list.rda`\n\nPrivacy and data-handling note:\n\n- If your matrix or group file can be linked to patients or protected records, anonymize it before use\n- This workflow writes result tables, a saved R object, plots, and session metadata to the local `output_dir`\n- Review local output retention practices before using sensitive material\n\nIf the user's request does not involve bulk expression pathway enrichment analysis or GSVA heatmap generation — for example, asking for single-cell analysis, gene-level DE testing, methylation analysis, or clinical diagnosis — do not proceed with this workflow. Instead respond:\n\n> \"gsva-analysis-and-visualization is designed for bulk expression pathway-level GSVA\u002FssGSEA analysis and saved-result heatmap visualization. Your request appears to be outside this scope. Please provide a bulk expression matrix plus sample group file for GSVA\u002FssGSEA analysis, or use a more appropriate skill for your task.\"\n\n## Testing\n\n```bash\nRscript scripts\u002Fmain.R --help\n\nRscript tests\u002Frun_tests.R\n\nRscript scripts\u002Fmain.R \\\n  --mode full \\\n  --input_file tests\u002Fdata\u002Fexpr_matrix.csv \\\n  --group_file tests\u002Fdata\u002Fgroup.csv \\\n  --case_group Tumor \\\n  --control_group Healthy \\\n  --species \"Homo sapiens\" \\\n  --category C2 \\\n  --subcategory KEGG \\\n  --output_dir tests\u002Foutput \\\n  --seed 42\n```\n\nExpected outputs:\n\n- `tests\u002Foutput\u002Ftable\u002FGSVA_diff.csv`\n- `tests\u002Foutput\u002Ftable\u002FGSVA_enrichment_results.csv`\n- `tests\u002Foutput\u002Ftable\u002FGSVA_enrichment_results_topN.csv`\n- `tests\u002Foutput\u002Fdata\u002FGSVA_list.rda`\n- `tests\u002Foutput\u002Fplot\u002FGSVA_heatmap.pdf`\n- `tests\u002Foutput\u002Fsession_info.txt`\n- `tests\u002Foutput\u002Foutput_manifest.txt`\n- `tests\u002Foutput\u002Frun_record.txt`\n\nOptional post-check:\n\n```bash\nRscript tests\u002Ftest_skill.R tests\u002Foutput\n```\n\n`tests\u002Frun_tests.R` executes the full demo workflow, validates the expected output files, then reruns `visualize` in the same `output_dir` to confirm that `output_manifest.txt` and `run_record.txt` preserve both run sections.\n\n## References\n\n1. Hanzelmann S, Castelo R, Guinney J. (2013) GSVA: gene set variation analysis for microarray and RNA-seq data. *BMC Bioinformatics*. doi:10.1186\u002F1471-2105-14-7\n2. Ritchie ME, Phipson B, Wu D, et al. (2015) limma powers differential expression analyses for RNA-sequencing and microarray studies. *Nucleic Acids Research*. doi:10.1093\u002Fnar\u002Fgkv007\n3. Liberzon A, Birger C, Thorvaldsdottir H, et al. (2015) The Molecular Signatures Database Hallmark Gene Set Collection. *Cell Systems*. doi:10.1016\u002Fj.cels.2015.12.004\n\nFor detailed algorithm notes, READ: `references\u002Falgorithm.md`\n\n## Implementation Checklist\n\n- [x] CLI parsing with `optparse`\n- [x] `set.seed()` for reproducibility\n- [x] Only CRAN\u002FBioconductor packages\n- [x] Documented parameters match script\n- [x] `get_script_dir()` defined before any call to it\n- [x] File reading instructions in `SKILL.md`\n- [x] Test data provided in `tests\u002Fdata\u002F`\n- [x] Error handling implemented with `SKILL_*` messages\n- [x] `Rscript scripts\u002Fmain.R --help` works\n","# GSVA Analysis And Visualization\n\n## When to Use\n\nUse this skill when the user wants one of the following:\n\n- Pathway-level GSVA or ssGSEA analysis from a bulk expression matrix plus a sample group file\n- Case-vs-control or treatment-vs-control pathway enrichment comparison using GSVA plus limma\n- KEGG or MSigDB pathway analysis for bulk RNA-seq or microarray-like expression data\n- Heatmap generation from an existing `data\u002FGSVA_list.rda` result object\n- A reproducible CLI-backed GSVA workflow with saved tables, an `.rda` object, and a PDF heatmap\n\nTypical request patterns:\n\n- \"Run GSVA on my bulk RNA-seq matrix and compare case vs control\"\n- \"Use ssGSEA to score pathways and save the pathway differential results\"\n- \"Generate a KEGG pathway heatmap from my saved GSVA result\"\n- \"Do pathway enrichment with GSVA for these grouped bulk samples\"\n\n## Execution Model\n\nThis is a hybrid skill.\n\n1. Use `SKILL.md` to verify that the request is in scope.\n2. Use `scripts\u002Fmain.R` for real execution.\n3. Use `--mode analyze` to compute pathway scores and differential results.\n4. Use `--mode visualize` to reuse an existing `data\u002FGSVA_list.rda` and generate a heatmap. In visualize mode, `GSVA_list.rda` must exist in `output_dir\u002Fdata\u002F`; run `analyze` or `full` mode first if it is missing (`SKILL_FILE_NOT_FOUND` will be raised otherwise).\n5. Use `--mode full` to run analysis and visualization in one pass.\n6. Read reference files only when you need algorithm details, troubleshooting, or additional CLI examples.\n\n## When to Read External Files\n\n| Situation | File to Read | Purpose |\n|-----------|--------------|---------|\n| Need algorithm details | `references\u002Falgorithm.md` | Understand GSVA, limma, and heatmap generation logic |\n| Need to run analysis or plotting | `scripts\u002Fmain.R` | Execute the CLI entry point |\n| Encounter errors | `references\u002Ftroubleshooting.md` | Find standard error codes and fixes |\n| Need more CLI examples or the baseline execution record | `references\u002Fcli-guide.md` | Copy ready-to-run commands and review the recorded test run |\n| Need sample input files | `tests\u002Fdata\u002F` | Use the bundled demo matrix and group file |\n\n## When Not to Use\n\n- Gene-level differential expression: use `differential-expression-analysis` instead\n- Single-cell RNA-seq clustering or communication analysis: use `sc-clustering` or `cellchat`\n- Immune infiltration scoring rather than pathway enrichment: use `ssgsea-r` or `ssgsea_immune`\n- Clinical diagnosis, treatment selection, or patient-specific interpretation: do not use this skill; ask for a validated clinical workflow or human expert review\n\nIf the request falls outside these boundaries, stop and tell the user that this skill only covers bulk expression pathway-level GSVA\u002FssGSEA analysis plus downstream heatmap visualization.\n\n## Method Selection Guide\n\nChoose `--method` based on your data characteristics:\n\n- `gsva`: kernel-based enrichment scores suitable for continuous expression data with moderate-to-large sample sizes (≥ 10 samples per group recommended).\n- `ssgsea`: rank-based enrichment scores; less sensitive to outliers and more suitable for noisy data or smaller sample sizes.\n\nFor detailed methodological comparison, READ: `references\u002Falgorithm.md`\n\n## Usage\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --mode full \\\n  --input_file tests\u002Fdata\u002Fexpr_matrix.csv \\\n  --group_file tests\u002Fdata\u002Fgroup.csv \\\n  --case_group Tumor \\\n  --control_group Healthy \\\n  --species \"Homo sapiens\" \\\n  --category C2 \\\n  --subcategory KEGG \\\n  --output_dir .\u002Foutput \\\n  --seed 42\n```\n\n## Arguments\n\n| Short | Long | Type | Default | Description |\n|-------|------|------|---------|-------------|\n| `-m` | `--mode` | character | `analyze` | Run mode: `analyze`, `visualize`, or `full` |\n| `-i` | `--input_file` | character | required for `analyze`\u002F`full` | Expression matrix file (CSV or TSV, genes as rows, samples as columns) |\n| `-g` | `--group_file` | character | required for `analyze`\u002F`full` | Sample group file (CSV or TSV with sample and group columns) |\n| `-a` | `--case_group` | character | required for `analyze`\u002F`full` | Case or treatment group label |\n| `-c` | `--control_group` | character | required for `analyze`\u002F`full` | Control group label |\n| `-o` | `--output_dir` | character | `.\u002Foutput\u002F` | Output directory |\n| `-s` | `--species` | character | `Homo sapiens` | MSigDB species |\n| `-C` | `--category` | character | `C2` | MSigDB category |\n| `-S` | `--subcategory` | character | `KEGG` | MSigDB subcategory |\n|  | `--method` | character | `gsva` | GSVA method: `gsva` or `ssgsea` (see Method Selection Guide above) |\n|  | `--kcdf` | character | `Gaussian` | GSVA kernel: `Gaussian`, `Poisson`, or `none` |\n|  | `--min_sz` | integer | `2` | Minimum gene set size |\n|  | `--max_sz` | integer | `10000` | Maximum gene set size |\n|  | `--parallel_sz` | integer | `1` | Parallel worker count passed to GSVA |\n|  | `--mx_diff` | logical | `TRUE` | GSVA `mx.diff` flag |\n|  | `--tau` | double | `1` | GSVA `tau` value |\n|  | `--fdr_threshold` | double | `0.05` | FDR threshold used to select top pathways |\n|  | `--top_n` | integer | `20` | Number of pathways exported to the top score matrix |\n|  | `--seed` | integer | `42` | Random seed |\n|  | `--timeout_seconds` | integer | `0` | Optional timeout in seconds; `0` disables it |\n|  | `--plot_file` | character | `GSVA_heatmap.pdf` | Heatmap file name under `plot\u002F` (file name only; no path separators) |\n|  | `--plot_title` | character | `GSVA Enrichment Heatmap` | Heatmap title |\n|  | `--width` | double | `14` | Heatmap width in inches |\n|  | `--height` | double | `8` | Heatmap height in inches |\n|  | `--colors` | character | `#91bfdb,#ffffbf,#fc8d59` | Comma-separated heatmap colors |\n|  | `--scale` | character | `none` | Heatmap scale mode: `none`, `row`, or `column` |\n|  | `--cluster_rows` | logical | `TRUE` | Cluster heatmap rows |\n|  | `--cluster_cols` | logical | `FALSE` | Cluster heatmap columns |\n|  | `--show_rownames` | logical | `TRUE` | Show pathway names on the heatmap |\n|  | `--show_colnames` | logical | `FALSE` | Show sample names on the heatmap |\n|  | `--fontsize` | double | `10` | Base heatmap font size |\n|  | `--fontsize_row` | double | `8` | Row label font size |\n|  | `--fontsize_col` | double | `9` | Column label font size |\n|  | `--legend_cex` | double | `1` | Legend text scaling factor |\n|  | `--top_up` | integer | optional | Number of up-regulated pathways retained for plotting |\n|  | `--top_down` | integer | optional | Number of down-regulated pathways retained for plotting |\n|  | `--top_mode` | character | `both` | Heatmap subset mode: `both`, `up`, `down`, or `total` |\n|  | `--sort_by` | character | `FDR` | Pathway ranking: `FDR`, `absLFC`, or `LFC` |\n|  | `--append_stats` | logical | `FALSE` | Append `FDR` and `logFC` to heatmap labels |\n|  | `--label_max_chars` | integer | `80` | Maximum heatmap label length |\n\n## Input Format\n\n### Expression Matrix\n\n- CSV or TSV file\n- First column contains gene identifiers\n- Remaining columns are sample names\n- Values must be numeric and contain no missing values\n\nExample:\n\n```csv\ngene,S1,S2,S3,S4\nTP53,8.1,7.9,6.5,6.3\nEGFR,5.2,5.0,4.2,4.1\n```\n\nThe bundled `tests\u002Fdata\u002Fexpr_matrix.csv` is derived from the public GEO series `GSE44076` after probe-to-gene collapsing and contains the `Tumor` versus `Healthy` subset.\n\n### Group File\n\n- CSV or TSV file with a header row\n- One sample column: `sample`, `sample_name`, or `sample_id`\n- One group column: `group`, `condition`, `cluster`, or `class`\n- Sample names must match the expression matrix columns\n\nExample:\n\n```csv\nsample,group\nGSM1077746,Tumor\nGSM1077747,Tumor\nGSM1077598,Healthy\nGSM1077599,Healthy\n```\n\n## Output Files\n\n| File | Description |\n|------|-------------|\n| `table\u002FGSVA_diff.csv` | limma differential pathway results with `logFC`, `P.Value`, and `adj.P.Val` |\n| `table\u002FGSVA_enrichment_results.csv` | Full GSVA score matrix |\n| `table\u002FGSVA_enrichment_results_topN.csv` | Top pathway score matrix selected by `--top_n` and `--fdr_threshold` |\n| `data\u002FGSVA_list.rda` | Saved `gsva_result` object for downstream visualization |\n| `plot\u002FGSVA_heatmap.pdf` | Heatmap PDF generated in `visualize` or `full` mode |\n| `session_info.txt` | R session and package version information |\n| `output_manifest.txt` | Append-only manifest of generated outputs across runs in the same `output_dir` |\n| `run_record.txt` | Append-only run log with parameters, runtime, and output summaries across runs in the same `output_dir` |\n\n### table\u002FGSVA_diff.csv\n\n| Column | Type | Description |\n|--------|------|-------------|\n| `logFC` | numeric | limma-estimated pathway score difference between case and control |\n| `AveExpr` | numeric | Average pathway score across all samples |\n| `t` | numeric | Moderated t statistic from limma |\n| `P.Value` | numeric | Raw p-value from limma |\n| `adj.P.Val` | numeric | Benjamini-Hochberg adjusted p-value |\n| `B` | numeric | Log-odds that the pathway is differentially enriched |\n| `geneset` | character | Pathway identifier used in the GSVA run |\n\n## Workflow\n\n### Step 1: Validate Input\n\n- Check that the expression matrix and group file exist\n- Validate supported columns and matching sample names\n- Validate CLI ranges and mode-specific required parameters\n\n### Step 2: Run Pathway Analysis\n\n- Load MSigDB gene sets for the requested species and collection\n- Compute GSVA or ssGSEA scores for each sample\n- Fit a limma model for the case-vs-control pathway comparison\n\n### Step 3: Generate Output\n\n- Save the full score matrix, top pathway subset, and differential results to `table\u002F`\n- Save the reusable `gsva_result` object to `data\u002FGSVA_list.rda`\n- Generate the heatmap PDF in `plot\u002F` when running `visualize` or `full`\n- Append a new section to `output_manifest.txt` and `run_record.txt` for each invocation so earlier provenance is preserved when reusing one `output_dir`\n\n## Examples\n\n### Basic Usage\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --mode full \\\n  --input_file .\u002Fexpression_matrix.csv \\\n  --group_file .\u002Fgroup_info.csv \\\n  --case_group treatment \\\n  --control_group control \\\n  --output_dir .\u002Foutput\n```\n\n### With ssGSEA and Custom Parameters\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --mode analyze \\\n  --input_file .\u002Fexpression_matrix.csv \\\n  --group_file .\u002Fgroup_info.csv \\\n  --case_group treatment \\\n  --control_group control \\\n  --method ssgsea \\\n  --top_n 30 \\\n  --fdr_threshold 0.1 \\\n  --output_dir .\u002Fssgsea_output \\\n  --seed 123\n```\n\n### Reuse a Saved Result Object\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --mode visualize \\\n  --output_dir .\u002Foutput \\\n  --plot_file custom_heatmap.pdf \\\n  --top_up 10 \\\n  --top_down 10 \\\n  --top_mode both\n```\n\nFor the bundled real-data baseline record, READ: `references\u002Fcli-guide.md`\n\n## Error Handling\n\n| Error Code | Meaning | Solution |\n|------------|---------|----------|\n| `SKILL_FILE_NOT_FOUND` | Input file or saved result file is missing; in visualize mode, `GSVA_list.rda` must exist in `output_dir\u002Fdata\u002F` — run analyze or full mode first | Check the path and rerun with the correct file |\n| `SKILL_MISSING_COLUMNS` | Group file lacks a valid sample or group column | Rename the columns to a supported name |\n| `SKILL_SAMPLE_MISMATCH` | Sample names do not match between files | Align sample names before running the skill |\n| `SKILL_EMPTY_DATA` | Input matrix, gene set query, or plotting matrix is empty | Verify the input matrix and MSigDB settings |\n| `SKILL_INVALID_PARAMETER` | A CLI argument is missing or out of range | Review the parameter table and rerun |\n| `SKILL_PACKAGE_NOT_FOUND` | Required R packages are not installed | Install the missing packages listed in `references\u002Fcli-guide.md` |\n\nIf the error persists, READ: `references\u002Ftroubleshooting.md`\n\n## Input Validation\n\nThis skill accepts:\n\n- A bulk expression matrix file in CSV or TSV format with genes as rows and samples as columns\n- A sample group file with one supported sample column and one supported group column\n- A valid case\u002Fcontrol comparison for pathway-level GSVA or ssGSEA analysis\n- Optional heatmap customization parameters for visualization of a saved `GSVA_list.rda`\n\nPrivacy and data-handling note:\n\n- If your matrix or group file can be linked to patients or protected records, anonymize it before use\n- This workflow writes result tables, a saved R object, plots, and session metadata to the local `output_dir`\n- Review local output retention practices before using sensitive material\n\nIf the user's request does not involve bulk expression pathway enrichment analysis or GSVA heatmap generation — for example, asking for single-cell analysis, gene-level DE testing, methylation analysis, or clinical diagnosis — do not proceed with this workflow. Instead respond:\n\n> \"gsva-analysis-and-visualization is designed for bulk expression pathway-level GSVA\u002FssGSEA analysis and saved-result heatmap visualization. Your request appears to be outside this scope. Please provide a bulk expression matrix plus sample group file for GSVA\u002FssGSEA analysis, or use a more appropriate skill for your task.\"\n\n## Testing\n\n```bash\nRscript scripts\u002Fmain.R --help\n\nRscript tests\u002Frun_tests.R\n\nRscript scripts\u002Fmain.R \\\n  --mode full \\\n  --input_file tests\u002Fdata\u002Fexpr_matrix.csv \\\n  --group_file tests\u002Fdata\u002Fgroup.csv \\\n  --case_group Tumor \\\n  --control_group Healthy \\\n  --species \"Homo sapiens\" \\\n  --category C2 \\\n  --subcategory KEGG \\\n  --output_dir tests\u002Foutput \\\n  --seed 42\n```\n\nExpected outputs:\n\n- `tests\u002Foutput\u002Ftable\u002FGSVA_diff.csv`\n- `tests\u002Foutput\u002Ftable\u002FGSVA_enrichment_results.csv`\n- `tests\u002Foutput\u002Ftable\u002FGSVA_enrichment_results_topN.csv`\n- `tests\u002Foutput\u002Fdata\u002FGSVA_list.rda`\n- `tests\u002Foutput\u002Fplot\u002FGSVA_heatmap.pdf`\n- `tests\u002Foutput\u002Fsession_info.txt`\n- `tests\u002Foutput\u002Foutput_manifest.txt`\n- `tests\u002Foutput\u002Frun_record.txt`\n\nOptional post-check:\n\n```bash\nRscript tests\u002Ftest_skill.R tests\u002Foutput\n```\n\n`tests\u002Frun_tests.R` executes the full demo workflow, validates the expected output files, then reruns `visualize` in the same `output_dir` to confirm that `output_manifest.txt` and `run_record.txt` preserve both run sections.\n\n## References\n\n1. Hanzelmann S, Castelo R, Guinney J. (2013) GSVA: gene set variation analysis for microarray and RNA-seq data. *BMC Bioinformatics*. doi:10.1186\u002F1471-2105-14-7\n2. Ritchie ME, Phipson B, Wu D, et al. (2015) limma powers differential expression analyses for RNA-sequencing and microarray studies. *Nucleic Acids Research*. doi:10.1093\u002Fnar\u002Fgkv007\n3. Liberzon A, Birger C, Thorvaldsdottir H, et al. (2015) The Molecular Signatures Database Hallmark Gene Set Collection. *Cell Systems*. doi:10.1016\u002Fj.cels.2015.12.004\n\nFor detailed algorithm notes, READ: `references\u002Falgorithm.md`\n\n## Implementation Checklist\n\n- [x] CLI parsing with `optparse`\n- [x] `set.seed()` for reproducibility\n- [x] Only CRAN\u002FBioconductor packages\n- [x] Documented parameters match script\n- [x] `get_script_dir()` defined before any call to it\n- [x] File reading instructions in `SKILL.md`\n- [x] Test data provided in `tests\u002Fdata\u002F`\n- [x] Error handling implemented with `SKILL_*` messages\n- [x] `Rscript scripts\u002Fmain.R --help` works\n",{"name":5,"license":15,"description":7,"skill-author":24},"AIPOCH","main","e0956dc9606356ab78468936b502e55a365282e2","specialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgsva-analysis-and-visualization",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 gsva-analysis-and-visualization",{"tool":38,"command":39},"bunx","bunx skills add mrsonord2240\u002Fopenscience-specialists --skill gsva-analysis-and-visualization",{"tool":41,"command":42},"pnpm","pnpm dlx skills add mrsonord2240\u002Fopenscience-specialists --skill gsva-analysis-and-visualization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgsva-analysis-and-visualization\u002FSKILL.md",true,[46,52,56,60,66,70,74,78,82,86,90,94,98,104],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Falgorithm.md","REFERENCE","参考文档",2577,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgsva-analysis-and-visualization\u002Freferences\u002Falgorithm.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fcli-guide.md",5892,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgsva-analysis-and-visualization\u002Freferences\u002Fcli-guide.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Ftroubleshooting.md",2579,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgsva-analysis-and-visualization\u002Freferences\u002Ftroubleshooting.md",{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"scripts\u002Fcli_options.R","SCRIPT","脚本",7090,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgsva-analysis-and-visualization\u002Fscripts\u002Fcli_options.R",{"path":67,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":68,"sourceHtmlUrl":69},"scripts\u002Ffunctions.R",4495,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgsva-analysis-and-visualization\u002Fscripts\u002Ffunctions.R",{"path":71,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":72,"sourceHtmlUrl":73},"scripts\u002Fio.R",3510,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgsva-analysis-and-visualization\u002Fscripts\u002Fio.R",{"path":75,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":76,"sourceHtmlUrl":77},"scripts\u002Fmain.R",4759,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgsva-analysis-and-visualization\u002Fscripts\u002Fmain.R",{"path":79,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":80,"sourceHtmlUrl":81},"scripts\u002Fplot_helpers.R",2715,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgsva-analysis-and-visualization\u002Fscripts\u002Fplot_helpers.R",{"path":83,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":84,"sourceHtmlUrl":85},"scripts\u002Frecording.R",3435,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgsva-analysis-and-visualization\u002Fscripts\u002Frecording.R",{"path":87,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":88,"sourceHtmlUrl":89},"scripts\u002Frun_analysis.R",2315,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgsva-analysis-and-visualization\u002Fscripts\u002Frun_analysis.R",{"path":91,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":92,"sourceHtmlUrl":93},"scripts\u002Futils.R",2893,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgsva-analysis-and-visualization\u002Fscripts\u002Futils.R",{"path":95,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":96,"sourceHtmlUrl":97},"scripts\u002Fvisualization.R",3053,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgsva-analysis-and-visualization\u002Fscripts\u002Fvisualization.R",{"path":99,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":102,"sourceHtmlUrl":103},"tests\u002Fdata\u002Fgroup.csv","ASSET","资产文件",2629,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgsva-analysis-and-visualization\u002Ftests\u002Fdata\u002Fgroup.csv",{"path":105,"resourceType":106,"resourceTypeDesc":107,"sizeBytes":108,"sourceHtmlUrl":109},"tests\u002Frun_tests.R","OTHER","其他",2173,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgsva-analysis-and-visualization\u002Ftests\u002Frun_tests.R",[111,119,126,133,140,147],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":115,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"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":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":115,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"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":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":115,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"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":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":115,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"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":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":115,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"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":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":115,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"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",[],[]]