The function get_releases()
gets you information about
PGS Catalog releases; namely, the number of newly released polygenic
scores, publications and performance metrics, as well as their
respective associated identifiers (i.e., new pgs_ids
,
pgp_ids
and ppm_ids
).
Latest release of the PGS Catalog
To get information about the latest release, run
get_releases()
with default argument values:
get_releases() # Or get_releases(date = 'latest')
#> An object of class "releases"
#> Slot "releases":
#> # A tibble: 1 × 5
#> date n_pgs n_ppm n_pgp notes
#> <date> <int> <int> <int> <chr>
#> 1 2023-06-22 14 44 8 This release contains 14 new Score(s), 8 new Pub…
#>
#> Slot "pgs_ids":
#> # A tibble: 14 × 2
#> date pgs_id
#> <date> <chr>
#> 1 2023-06-22 PGS003586
#> 2 2023-06-22 PGS003587
#> 3 2023-06-22 PGS003588
#> 4 2023-06-22 PGS003747
#> # ℹ 10 more rows
#>
#> Slot "ppm_ids":
#> # A tibble: 44 × 2
#> date ppm_id
#> <date> <chr>
#> 1 2023-06-22 PPM018280
#> 2 2023-06-22 PPM018281
#> 3 2023-06-22 PPM018282
#> 4 2023-06-22 PPM018503
#> # ℹ 40 more rows
#>
#> Slot "pgp_ids":
#> # A tibble: 8 × 2
#> date pgp_id
#> <date> <chr>
#> 1 2023-06-22 PGP000462
#> 2 2023-06-22 PGP000471
#> 3 2023-06-22 PGP000472
#> 4 2023-06-22 PGP000473
#> # ℹ 4 more rows
Release by date
You can use the argument date
to select a specific date
(if a release exists for this day) in the format
"YYYY-MM-DD"
, e.g., "2020-11-20"
:
get_releases(date = '2020-11-20')
#> An object of class "releases"
#> Slot "releases":
#> # A tibble: 1 × 5
#> date n_pgs n_ppm n_pgp notes
#> <date> <int> <int> <int> <chr>
#> 1 2020-11-20 4 50 5 This release contains 4 new Score(s), 5 new Publ…
#>
#> Slot "pgs_ids":
#> # A tibble: 4 × 2
#> date pgs_id
#> <date> <chr>
#> 1 2020-11-20 PGS000340
#> 2 2020-11-20 PGS000341
#> 3 2020-11-20 PGS000342
#> 4 2020-11-20 PGS000343
#>
#> Slot "ppm_ids":
#> # A tibble: 50 × 2
#> date ppm_id
#> <date> <chr>
#> 1 2020-11-20 PPM000923
#> 2 2020-11-20 PPM000924
#> 3 2020-11-20 PPM000925
#> 4 2020-11-20 PPM000926
#> # ℹ 46 more rows
#>
#> Slot "pgp_ids":
#> # A tibble: 5 × 2
#> date pgp_id
#> <date> <chr>
#> 1 2020-11-20 PGP000107
#> 2 2020-11-20 PGP000108
#> 3 2020-11-20 PGP000109
#> 4 2020-11-20 PGP000110
#> # ℹ 1 more row
All releases
(all_releases <- get_releases(date = 'all'))
#> An object of class "releases"
#> Slot "releases":
#> # A tibble: 67 × 5
#> date n_pgs n_ppm n_pgp notes
#> <date> <int> <int> <int> <chr>
#> 1 2023-06-22 14 44 8 This release contains 14 new Score(s), 8 new Pub…
#> 2 2023-06-01 24 87 6 This release contains 24 new Score(s), 6 new Pub…
#> 3 2023-04-28 137 137 4 This release contains 137 new Score(s), 4 new Pu…
#> 4 2023-04-12 103 869 7 This release contains 103 new Score(s), 7 new Pu…
#> # ℹ 63 more rows
#>
#> Slot "pgs_ids":
#> # A tibble: 3,678 × 2
#> date pgs_id
#> <date> <chr>
#> 1 2023-06-22 PGS003586
#> 2 2023-06-22 PGS003587
#> 3 2023-06-22 PGS003588
#> 4 2023-06-22 PGS003747
#> # ℹ 3,674 more rows
#>
#> Slot "ppm_ids":
#> # A tibble: 16,236 × 2
#> date ppm_id
#> <date> <chr>
#> 1 2023-06-22 PPM018280
#> 2 2023-06-22 PPM018281
#> 3 2023-06-22 PPM018282
#> 4 2023-06-22 PPM018503
#> # ℹ 16,232 more rows
#>
#> Slot "pgp_ids":
#> # A tibble: 469 × 2
#> date pgp_id
#> <date> <chr>
#> 1 2023-06-22 PGP000462
#> 2 2023-06-22 PGP000471
#> 3 2023-06-22 PGP000472
#> 4 2023-06-22 PGP000473
#> # ℹ 465 more rows