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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"plink_prefix": "<plink_prefix>"
},
"name": "calculate_pca"
}
}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 |