get_performance_metrics {quincunx} | R Documentation |
Get PGS Catalog Performance Metrics
Description
Retrieves performance metrics via the PGS Catalog REST API. The REST
API is queried multiple times with the criteria passed as arguments (see
below). By default all performance metrics that match the criteria supplied in the
arguments are retrieved: this corresponds to the default option
set_operation
set to 'union'
. If you rather have only the
associations that match simultaneously all criteria provided, then set
set_operation
to 'intersection'
.
Usage
get_performance_metrics(
ppm_id = NULL,
pgs_id = NULL,
set_operation = "union",
interactive = TRUE,
verbose = FALSE,
warnings = TRUE,
progress_bar = TRUE
)
Arguments
ppm_id |
A character vector of PGS Catalog performance metrics accession identifiers. |
pgs_id |
A |
set_operation |
Either |
interactive |
A logical. If all performance metrics are requested, whether to ask interactively if we really want to proceed. |
verbose |
A |
warnings |
A |
progress_bar |
Whether to show a progress bar as the queries are performed. |
Details
Please note that all search criteria are vectorised, thus allowing for batch mode search.
Value
A performance_metrics object.
Examples
## Not run:
# Get performance metrics catalogued with identifier 'PPM000001'
get_performance_metrics(ppm_id = 'PPM000001')
# Get performance metrics associated with polygenic score id 'PGS000001'
get_performance_metrics(pgs_id = 'PGS000001')
# To retrieve all catalogued performed metrics in PGS Catalog you simply
# leave the parameters `ppm_id` and `pgs_id` as `NULL`.
get_performance_metrics()
## End(Not run)