extract_be_content: Extracts simplified content from response.

Description Usage Arguments Value Examples

View source: R/monarchr.R

Description

Extracts simplified content from response.

Usage

1

Arguments

df

a data.frame obtained by flattening the json response's content.

Value

a tibble with just the core information of interest.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
gene <-"NCBIGene:8314"
gene <- utils::URLencode(gene, reserved = TRUE)
query <- list(rows=100, fetch_objects="true")
url <- build_monarch_url(path = list("/api/bioentity/gene",
                                     gene,
                                     "diseases/"),
                         query = query)
resp <- monarch_api(url)
resp <- jsonlite::flatten(resp$content$associations,
                          recursive=TRUE)
extract_be_content(resp)

charlieccarey/monarchr documentation built on May 11, 2018, 3:15 a.m.