meta_nodes_search_node(
  meta_node,
  id = NULL,
  name = NULL,
  limit = 10,
  full_data = TRUE,
  mode = c("table", "raw")
)

Arguments

meta_node

Name of a meta node (e.g. Gwas). Use meta_nodes_list to get the full list of meta nodes.

id

The id field of a node (e.g. "ieu-a-2" for a Gwas). Use EpiGraphDB web UI to get a sense of what those ids are for entities.

name

The name field of a node (e.g. "body mass index" for a Gwas). Use EpiGraphDB web UI to get a sense of what those names are for entities.

limit

Max number of items to retrieve.

full_data

When False, only return the id and name fields (their specific names differ in specific nodes) for a node. This is useful if you want your queries to return results faster with smaller amount of data requested.

mode

If mode = "table", returns a data frame (a tibble as per tidyverse convention). If mode = "raw", returns a raw response from EpiGraphDB API with minimal parsing done by httr.

Value

Data from GET /meta/nodes/{meta_node}/search

Examples

# Search Gwas nodes
# \dontrun{
meta_nodes_search_node(meta_node = "Gwas", name = "body mass index")
#> # A tibble: 10 × 18
#>    node.note        node._name  node.year node.mr node.author node.sex node.pmid
#>    <chr>            <chr>       <chr>     <chr>   <chr>       <chr>    <chr>    
#>  1 Dominance model… Body mass … 2016.0    0       Wood        Males a… 26961502…
#>  2 NA               Body mass … 2015.0    1       Locke AE    Females  25673413…
#>  3 NA               Body mass … 2013.0    1       Randall JC  Females  23754948…
#>  4 NA               Body mass … 2017.0    1       Akiyama M   NA       28892062…
#>  5 NA               Body mass … 2018.0    1       Hoffmann TJ NA       30108127…
#>  6 NA               Body mass … 2019.0    1       Ishigaki K  Males    28892062…
#>  7 NA               Body mass … 2015.0    1       Locke AE    Males a… 25673413…
#>  8 NA               Body mass … 2015.0    1       Locke AE    Males a… 25673413…
#>  9 NA               Body mass … 2015.0    1       Locke AE    Males    25673413…
#> 10 NA               Body mass … 2019.0    1       Ishigaki K  Males a… 28892062…
#> # … with 11 more variables: node.population <chr>, node.sample_size <chr>,
#> #   node.nsnp <chr>, node.build <chr>, node.trait <chr>, node._source <list>,
#> #   node.id <chr>, node._id <chr>, node.subcategory <chr>, node.category <chr>,
#> #   node.sd <chr>
# }