Skip to contents

Walks the paginated index and stacks the pages. Stops at max_pages, which is a guard against an unbounded walk rather than a tuned number.

Usage

panelapp_all_panels(max_pages = 6, page_size = 100, ...)

Arguments

max_pages

Maximum pages to fetch.

page_size

Panels per page.

...

Passed to biohttp::get_json(), for example throttle.

Value

A biohttp envelope whose data is the tibble from panelapp_parse_index(), stacked across pages. A page that fails after the first is where the walk stops, keeping what was already collected; a failure on the first page is returned as-is.

References

Martin et al. (2019). PanelApp crowdsources expert knowledge to establish consensus diagnostic gene panels. Nature Genetics 51(11), 1560-1565. doi:10.1038/s41588-019-0528-2

Service documentation: https://panelapp.genomicsengland.co.uk/

Examples

# \donttest{
biohttp::body_or_null(panelapp_all_panels(max_pages = 2))
#> # A tibble: 200 × 5
#>    id    name                                       version disorders source_url
#>    <chr> <chr>                                      <chr>   <list>    <chr>     
#>  1 1207  Acute intermittent porphyria               2.3     <chr [3]> https://p…
#>  2 1141  Acute rhabdomyolysis                       3.1     <chr [3]> https://p…
#>  3 399   Additional findings health related         0.116   <chr [0]> https://p…
#>  4 933   Additional findings health related - adul… 2.4     <chr [0]> https://p…
#>  5 929   Additional findings health related - adul… 1.3     <chr [0]> https://p…
#>  6 930   Additional findings health related - chil… 1.1     <chr [0]> https://p…
#>  7 934   Additional findings health related - CNV … 2.4     <chr [0]> https://p…
#>  8 931   Additional findings health related - CNV … 1.3     <chr [0]> https://p…
#>  9 932   Additional findings health related - CNV … 1.1     <chr [0]> https://p…
#> 10 774   Additional findings reproductive carrier … 1.2     <chr [0]> https://p…
#> # ℹ 190 more rows
# }