calculate_pca
Control for population stratification in GWAS by performing Principal Component Analysis on PLINK genotype data.
Instructions
Perform Principal Component Analysis for population stratification. Uses PLINK files as input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plink_prefix | Yes | Path prefix for PLINK files (without .bed/.bim/.fam extension) | |
| n_components | No | Number of principal components to compute (default: 10) | |
| output_path | No | Optional path to save PCA results |