nci_to_oncotree {mskcc.oncotree} | R Documentation |
Map NCI to OncoTree codes
Description
This function maps National Cancer Institute Thesaurus (NCIt) codes to OncoTree codes.
Usage
nci_to_oncotree(
nci_code = NULL,
oncotree_version = "oncotree_latest_stable",
expand = FALSE
)
Arguments
nci_code |
NCI codes. |
oncotree_version |
OncoTree database release version. |
expand |
Whether to expand one-to-many mappings. If |
Value
A tibble of two variables: nci_code
and oncotree_code
.
Examples
## Not run:
# Leave `nci_code` empty to return mappings for all NCI codes
nci_to_oncotree()
# Map a few selected OncoTree codes
nci_to_oncotree(nci_code = c('C8969', 'C4862', 'C9168', 'C7967'))
# Use `expand` to make sure the column `oncotree_code` is a character vector
# and not a list-column. One-to-many mappings will result in more than row
# with `oncotree_code` values repeated.
nci_to_oncotree(nci_code = c('C8969', 'C4862', 'C9168', 'C7967'), expand =
TRUE)
## End(Not run)
[Package mskcc.oncotree version 0.1.1 Index]