sample-correlation-analysis — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited sample-correlation-analysis (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Source: https://github.com/aipoch/medical-research-skills
Use this skill to run correlation analysis on two variables from a tabular data file.
Rscript scripts/main.R \
--data_file <input_file> \
--method <pearson|spearman> \
--x_var <variable_name> \
--y_var <variable_name> \
--output_dir <output_dir>optparse, data.table.Rscript -e 'install.packages(c("optparse", "data.table"), repos="https://cloud.r-project.org")'.| 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 |
--alternative | No | two.sided, less, or greater. Default two.sided |
--conf_level | No | Confidence level between 0 and 1, default 0.95 |
--output_format | No | csv or txt, default csv |
--output_prefix | No | Output filename prefix, default correlation |
Example input:
variable1,variable2
10.2,8.5
11.5,9.2
9.8,7.9scripts/main.R with the requested method and variable names.table/.If you omit --data_file, the script exits with SKILL_MISSING_INPUT.
Expected output structure:
<output_dir>/
├── table/
├── figure/
└── data/Primary result file:
table/<output_prefix>_<method>.csvtable/<output_prefix>_<method>.txtResult fields include:
methodcorrelationstatisticp_valueconf_lowconf_highsample_sizex_variabley_variablevariable_orientationpearson for linear relationships between continuous variables.spearman for monotonic relationships, non-normal data, or outlier-prone data.| Need | File |
|---|---|
| Statistical details and assumptions | references/algorithm.md |
| More CLI examples | references/cli-guide.md |
| Error diagnosis | references/troubleshooting.md |
| Main execution entry point | scripts/main.R |
| Sample test data | tests/data/ |
Pearson:
Rscript scripts/main.R \
--data_file tests/data/sample_correlation_1.csv \
--method pearson \
--x_var variable1 \
--y_var variable2 \
--output_dir tests/output_pearsonSpearman:
Rscript scripts/main.R \
--data_file tests/data/sample_correlation_3.csv \
--method spearman \
--x_var "Activated CD8 T cell" \
--y_var "Central memory CD8 T cell" \
--output_dir tests/output_spearmanRscript scripts/main.R --helpRscript scripts/main.R \
--data_file tests/data/sample_correlation_1.csv \
--method pearson \
--x_var variable1 \
--y_var variable2 \
--output_dir tests/validation_outputAfter running analysis, verify that tests/validation_output/table/correlation_pearson.csv exists.
SKILL_FILE_NOT_FOUND: Input file path is wrong or inaccessible.SKILL_MISSING_COLUMNS: One or both requested variables are missing.SKILL_INVALID_DATA: Input data is malformed or unsuitable for analysis.SKILL_INVALID_PARAMETER: An argument value is invalid.SKILL_INSUFFICIENT_DATA: Too few complete observations remain after filtering.SKILL_DEPENDENCY_MISSING: A required R package such as optparse or data.table is unavailable.If the issue is not obvious, read references/troubleshooting.md.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.