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

cypher("MATCH (n:Gwas) RETURN n LIMIT 2")
#> # A tibble: 2 x 16 #> n.note n.access n.year n.mr n.author n.consortium n.sex n.priority #> <lgl> <chr> <chr> <chr> <chr> <lgl> <chr> <chr> #> 1 NA public 2018 1 Vosa U NA Male… 0 #> 2 NA public 2018 1 Vosa U NA Male… 0 #> # … with 8 more variables: n.population <chr>, n.unit <lgl>, #> # n.sample_size <chr>, n.nsnp <chr>, n.trait <chr>, n.id <chr>, #> # n.subcategory <lgl>, n.category <lgl>