getpath: Query your study via the PIC-SURE API

Description Usage Arguments Value Author(s)

Description

For this beta version, it is only possible to query phenotypics data. Soon, the package will be upgraded to be able to query genotypics data from Hail.

Usage

1
getpath(env, key, var, verbose = FALSE)

Arguments

env

The URL of the environment

key

The key or the token to log in your environment

var

A vector with the variables of interest. You can put a variable, or a path, as you want. You can also use the * key if you want to use a wild card. If an argument corresponds to a node, it will return all the variables below the node

verbose

By default, verbose = FALSE. Set it to verbose = TRUE to get the log informations

subset

By default, subset = ALL and gives you back all the patients that have at least one variable of interest. See the examples for more complex subsets. !! Similarly, the "subsetting" part needs to be slightly modified to handle the "find" function from picsure.

gabe

if TRUE, will export the JSON query as a query.txt file in you working directory. By default, gabe = FALSE

Value

Returns a data.frame

Author(s)

Gregoire Versmee, Laura Versmee, Mikael Dusenne, Alba Gutierrez


gversmee/picsuRe documentation built on May 24, 2019, 9:50 a.m.