This helper function takes a vector of words
and tries to match them
with the id
and name
columns of possible gene choices.
Arguments
- words
(
character
)
containing gene IDs or names.- choices
(
data.frame
)
containingid
andname
columns of the new choices.
Examples
h_parse_genes(
c("a", "2535"),
data.frame(id = as.character(2533:2537), name = letters[1:5])
)
#> id name
#> 1 2533 a
#> 3 2535 c