Pca Dimensionality Reduction
Use when performing PCA principal component dimensionality reduction on tabular numeric data. Supports command-line parameter input, automatic numeric feature selection, parameter validation, result directory creation, and CSV or TXT format result export.
Install
npx skills add aipoch/medical-research-skills --skill pca-dimensionality-reductiongit clone --depth 1 https://github.com/aipoch/medical-research-skills.git /tmp/medical-research-skills
mkdir -p ~/.claude/skills
cp -r /tmp/medical-research-skills/awesome-med-research-skills/Data Analysis/pca-dimensionality-reduction ~/.claude/skills/pca-dimensionality-reductionPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
> **Source**: [https://github.com/aipoch/medical-research-skills](https://github.com/aipoch/medical-research-skills)
# PCA Dimensionality Reduction Analysis
Use this skill to run principal component analysis on a tabular dataset and export explained variance, sample scores, feature loadings, and diagnostic figures.
## Use This Skill When
- You need to reduce multiple numeric variables into a smaller set of principal components.
- You need a command-line PCA workflow with parameter validation.
- You need standardized output files for downstream analysis.
## Primary Command
```bash
Rscript scripts/main.R \
--data_file <input_file> \
--output_dir <output_dir> \
--feature_columns <comma_separated_numeric_columns>
```
## Prerequisites
- `Rscript` is available in the shell.
- Required R packages: `optparse`, `data.table`.
- Install missing packages with `Rscript -e 'install.packages(c("optparse", "data.table"), repos="https://cloud.r-project.org")'`.
## Core Arguments
| Argument | Required | Description |
|----------|----------|-------------|
| `--data_file` | Yes | Input data file in CSV, TXT, or TSV format |
| `--output_dir` | No | Output directory, default `./PCA_Results` |
| `--feature_columns` | No | Comma-separated numeric feature columns. Default uses all numeric columns except ID/group columns |
| `--sample_id_column` | No | Optional sample ID column. If omitted and the first column is non-numeric with unique values, it is used automatically |Details
- Skill name
pca-dimensionality-reduction- Repository
- aipoch/medical-research-skills
- Path
awesome-med-research-skills/Data Analysis/pca-dimensionality-reduction/SKILL.md- License
- MIT
- Repo updated
- 17 September 2026
FAQ
What does the Pca Dimensionality Reduction skill do?
Use when performing PCA principal component dimensionality reduction on tabular numeric data. Supports command-line parameter input, automatic numeric feature selection, parameter validation, result directory creation, and CSV or TXT format result export.
How do I install the Pca Dimensionality Reduction skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add aipoch/medical-research-skills --skill pca-dimensionality-reduction. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Pca Dimensionality Reduction popular?
It lives in aipoch/medical-research-skills, which has 2,068 GitHub stars and 206 forks.
Related skills
Clinicaltrials Database
2.1kaipoch/medical-research-skills
Query ClinicalTrials.gov via API v2. Search trials by condition, drug, location, status, or phase. Retrieve trial details by NCT ID, export data, for clinical research and patient matching.
Abstract Summarizer
2.1kaipoch/medical-research-skills
Transform lengthy academic papers into concise, structured 250-word abstracts.
Abstract Trimmer
2.1kaipoch/medical-research-skills
Precision editing tool that reduces abstract word count through intelligent compression techniques, maintaining scientific rigor while meeting strict journal and conference requirements.
Phylogenetic Tree Styler
2.1kaipoch/medical-research-skills
Analyze data with `phylogenetic-tree-styler` using a reproducible workflow, explicit validation, and structured outputs for review-ready interpretation.
Pathology Roi Selector
2.1kaipoch/medical-research-skills
Use pathology roi selector for data analysis workflows that need structured execution, explicit assumptions, and clear output boundaries.
Ppi Network Analysis
2.1kaipoch/medical-research-skills
Use when you need a standardized R CLI workflow to build a protein-protein interaction network from a local gene list and an offline STRING cache, export node and edge tables, and render a reproducible PDF network plot. NOT for online API fetching, arbitrary graph databases, multi-omics integration, or non-STRING interaction sources.
Browse the most popular Claude skills, all data & analytics skills, or write your own with the skills generator.