Best performance
best_performanceRetrieve the top evaluation performance for a polygenic risk score by sample size and EUR preference. Obtain effect sizes and classification metrics with display strings.
Instructions
Look up the best evaluation performance for a score (largest sample, EUR-preferred).
Returns parsed effect sizes (OR/HR/Beta) and classification metrics (AUROC/C-index) plus pre-formatted display strings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pgs_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pgs_id | Yes | PGS Catalog Score ID. | |
| found | Yes | Whether a performance row was found. | |
| n_individuals | No | Evaluation sample size. | |
| ancestry_broad | No | Evaluation cohort ancestry. | |
| or_estimate | No | Odds ratio per SD. | |
| hr_estimate | No | Hazard ratio per SD. | |
| beta_estimate | No | Beta per SD. | |
| auroc_estimate | No | AUROC. | |
| cindex_estimate | No | Harrell's C-index. | |
| effect_size | No | Formatted effect size, e.g. 'OR=1.55 [1.52-1.58]'. | |
| classification | No | Formatted classification, e.g. 'AUROC=0.72'. |