Skip to contents

Pure.

Usage

diseases_parse_channel(body, channel = NA_character_)

Arguments

body

A parsed response from one DISEASES channel.

channel

The channel the body came from, recorded in the result.

Value

A tibble of symbol, protein, score, and channel, one row per associated gene. NULL when the channel has no associations. Rows with no symbol or a non-finite score are dropped, because neither is usable.

Examples

body <- list(
  list(ENSP00000351015 = list(name = "NF1", score = 5)),
  list()
)
diseases_parse_channel(body, "Knowledge")
#> # A tibble: 1 × 4
#>   symbol protein         score channel  
#>   <chr>  <chr>           <dbl> <chr>    
#> 1 NF1    ENSP00000351015     5 Knowledge