extract_be_content | R Documentation |
Extracts simplified content from response.
extract_be_content(df)
df |
a data.frame obtained by flattening the json response's content. |
a tibble with just the core information of interest.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.