symbol_to_identifier {mgi.report.reader} | R Documentation |
Convert marker symbols to updated marker identifiers
Description
symbol_to_identifier()
remaps old marker symbols to, in-use, most up
to date marker identifiers.
Usage
symbol_to_identifier(x, report_file = NULL, n_max = Inf)
Arguments
x |
A character vector of marker symbols to be remapped. |
report_file |
The path to a MRK_List1.rpt file. Leave this as |
n_max |
Maximum number of lines to read from the |
Examples
rpt_ex01 <- report_example("MRK_List1-EX01.rpt")
read_report(report_file = rpt_ex01, report_type = "MRK_List1") |>
dplyr::select("marker_status", "marker_symbol", "marker_id_now")
# NB:
# - "1700024N20Rik" has two conflicting mappings, so maps to `NA`.
# - "Hes1" is not present in MRK_List1-EX01.rpt, so maps to `NA`.
# - "Plpbp" (official) and "Prosc" (withdrawn) both map to "MGI:1891207"
marker_symbols <- c("2200002F22Rik", "Plpbp", "Prosc", "1700024N20Rik", "Hes1")
symbol_to_identifier(x = marker_symbols, report_file = rpt_ex01)
[Package mgi.report.reader version 0.1.3 Index]