View source: R/open_in_pgs_catalog.R
| open_in_pgs_catalog | R Documentation | 
This function launches the web browser and opens a tab for each identifier on the PGS Catalog web graphical user interface: https://www.pgscatalog.org/.
open_in_pgs_catalog(
  identifier = NULL,
  pgs_catalog_entity = c("pgs", "pgp", "pss", "efo")
)
identifier | 
 A vector of identifiers. The identifiers can be: PGS, PGP, PSS or EFO identifiers.  | 
pgs_catalog_entity | 
 Either   | 
Returns TRUE if successful, or FALSE otherwise. But
note that this function is run for its side effect.
# Open in PGS scores Catalog Web Graphical User Interface
open_in_pgs_catalog(c('PGS000001', 'PGS000002'))
# Open PGS Catalog Publications
open_in_pgs_catalog(c('PGP000001', 'PGP000002'),
  pgs_catalog_entity = 'pgp')
# Open Sample Sets (PSS)
open_in_pgs_catalog(c('PSS000001', 'PSS000002'),
  pgs_catalog_entity = 'pss')
# Open EFO traits (EFO)
open_in_pgs_catalog(c('EFO_0001645', 'MONDO_0007254'),
  pgs_catalog_entity = 'efo')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.