query_hgnc: Query the HUGO Gene Nomenclature Commitee approved symbol...

Description Usage Arguments Details Value Examples

Description

'query_hgnc()' finds matches for the supplied query vector in the specified columns of the database and returns a tibble of all the matches.

Usage

1
query_hgnc(query, match_cols, return_all = FALSE)

Arguments

query

A character vector.

match_cols

A character vector. The columns in the data to look for matches with the query. In order of preference, if matches to a column are found, matches to subsequent columns are not reported by default, unless return_all is 'TRUE'.

return_all

A logical indicating whether matches to subsequent columns, after a match has already been found, should also be returned.

Details

Find which columns are available by checking 'help(hgnc)'.

Value

A tibble containing all rows of the dataframe that matched a query. The new column 'match__' contains the name of the column that matched the query for this row.

Examples

1
2
query_hgnc(c("FLG", "SGK2"),
           c("symbol", "alias_symbol", "prev_symbol"))

datarail/genebabel documentation built on Sept. 20, 2019, 3:50 p.m.