Skip to contents

Pure.

Usage

diseases_merge_channels(tables)

Arguments

tables

A list of tibbles from diseases_parse_channel(). NULL entries are ignored.

Value

A tibble of symbol, score, and channel, ordered by score, highest first. channel names the channel the winning score came from. NULL when there is nothing to combine.

This is a combining convention, not the source's own answer

DISEASES scores each channel separately and does not publish a combined figure. Taking the maximum treats curated and mined evidence as interchangeable, which suits a screen looking for any support at all and suits nothing that cares where the support came from. Use diseases_channel() and keep the channels apart if that distinction matters.

Examples

diseases_merge_channels(list(
  tibble::tibble(symbol = "NF1", protein = NA, score = 5, channel = "Knowledge"),
  tibble::tibble(symbol = "NF1", protein = NA, score = 2, channel = "Textmining")
))
#> # A tibble: 1 × 3
#>   symbol score channel  
#>   <chr>  <dbl> <chr>    
#> 1 NF1        5 Knowledge