get_sample_sets {quincunx} | R Documentation |
Get PGS Catalog Sample Sets
Description
Retrieves sample sets via the PGS Catalog REST API. The REST
API is queried multiple times with the criteria passed as arguments (see
below). By default all sample sets 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_sample_sets(
pss_id = NULL,
pgs_id = NULL,
set_operation = "union",
interactive = TRUE,
verbose = FALSE,
warnings = TRUE,
progress_bar = TRUE
)
Arguments
pss_id |
A character vector of PGS Catalog sample sets accession identifiers. |
pgs_id |
A |
set_operation |
Either |
interactive |
A logical. If all sample sets are requested, whether to ask interactively if we really want to proceed. |
verbose |
A |
warnings |
A |
progress_bar |
Whether to show a progress bar indicating download progress from the REST API server. |
Details
Please note that all search criteria are vectorised, thus allowing for batch mode search.
Value
A sample_sets object.
Examples
## Not run:
# Search by PGS identifier
get_sample_sets(pgs_id = 'PGS000013')
# Search by the PSS identifier
get_sample_sets(pss_id = 'PSS000068')
## End(Not run)