
Elastic Net Feature Selection
Use when selecting predictive genes or other molecular features from bulk expression...
Install
npx skills add aipoch/medical-research-skills --skill elastic-net-feature-selection -g -a claude-code -y- Repository
- aipoch/medical-research-skills2k
- Category
- Engineering
- Updated
- 2mo ago
- License
- MIT
- Context cost
- Mediumabout 2,731 tokens
- Runs scripts
- No, instructions only
What it does
Use when selecting predictive genes or other molecular features from bulk expression matrices for binary case-vs-control classification with elastic net logistic regression, including coefficient path and cross-validation plots. Trigger keywords: elastic net, glmnet, feature selection, binary classification, lambda.min, lambda.1se. NOT for: survival/Cox modeling, multiclass outcomes, single-cell data, or non-expression tables.
Elastic Net Feature Selection
When to Use
- Use this skill for binary case-vs-control classification on bulk expression matrices.
- Use it when you need elastic net logistic regression feature selection, coefficient paths, and
cv.glmnet-based lambda selection. - Use custom labels such as
TumorandNormalonly when the group file still contains exactly two outcome levels.
Out of Scope
- Survival or Cox modeling
- Multiclass outcomes
- Single-cell data
- Non-expression tables
Out-of-scope enforcement:
- If the group file contains any label outside the requested
case_groupandcontrol_group, the command stops withSKILL_INVALID_DATAinstead of silently dropping samples. - If either requested class is missing after validation, the command stops with
SKILL_INVALID_DATA.
When to Read External Files
| Situation | File to Read | Purpose |
|---|---|---|
| Need to understand alpha, lambda choice, or feature-selection behavior | references/algorithm.md | Elastic net logistic regression, penalty mixing, cross-validation, and coefficient selection assumptions |
| Need the authoritative executable entrypoint | scripts/main.R | Run: Rscript scripts/main.R --input_file ... --group_file ... --output_dir ... |
| Need parameter examples, smoke-test commands, or recorded local runs | references/cli-guide.md | Verified CLI examples for normal runs, conservative runs, and test-data runs |
| Need bundled sample inputs for a first run or regression test | tests/data/ | Sample expression matrix, group file, and feature list |
| Encounter errors, warnings, or timeout issues | references/troubleshooting.md | Common failures, console warning interpretation, and recovery steps |
