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.

2,068 stars 206 forksData & Analytics

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add aipoch/medical-research-skills --skill pca-dimensionality-reduction
Manual install
git 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-reduction

Personal 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 |
Read the full skill on GitHub

Details

Skill name
pca-dimensionality-reduction
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.1k

aipoch/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.

Research & Science206

Abstract Summarizer

2.1k

aipoch/medical-research-skills

Transform lengthy academic papers into concise, structured 250-word abstracts.

Research & Science206

Abstract Trimmer

2.1k

aipoch/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.

Research & Science206

Phylogenetic Tree Styler

2.1k

aipoch/medical-research-skills

Analyze data with `phylogenetic-tree-styler` using a reproducible workflow, explicit validation, and structured outputs for review-ready interpretation.

Data & Analytics206

Pathology Roi Selector

2.1k

aipoch/medical-research-skills

Use pathology roi selector for data analysis workflows that need structured execution, explicit assumptions, and clear output boundaries.

Data & Analytics206

Ppi Network Analysis

2.1k

aipoch/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.

Data & Analytics206

Browse the most popular Claude skills, all data & analytics skills, or write your own with the skills generator.