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.

References

Pletscher-Frankild et al. (2015). DISEASES: text mining and data integration of disease-gene associations. Methods 74, 83-89. doi:10.1016/j.ymeth.2014.11.020

Service documentation: https://diseases.jensenlab.org/

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