greedy_map: Greedy mapping

Description Usage Arguments Value

View source: R/mapper.R

Description

Map trait name to gene if the trait name shared at least one trait_code with the gene, where trait name to trait_code is specified in map_table and gene to trait_code is specified in silver_table

Usage

1
greedy_map(map_table, silver_table, trait_code)

Arguments

map_table

a data.frame containing 'trait' as column along with 'phecode' and/or 'HPO' as columns. This table serves as the map between trait name in 'trait' column and trait codes ('phecode', 'HPO', etc). So that it is used to map trait names (in score_table) to trait code (in silver_standard).

silver_table

a data.frame where each row pairs trait in phecode, HPO to gene.

trait_code

trait code to use for mapping: 'phecode' or 'HPO'.

Value

a data.frame pairing trait name to gene


liangyy/silver-standard-performance documentation built on Dec. 5, 2019, 8:53 a.m.