nci_to_oncotree: Map NCI to OncoTree codes

View source: R/oncotree_to_nci.R

nci_to_oncotreeR 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 TRUE, one-to-many mappings are expanded into several rows in the output.

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)

maialab/mskcc.oncotree documentation built on Oct. 15, 2022, 12:01 p.m.