NOTE: this function is intended for advanced uses. Regular users are recommended to use standard query functions

cypher(query, mode = c("table", "raw"))

Arguments

query

A Cypher query.

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.

Examples

# \dontrun{
cypher("MATCH (n:Gwas) RETURN n LIMIT 2")
#> # A tibble: 2 × 20
#>   n.ncase n._name      n.year n.mr  n.author  n.sex  n.pmid n.population n.unit 
#>   <chr>   <chr>        <chr>  <chr> <chr>     <chr>  <chr>  <chr>        <chr>  
#> 1 515.0   frontotempo… 2010.0 1     Van Deer… Males… 20154… European     log od…
#> 2 NA      body mass i… 2018.0 1     Yengo, L  Males… 30124… European     SD     
#> # … with 11 more variables: n.sample_size <chr>, n.nsnp <chr>, n.build <chr>,
#> #   n.ncontrol <chr>, n.trait <chr>, n._source <list>, n.id <chr>, n._id <chr>,
#> #   n.subcategory <chr>, n.category <chr>, n.consortium <chr>
# }