Sample Correlation Analysis
Use when performing correlation analysis between two variables including Pearson and Spearman correlation methods. Supports command-line parameter input, automatic data format detection, parameter validation, result directory creation, and CSV or TXT format result export.
Install
npx skills add aipoch/medical-research-skills --skill sample-correlation-analysisgit 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/sample-correlation-analysis ~/.claude/skills/sample-correlation-analysisPersonal 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)
# Correlation Analysis
Use this skill to run correlation analysis on two variables from a tabular data file.
## Use This Skill When
- You need Pearson or Spearman correlation between two variables stored either as columns or as first-column row labels.
- You need a command-line workflow with parameter validation.
- You need standardized output files in CSV or TXT format.
## Primary Command
```bash
Rscript scripts/main.R \
--data_file <input_file> \
--method <pearson|spearman> \
--x_var <variable_name> \
--y_var <variable_name> \
--output_dir <output_dir>
```
## 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 |
| `--method` | No | Correlation method: `pearson` or `spearman`. Default `pearson` |
| `--x_var` | No | First variable name. It can match a column name or a first-column row label. Default `variable1` |
| `--y_var` | No | Second variable name. It can match a column name or a first-column row label. Default `variable2` |
| `--output_dir` | No | Output directory, default `./Correlation_Results` |Details
- Skill name
sample-correlation-analysis- Repository
- aipoch/medical-research-skills
- Path
awesome-med-research-skills/Data Analysis/sample-correlation-analysis/SKILL.md- License
- MIT
- Repo updated
- 17 September 2026
FAQ
What does the Sample Correlation Analysis skill do?
Use when performing correlation analysis between two variables including Pearson and Spearman correlation methods. Supports command-line parameter input, automatic data format detection, parameter validation, result directory creation, and CSV or TXT format result export.
How do I install the Sample Correlation Analysis skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add aipoch/medical-research-skills --skill sample-correlation-analysis. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Sample Correlation Analysis 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.
Sample Group Sankey Plot
2.1kaipoch/medical-research-skills
Use when generating Sankey or alluvial plots from sample annotation tables where rows are samples and selected columns are categorical stages such as risk group, response status, subtype, or cohort labels. NOT for: gene network flow analysis, continuous-value trajectories, or graph-structured pathway visualization.
Rowan
2.1kaipoch/medical-research-skills
Cloud-based quantum chemistry platform providing a Python API. Preferred for computational chemistry workflows including pKa prediction, geometry optimization, conformational search, molecular property calculations, protein-ligand docking (AutoDock Vina), and AI protein cofolding (Chai-1, Boltz-1/2). Suitable for tasks involving quantum chemistry calculations, molecular property prediction, DFT or semi-empirical methods, neural network potentials (AIMNet2), protein-ligand binding prediction, or automated computational chemistry pipelines. Provides cloud computing resources without local instal
Scanpy
2.1kaipoch/medical-research-skills
Standard single-cell RNA-seq analysis pipeline. For quality control (QC), normalization, dimensionality reduction (PCA/UMAP/t-SNE), clustering, differential expression analysis, and visualization. Best suited for exploratory single-cell transcriptomics analysis using established workflows. For deep learning models, use scvi-tools; for data format issues, use anndata.
Browse the most popular Claude skills, all data & analytics skills, or write your own with the skills generator.