Skip to contents

Pure.

Usage

monarch_parse_search(body)

Arguments

body

A parsed Monarch search response.

Value

A tibble of id, name, category, description, taxon, and source_url, one row per match. NULL when there are none.

Read the taxon

A gene symbol is not unique across species in Monarch, and a search returns the orthologs alongside the human gene under the same name. taxon is the only column that tells them apart. It is NA for a disease or a phenotype, which are not species-scoped.

Examples

body <- list(items = list(list(
  id = "HGNC:3603",
  name = "FBN1",
  category = "biolink:Gene",
  full_name = "fibrillin 1",
  in_taxon_label = "Homo sapiens"
)))
monarch_parse_search(body)
#> # A tibble: 1 × 6
#>   id        name  category     description taxon        source_url              
#>   <chr>     <chr> <chr>        <chr>       <chr>        <chr>                   
#> 1 HGNC:3603 FBN1  biolink:Gene fibrillin 1 Homo sapiens https://monarchinitiati…