[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CTSF9WC8927TXC09P9ZQJM":3,"skill-same:01M7CTSF9WC8927TXC09P9ZQJM":130},{"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},"01M7CTSF9WC8927TXC09P9ZQJM","lasso-logistics-analysis",null,"Use when building a binary classification model from an expression matrix or other omics feature matrix with LASSO logistic regression, cross-validation, and coefficient path visualization. NOT for: multiclass classification, survival\u002FCox models, or ordinary linear regression.","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\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: lasso-logistics-analysis\ndescription: \"Use when building a binary classification model from an expression matrix or other omics feature matrix with LASSO logistic regression, cross-validation, and coefficient path visualization. NOT for: multiclass classification, survival\u002FCox models, or ordinary linear regression.\"\nlicense: MIT\nskill-author: AIPOCH\n---\n\n# LASSO Logistic Regression Analysis\n\n## When to Read External Files\n\n| Situation                                           | File to Read                      | Purpose                                                             |\n| --------------------------------------------------- | --------------------------------- | ------------------------------------------------------------------- |\n| **Need algorithm details**                          | `references\u002Falgorithm.md`         | LASSO objective function, cross-validation, and interpretation      |\n| **Need to run analysis**                            | `scripts\u002Fmain.R`                  | Execute: `Rscript scripts\u002Fmain.R --input_file ... --group_file ...` |\n| **Encounter errors**                                | `references\u002Ftroubleshooting.md`   | Common errors and solutions                                         |\n| **Need CLI examples**                               | `references\u002Fcli-guide.md`         | Detailed CLI usage examples                                         |\n| **Need test data**                                  | `tests\u002Fdata\u002F`                     | Sample input files for testing                                      |\n| **Need workflow implementation details**            | `scripts\u002Frun_analysis.R`          | Inspect orchestration, outputs, and file-writing behavior           |\n| **Need input-validation or error-handling details** | `scripts\u002Futils.R`, `scripts\u002Fio.R` | Inspect validation, parsing, logging, and standardized safeguards   |\n\n---\n\n## Usage\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --input_file .\u002Fexpression_matrix.csv \\\n  --group_file .\u002Fgroups.csv \\\n  --case_group case \\\n  --control_group control \\\n  --output_dir .\u002Foutput\u002F \\\n  --nfolds 10 \\\n  --timeout_seconds 1800 \\\n  --seed 42\n```\n\n---\n\n## Arguments\n\n| Short | Long                | Type      | Default      | Description                                                   |\n| ----- | ------------------- | --------- | ------------ | ------------------------------------------------------------- |\n| `-i`  | `--input_file`      | character | **required** | Expression matrix file (features as rows, samples as columns) |\n| `-g`  | `--group_file`      | character | **required** | Group file with sample and group columns                      |\n| `-c`  | `--case_group`      | character | **required** | Case class label encoded as `1`                               |\n| `-t`  | `--control_group`   | character | **required** | Control class label encoded as `0`                            |\n| `-f`  | `--feature`         | character | `NULL`       | Optional feature list file or comma-separated feature names   |\n| `-n`  | `--nfolds`          | integer   | `10`         | Cross-validation folds: `3`, `5`, `7`, `10`                   |\n|       | `--cv_title`        | character | `\"\"`         | Optional title for the cross-validation plot                  |\n|       | `--path_title`      | character | `\"\"`         | Optional title for the coefficient path plot                  |\n|       | `--timeout_seconds` | integer   | `1800`       | Maximum elapsed runtime in seconds                            |\n| `-o`  | `--output_dir`      | character | `.\u002Foutput\u002F`  | Output directory                                              |\n| `-s`  | `--seed`            | integer   | `42`         | Random seed for reproducibility                               |\n\n---\n\n## Input Format\n\n### Expression Matrix (`input_file`)\n\nFeatures as rows, samples as columns, CSV or TSV format with feature IDs in the first column.\n\n```csv\n,Sample01,Sample02,Sample03\nTSPAN6,1.8479,1.8318,3.8276\nTNMD,0.0349,0.0533,1.3889\n```\n\n### Group File (`group_file`)\n\nCSV or TSV with sample IDs and binary-group labels.\n\n```csv\nsample,group\nSample01,case\nSample02,control\nSample03,case\n```\n\n### Optional Feature File (`feature`)\n\nOne feature per line, or pass a comma-separated feature list directly on the CLI.\n\n```text\nTNMD\nDPM1\nSCYL3\n```\n\n---\n\n## Output Files\n\n| File                           | Description                                                               |\n| ------------------------------ | ------------------------------------------------------------------------- |\n| `coefficient.csv`              | All coefficients at `lambda.min`                                          |\n| `feature_matrix.csv`           | Sample-level matrix with original group labels and binary event column    |\n| `selected_features.txt`        | Non-zero features at `lambda.min` excluding the intercept, when available |\n| `missing_features.txt`         | Requested features not found in the matrix, when applicable               |\n| `lasso_lambda_binary_plot.pdf` | Cross-validation curve                                                    |\n| `lasso_var_binary_plot.pdf`    | Coefficient path plot                                                     |\n| `session_info.txt`             | R session and package version info                                        |\n\n---\n\n## Workflow\n\n### Step 1: Validate Input\n\n**WHEN checking validation rules or parsing behavior**, READ: `scripts\u002Futils.R` and `scripts\u002Fio.R`\n\n- Check file existence\n- Read expression matrix and group file\n- Verify samples match between files\n- Ensure both classes are present with at least 2 samples per class\n\n### Step 2: Prepare Modeling Matrix\n\n**WHEN checking class encoding or feature filtering behavior**, READ: `scripts\u002Fmodeling.R`\n\n- Encode `case_group` as `1` and `control_group` as `0`\n- Optionally restrict to a user-supplied feature panel\n- Transpose expression data to sample-by-feature format\n\n### Step 3: Fit LASSO Logistic Regression\n\n**WHEN understanding the statistical method or lambda selection**, READ: `references\u002Falgorithm.md`\n\n- Train a binomial `glmnet` model with `alpha = 1`\n- Run `cv.glmnet` to select the optimal lambda\n- Extract coefficients at `lambda.min`\n\n### Step 4: Save Results and Visualizations\n\n**WHEN checking output generation or plot behavior**, READ: `scripts\u002Frun_analysis.R` and `scripts\u002Fplotting.R`\n\n- Save flat output files directly into `output_dir`\n- Generate cross-validation and coefficient path PDF plots\n- Leave plot titles empty by default unless the user provides custom titles\n\n---\n\n## Methods\n\n### LASSO Logistic Regression\n\nThe model minimizes binomial deviance with an L1 penalty, shrinking weak coefficients to zero and performing embedded feature selection.\n\n### Cross-Validation\n\n`cv.glmnet` evaluates candidate lambda values across `nfolds` folds and reports `lambda.min` and `lambda.1se`.\n\n---\n\n## Examples\n\n### Basic Usage\n\n```bash\nRscript scripts\u002Fmain.R \\\n  -i .\u002Fexpression_matrix.csv \\\n  -g .\u002Fgroups.csv \\\n  -c case \\\n  -t control \\\n  -o .\u002Foutput\n```\n\n### Use a Feature Panel\n\n```bash\nRscript scripts\u002Fmain.R \\\n  -i .\u002Fexpression_matrix.csv \\\n  -g .\u002Fgroups.csv \\\n  -c case \\\n  -t control \\\n  -f .\u002Fgenes.txt \\\n  -o .\u002Foutput\n```\n\n### Custom Folds and Seed\n\n```bash\nRscript scripts\u002Fmain.R \\\n  -i .\u002Fexpression_matrix.csv \\\n  -g .\u002Fgroups.csv \\\n  -c case \\\n  -t control \\\n  -n 5 \\\n  --timeout_seconds 900 \\\n  -s 123 \\\n  -o .\u002Foutput\n```\n\n### Custom Plot Titles\n\n```bash\nRscript scripts\u002Fmain.R \\\n  -i .\u002Fexpression_matrix.csv \\\n  -g .\u002Fgroups.csv \\\n  -c case \\\n  -t control \\\n  --cv_title \"LASSO Cross-Validation\" \\\n  --path_title \"LASSO Coefficient Paths\" \\\n  --timeout_seconds 1200 \\\n  -o .\u002Foutput\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 file path                                         |\n| `SKILL_EMPTY_FILE`         | An input file exists but contains no data             | Verify the file is not empty                            |\n| `SKILL_PARSE_ERROR`        | The input file cannot be parsed as CSV or TSV         | Check delimiters, headers, and encoding                 |\n| `SKILL_FILE_WRITE_ERROR`   | The output directory cannot be created or written     | Check output path and permissions                       |\n| `SKILL_EMPTY_DATA`         | The loaded table has no usable rows or columns        | Verify that the input file contains valid data          |\n| `SKILL_MISSING_COLUMNS`    | The group file does not provide the required columns  | Provide sample and group columns                        |\n| `SKILL_INVALID_TYPE`       | A parameter or data field has the wrong type          | Ensure numeric fields are numeric and strings are valid |\n| `SKILL_SAMPLE_MISMATCH`    | Sample IDs differ between matrix and group file       | Make names match exactly                                |\n| `SKILL_INVALID_GROUP`      | Case\u002Fcontrol labels not found in group file           | Check `--case_group` and `--control_group`              |\n| `SKILL_INVALID_DATA`       | Too few classes, samples, or valid features           | Review input structure and feature list                 |\n| `SKILL_INVALID_PARAMETER`  | Unsupported `nfolds` or empty parameter               | Use documented argument values                          |\n| `SKILL_DEPENDENCY_MISSING` | Required R package not installed                      | Install missing CRAN package                            |\n| `SKILL_TIMEOUT`            | Analysis exceeded the configured time limit           | Reduce feature count or increase `--timeout_seconds`    |\n| `SKILL_MEMORY_ERROR`       | The runtime environment cannot allocate enough memory | Reduce matrix size or available workload                |\n| `SKILL_RUNTIME_ERROR`      | An unexpected runtime error occurred                  | Review the exact console error and retry                |\n\n**IF error persists**, READ: `references\u002Ftroubleshooting.md`\n\n---\n\n## Testing\n\n### Test with Sample Data\n\n```bash\n# Check help\nRscript scripts\u002Fmain.R --help\n\n# Run with sample data\nRscript scripts\u002Fmain.R \\\n  -i tests\u002Fdata\u002Fexpression_matrix.csv \\\n  -g tests\u002Fdata\u002Fgroups.csv \\\n  -c case \\\n  -t control \\\n  -f tests\u002Fdata\u002Fgenes.csv \\\n  --timeout_seconds 1800 \\\n  -o tests\u002Foutput\n```\n\n### Validation Commands\n\n```bash\n# Check coefficient output\nls -la tests\u002Foutput\u002Fcoefficient.csv\n\n# Check plots exist\nls -la tests\u002Foutput\u002Flasso_lambda_binary_plot.pdf\nls -la tests\u002Foutput\u002Flasso_var_binary_plot.pdf\n```\n\n---\n\n## Implementation Checklist\n\n- [x] CLI parsing with `optparse`\n- [x] `set.seed()` for reproducibility\n- [x] `requireNamespace()` dependency checks\n- [x] Session info recording\n- [x] Timeout control with `--timeout_seconds`\n- [x] Temp file cleanup\n- [x] File reading instructions in SKILL.md\n- [x] Modular script structure (\u003C150 lines per file)\n- [x] Test data provided\n- [x] Error handling with SKILL\\_\\* codes\n- [x] Scripts in `scripts\u002F` directory\n- [x] References in `references\u002F` directory\n\n---\n\n_Last updated: 2026-04-17 | Version: 1.0.0_\n","# LASSO Logistic Regression Analysis\n\n## When to Read External Files\n\n| Situation                                           | File to Read                      | Purpose                                                             |\n| --------------------------------------------------- | --------------------------------- | ------------------------------------------------------------------- |\n| **Need algorithm details**                          | `references\u002Falgorithm.md`         | LASSO objective function, cross-validation, and interpretation      |\n| **Need to run analysis**                            | `scripts\u002Fmain.R`                  | Execute: `Rscript scripts\u002Fmain.R --input_file ... --group_file ...` |\n| **Encounter errors**                                | `references\u002Ftroubleshooting.md`   | Common errors and solutions                                         |\n| **Need CLI examples**                               | `references\u002Fcli-guide.md`         | Detailed CLI usage examples                                         |\n| **Need test data**                                  | `tests\u002Fdata\u002F`                     | Sample input files for testing                                      |\n| **Need workflow implementation details**            | `scripts\u002Frun_analysis.R`          | Inspect orchestration, outputs, and file-writing behavior           |\n| **Need input-validation or error-handling details** | `scripts\u002Futils.R`, `scripts\u002Fio.R` | Inspect validation, parsing, logging, and standardized safeguards   |\n\n---\n\n## Usage\n\n```bash\nRscript scripts\u002Fmain.R \\\n  --input_file .\u002Fexpression_matrix.csv \\\n  --group_file .\u002Fgroups.csv \\\n  --case_group case \\\n  --control_group control \\\n  --output_dir .\u002Foutput\u002F \\\n  --nfolds 10 \\\n  --timeout_seconds 1800 \\\n  --seed 42\n```\n\n---\n\n## Arguments\n\n| Short | Long                | Type      | Default      | Description                                                   |\n| ----- | ------------------- | --------- | ------------ | ------------------------------------------------------------- |\n| `-i`  | `--input_file`      | character | **required** | Expression matrix file (features as rows, samples as columns) |\n| `-g`  | `--group_file`      | character | **required** | Group file with sample and group columns                      |\n| `-c`  | `--case_group`      | character | **required** | Case class label encoded as `1`                               |\n| `-t`  | `--control_group`   | character | **required** | Control class label encoded as `0`                            |\n| `-f`  | `--feature`         | character | `NULL`       | Optional feature list file or comma-separated feature names   |\n| `-n`  | `--nfolds`          | integer   | `10`         | Cross-validation folds: `3`, `5`, `7`, `10`                   |\n|       | `--cv_title`        | character | `\"\"`         | Optional title for the cross-validation plot                  |\n|       | `--path_title`      | character | `\"\"`         | Optional title for the coefficient path plot                  |\n|       | `--timeout_seconds` | integer   | `1800`       | Maximum elapsed runtime in seconds                            |\n| `-o`  | `--output_dir`      | character | `.\u002Foutput\u002F`  | Output directory                                              |\n| `-s`  | `--seed`            | integer   | `42`         | Random seed for reproducibility                               |\n\n---\n\n## Input Format\n\n### Expression Matrix (`input_file`)\n\nFeatures as rows, samples as columns, CSV or TSV format with feature IDs in the first column.\n\n```csv\n,Sample01,Sample02,Sample03\nTSPAN6,1.8479,1.8318,3.8276\nTNMD,0.0349,0.0533,1.3889\n```\n\n### Group File (`group_file`)\n\nCSV or TSV with sample IDs and binary-group labels.\n\n```csv\nsample,group\nSample01,case\nSample02,control\nSample03,case\n```\n\n### Optional Feature File (`feature`)\n\nOne feature per line, or pass a comma-separated feature list directly on the CLI.\n\n```text\nTNMD\nDPM1\nSCYL3\n```\n\n---\n\n## Output Files\n\n| File                           | Description                                                               |\n| ------------------------------ | ------------------------------------------------------------------------- |\n| `coefficient.csv`              | All coefficients at `lambda.min`                                          |\n| `feature_matrix.csv`           | Sample-level matrix with original group labels and binary event column    |\n| `selected_features.txt`        | Non-zero features at `lambda.min` excluding the intercept, when available |\n| `missing_features.txt`         | Requested features not found in the matrix, when applicable               |\n| `lasso_lambda_binary_plot.pdf` | Cross-validation curve                                                    |\n| `lasso_var_binary_plot.pdf`    | Coefficient path plot                                                     |\n| `session_info.txt`             | R session and package version info                                        |\n\n---\n\n## Workflow\n\n### Step 1: Validate Input\n\n**WHEN checking validation rules or parsing behavior**, READ: `scripts\u002Futils.R` and `scripts\u002Fio.R`\n\n- Check file existence\n- Read expression matrix and group file\n- Verify samples match between files\n- Ensure both classes are present with at least 2 samples per class\n\n### Step 2: Prepare Modeling Matrix\n\n**WHEN checking class encoding or feature filtering behavior**, READ: `scripts\u002Fmodeling.R`\n\n- Encode `case_group` as `1` and `control_group` as `0`\n- Optionally restrict to a user-supplied feature panel\n- Transpose expression data to sample-by-feature format\n\n### Step 3: Fit LASSO Logistic Regression\n\n**WHEN understanding the statistical method or lambda selection**, READ: `references\u002Falgorithm.md`\n\n- Train a binomial `glmnet` model with `alpha = 1`\n- Run `cv.glmnet` to select the optimal lambda\n- Extract coefficients at `lambda.min`\n\n### Step 4: Save Results and Visualizations\n\n**WHEN checking output generation or plot behavior**, READ: `scripts\u002Frun_analysis.R` and `scripts\u002Fplotting.R`\n\n- Save flat output files directly into `output_dir`\n- Generate cross-validation and coefficient path PDF plots\n- Leave plot titles empty by default unless the user provides custom titles\n\n---\n\n## Methods\n\n### LASSO Logistic Regression\n\nThe model minimizes binomial deviance with an L1 penalty, shrinking weak coefficients to zero and performing embedded feature selection.\n\n### Cross-Validation\n\n`cv.glmnet` evaluates candidate lambda values across `nfolds` folds and reports `lambda.min` and `lambda.1se`.\n\n---\n\n## Examples\n\n### Basic Usage\n\n```bash\nRscript scripts\u002Fmain.R \\\n  -i .\u002Fexpression_matrix.csv \\\n  -g .\u002Fgroups.csv \\\n  -c case \\\n  -t control \\\n  -o .\u002Foutput\n```\n\n### Use a Feature Panel\n\n```bash\nRscript scripts\u002Fmain.R \\\n  -i .\u002Fexpression_matrix.csv \\\n  -g .\u002Fgroups.csv \\\n  -c case \\\n  -t control \\\n  -f .\u002Fgenes.txt \\\n  -o .\u002Foutput\n```\n\n### Custom Folds and Seed\n\n```bash\nRscript scripts\u002Fmain.R \\\n  -i .\u002Fexpression_matrix.csv \\\n  -g .\u002Fgroups.csv \\\n  -c case \\\n  -t control \\\n  -n 5 \\\n  --timeout_seconds 900 \\\n  -s 123 \\\n  -o .\u002Foutput\n```\n\n### Custom Plot Titles\n\n```bash\nRscript scripts\u002Fmain.R \\\n  -i .\u002Fexpression_matrix.csv \\\n  -g .\u002Fgroups.csv \\\n  -c case \\\n  -t control \\\n  --cv_title \"LASSO Cross-Validation\" \\\n  --path_title \"LASSO Coefficient Paths\" \\\n  --timeout_seconds 1200 \\\n  -o .\u002Foutput\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 file path                                         |\n| `SKILL_EMPTY_FILE`         | An input file exists but contains no data             | Verify the file is not empty                            |\n| `SKILL_PARSE_ERROR`        | The input file cannot be parsed as CSV or TSV         | Check delimiters, headers, and encoding                 |\n| `SKILL_FILE_WRITE_ERROR`   | The output directory cannot be created or written     | Check output path and permissions                       |\n| `SKILL_EMPTY_DATA`         | The loaded table has no usable rows or columns        | Verify that the input file contains valid data          |\n| `SKILL_MISSING_COLUMNS`    | The group file does not provide the required columns  | Provide sample and group columns                        |\n| `SKILL_INVALID_TYPE`       | A parameter or data field has the wrong type          | Ensure numeric fields are numeric and strings are valid |\n| `SKILL_SAMPLE_MISMATCH`    | Sample IDs differ between matrix and group file       | Make names match exactly                                |\n| `SKILL_INVALID_GROUP`      | Case\u002Fcontrol labels not found in group file           | Check `--case_group` and `--control_group`              |\n| `SKILL_INVALID_DATA`       | Too few classes, samples, or valid features           | Review input structure and feature list                 |\n| `SKILL_INVALID_PARAMETER`  | Unsupported `nfolds` or empty parameter               | Use documented argument values                          |\n| `SKILL_DEPENDENCY_MISSING` | Required R package not installed                      | Install missing CRAN package                            |\n| `SKILL_TIMEOUT`            | Analysis exceeded the configured time limit           | Reduce feature count or increase `--timeout_seconds`    |\n| `SKILL_MEMORY_ERROR`       | The runtime environment cannot allocate enough memory | Reduce matrix size or available workload                |\n| `SKILL_RUNTIME_ERROR`      | An unexpected runtime error occurred                  | Review the exact console error and retry                |\n\n**IF error persists**, READ: `references\u002Ftroubleshooting.md`\n\n---\n\n## Testing\n\n### Test with Sample Data\n\n```bash\n# Check help\nRscript scripts\u002Fmain.R --help\n\n# Run with sample data\nRscript scripts\u002Fmain.R \\\n  -i tests\u002Fdata\u002Fexpression_matrix.csv \\\n  -g tests\u002Fdata\u002Fgroups.csv \\\n  -c case \\\n  -t control \\\n  -f tests\u002Fdata\u002Fgenes.csv \\\n  --timeout_seconds 1800 \\\n  -o tests\u002Foutput\n```\n\n### Validation Commands\n\n```bash\n# Check coefficient output\nls -la tests\u002Foutput\u002Fcoefficient.csv\n\n# Check plots exist\nls -la tests\u002Foutput\u002Flasso_lambda_binary_plot.pdf\nls -la tests\u002Foutput\u002Flasso_var_binary_plot.pdf\n```\n\n---\n\n## Implementation Checklist\n\n- [x] CLI parsing with `optparse`\n- [x] `set.seed()` for reproducibility\n- [x] `requireNamespace()` dependency checks\n- [x] Session info recording\n- [x] Timeout control with `--timeout_seconds`\n- [x] Temp file cleanup\n- [x] File reading instructions in SKILL.md\n- [x] Modular script structure (\u003C150 lines per file)\n- [x] Test data provided\n- [x] Error handling with SKILL\\_\\* codes\n- [x] Scripts in `scripts\u002F` directory\n- [x] References in `references\u002F` directory\n\n---\n\n_Last updated: 2026-04-17 | Version: 1.0.0_\n",{"name":5,"license":15,"description":7,"skill-author":24},"AIPOCH","main","e0956dc9606356ab78468936b502e55a365282e2","specialists\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis",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 lasso-logistics-analysis",{"tool":38,"command":39},"bunx","bunx skills add mrsonord2240\u002Fopenscience-specialists --skill lasso-logistics-analysis",{"tool":41,"command":42},"pnpm","pnpm dlx skills add mrsonord2240\u002Fopenscience-specialists --skill lasso-logistics-analysis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis\u002FSKILL.md",true,[46,52,56,60,66,70,74,78,82,86,90,94,100,104,108,114,118,122,126],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Falgorithm.md","REFERENCE","参考文档",1790,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis\u002Freferences\u002Falgorithm.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fcli-guide.md",4302,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis\u002Freferences\u002Fcli-guide.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Ftroubleshooting.md",6691,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis\u002Freferences\u002Ftroubleshooting.md",{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"scripts\u002Fcli_utils.R","SCRIPT","脚本",4419,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis\u002Fscripts\u002Fcli_utils.R",{"path":67,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":68,"sourceHtmlUrl":69},"scripts\u002Fio.R",3414,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis\u002Fscripts\u002Fio.R",{"path":71,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":72,"sourceHtmlUrl":73},"scripts\u002Fmain.R",1731,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis\u002Fscripts\u002Fmain.R",{"path":75,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":76,"sourceHtmlUrl":77},"scripts\u002Fmodeling.R",2522,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis\u002Fscripts\u002Fmodeling.R",{"path":79,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":80,"sourceHtmlUrl":81},"scripts\u002Fplotting.R",586,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis\u002Fscripts\u002Fplotting.R",{"path":83,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":84,"sourceHtmlUrl":85},"scripts\u002Frun_analysis.R",3773,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis\u002Fscripts\u002Frun_analysis.R",{"path":87,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":88,"sourceHtmlUrl":89},"scripts\u002Fruntime_utils.R",2419,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis\u002Fscripts\u002Fruntime_utils.R",{"path":91,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":92,"sourceHtmlUrl":93},"scripts\u002Futils.R",2285,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis\u002Fscripts\u002Futils.R",{"path":95,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":98,"sourceHtmlUrl":99},"tests\u002Fdata\u002Fexpression_matrix.csv","ASSET","资产文件",48077,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis\u002Ftests\u002Fdata\u002Fexpression_matrix.csv",{"path":101,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":102,"sourceHtmlUrl":103},"tests\u002Fdata\u002Fgenes.csv",56,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis\u002Ftests\u002Fdata\u002Fgenes.csv",{"path":105,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":106,"sourceHtmlUrl":107},"tests\u002Fdata\u002Fgroups.csv",633,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis\u002Ftests\u002Fdata\u002Fgroups.csv",{"path":109,"resourceType":110,"resourceTypeDesc":111,"sizeBytes":112,"sourceHtmlUrl":113},"tests\u002Frun_tests.R","OTHER","其他",770,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis\u002Ftests\u002Frun_tests.R",{"path":115,"resourceType":110,"resourceTypeDesc":111,"sizeBytes":116,"sourceHtmlUrl":117},"tests\u002Ftestthat.R",885,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis\u002Ftests\u002Ftestthat.R",{"path":119,"resourceType":110,"resourceTypeDesc":111,"sizeBytes":120,"sourceHtmlUrl":121},"tests\u002Ftestthat\u002Fhelper-load-scripts.R",446,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis\u002Ftests\u002Ftestthat\u002Fhelper-load-scripts.R",{"path":123,"resourceType":110,"resourceTypeDesc":111,"sizeBytes":124,"sourceHtmlUrl":125},"tests\u002Ftestthat\u002Fsetup.R",247,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis\u002Ftests\u002Ftestthat\u002Fsetup.R",{"path":127,"resourceType":110,"resourceTypeDesc":111,"sizeBytes":128,"sourceHtmlUrl":129},"tests\u002Ftestthat\u002Ftest-standardization.R",2189,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Fclinical-prediction-model-specialist\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Flasso-logistics-analysis\u002Ftests\u002Ftestthat\u002Ftest-standardization.R",[131,139,146,153,160,167],{"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":135,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"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":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":135,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":145,"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":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":135,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"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":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":135,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"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":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":135,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"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":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":135,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"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",[],[]]