Querying OncoTree

Introduction

OncoTree is a standardized classification system used in cancer research and clinical practice to categorize different types of cancer based on their tissue of origin, molecular characteristics, and other relevant factors. Developed by Memorial Sloan Kettering Cancer Center (MSK), OncoTree provides a hierarchical framework that organizes cancer types into a structured tree-like diagram.

  • provides a standardized classification system for categorizing different types of cancer based on their tissue of origin, molecular characteristics, and other relevant factors.
  • provides a hierarchical framework that organizes cancer types into a structured tree-like diagram.
  • useful for ensuring consistency in how cancer types are classified and reported across different studies and clinical settings.

Licensing

OncoTree is licensed under CC BY 4.0. Source: https://github.com/cBioPortal/oncotree

Setup

library(AnnotationGx)

Querying OncoTree

AnnotationGx provides a set of functions for querying OncoTree to retrieve three types of information: - OncoTree release versions - Main cancer types - Tumor types

OncoTree release versions

The getOncotreeVersions function retrieves the available OncoTree release.

getOncotreeVersions()
#>                 api_identifier
#>                         <char>
#>  1:     oncotree_latest_stable
#>  2:        oncotree_2026_11_20
#>  3:        oncotree_2025_10_03
#>  4:        oncotree_2025_04_08
#>  5:       oncotree_development
#>  6: oncotree_candidate_release
#>  7:        oncotree_2021_11_02
#>  8:        oncotree_2020_10_01
#>  9:        oncotree_2020_04_01
#> 10:        oncotree_2020_02_06
#> 11:        oncotree_2020_02_01
#> 12:        oncotree_2019_12_01
#> 13:        oncotree_2019_08_01
#> 14:        oncotree_2019_05_01
#> 15:        oncotree_2019_03_01
#> 16:        oncotree_2019_02_01
#> 17:        oncotree_2018_11_01
#> 18:        oncotree_2018_09_01
#> 19:        oncotree_2018_08_01
#> 20:        oncotree_2018_07_01
#> 21:        oncotree_2018_06_15
#> 22:        oncotree_2018_06_01
#> 23:        oncotree_2018_05_01
#> 24:        oncotree_2018_04_01
#> 25:        oncotree_2018_03_01
#> 26:        oncotree_2018_02_01
#> 27:        oncotree_2018_01_01
#> 28:        oncotree_2017_11_01
#> 29:        oncotree_2017_10_05
#> 30:        oncotree_2017_06_21
#> 31:        oncotree_legacy_1.1
#>                 api_identifier
#>                         <char>
#>                                                                                                                                                                                                                                                                                                                                            description
#>                                                                                                                                                                                                                                                                                                                                                 <char>
#>  1:                                                                                                                                                                                                                                                                                                This is the latest approved version for public use.
#>  2:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2026-11-20
#>  3:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2025-10-03
#>  4:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2025-04-08
#>  5:                                                                                                                                                                                                                                                      Latest OncoTree under development (subject to <b class=text-danger>change without notice</b>)
#>  6: This version of the OncoTree reflects upcoming changes which have been approved for the next public release of oncotree. It also includes a small number of nodes which will not be included in the next public release (see the news page for more details). The next public release may possibly include additional oncotree nodes, if approved.
#>  7:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2021-11-02
#>  8:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2020-10-01
#>  9:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2020-04-01
#> 10:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2020-02-06
#> 11:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2020-02-01
#> 12:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2019-12-01
#> 13:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2019-08-01
#> 14:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2019-05-01
#> 15:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2019-03-01
#> 16:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2019-02-01
#> 17:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2018-11-01
#> 18:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2018-09-01
#> 19:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2018-08-01
#> 20:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2018-07-01
#> 21:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2018-06-15
#> 22:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2018-06-01
#> 23:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2018-05-01
#> 24:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2018-04-01
#> 25:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2018-03-01
#> 26:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2018-02-01
#> 27:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2018-01-01
#> 28:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2017-11-01
#> 29:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2017-10-05
#> 30:                                                                                                                                                                                                                                                                                                        Stable OncoTree released on date 2017-06-21
#> 31:                                                                                                                                                                                                                  This is the closest match in TopBraid for the TumorTypes_txt file associated with release 1.1 of OncoTree (approved by committee)
#>                                                                                                                                                                                                                                                                                                                                            description
#>                                                                                                                                                                                                                                                                                                                                                 <char>
#>     release_date visible
#>           <char>  <lgcl>
#>  1:   2026-11-20    TRUE
#>  2:   2026-11-20   FALSE
#>  3:   2025-10-03   FALSE
#>  4:   2025-04-08   FALSE
#>  5:   2021-11-04    TRUE
#>  6:   2021-11-03    TRUE
#>  7:   2021-11-02   FALSE
#>  8:   2020-10-01   FALSE
#>  9:   2020-04-01   FALSE
#> 10:   2020-02-06   FALSE
#> 11:   2020-02-01   FALSE
#> 12:   2019-12-01   FALSE
#> 13:   2019-08-01   FALSE
#> 14:   2019-05-01   FALSE
#> 15:   2019-03-01   FALSE
#> 16:   2019-02-01   FALSE
#> 17:   2018-11-01   FALSE
#> 18:   2018-09-01   FALSE
#> 19:   2018-08-01   FALSE
#> 20:   2018-07-01   FALSE
#> 21:   2018-06-15   FALSE
#> 22:   2018-06-01   FALSE
#> 23:   2018-05-01   FALSE
#> 24:   2018-04-01   FALSE
#> 25:   2018-03-01   FALSE
#> 26:   2018-02-01   FALSE
#> 27:   2018-01-01   FALSE
#> 28:   2017-11-01   FALSE
#> 29:   2017-10-05   FALSE
#> 30:   2017-06-21   FALSE
#> 31:   2016-03-28   FALSE
#>     release_date visible
#>           <char>  <lgcl>

Main cancer types

getOncotreeMainTypes() retrieves the main cancer types in OncoTree.

getOncotreeMainTypes()
#>                                            mainType
#>                                              <char>
#>   1:                         Adenocarcinoma In Situ
#>   2: Adenocarcinoma in Retrorectal Cystic Hamartoma
#>   3:                           Adrenal Gland Cancer
#>   4:                         Adrenocortical Adenoma
#>   5:                       Adrenocortical Carcinoma
#>  ---                                               
#> 115:                                Uterine Sarcoma
#> 116:                                 Vaginal Cancer
#> 117:                               Vulvar Carcinoma
#> 118:                          Vulvar/Vaginal Cancer
#> 119:                                    Wilms Tumor

Tumor types

getOncotreeTumorTypes() retrieves the tumor types in OncoTree.

getOncotreeTumorTypes()
#>               code       color
#>             <char>      <char>
#>   1:   SOFT_TISSUE LightYellow
#>   2: BILIARY_TRACT       Green
#>   3:        BREAST     HotPink
#>   4:           EYE       Green
#>   5:        KIDNEY      Orange
#>  ---                          
#> 894:        BIALCL   LimeGreen
#> 895:      ALCLALKN   LimeGreen
#> 896:      ALCLALKP   LimeGreen
#> 897:           LYP   LimeGreen
#> 898:        PCALCL   LimeGreen
#>                                                          name
#>                                                        <char>
#>   1:                                              Soft Tissue
#>   2:                                            Biliary Tract
#>   3:                                                   Breast
#>   4:                                                      Eye
#>   5:                                                   Kidney
#>  ---                                                         
#> 894: Breast Implant-Associated Anaplastic Large-Cell Lymphoma
#> 895:              Anaplastic Large-Cell Lymphoma ALK Negative
#> 896:              Anaplastic Large-Cell Lymphoma ALK Positive
#> 897:                                   Lymphomatoid Papulosis
#> 898:         Primary Cutaneous Anaplastic Large Cell Lymphoma
#>                       mainType externalReferences  tissue      children parent
#>                         <char>             <list>  <list>        <char> <char>
#>   1:        Soft Tissue Cancer           C0225317  C12471   Soft Tissue TISSUE
#>   2:      Biliary Tract Cancer           C0005423  C12678 Biliary Tract TISSUE
#>   3:             Breast Cancer           C0006141  C12971        Breast TISSUE
#>   4:                Eye Cancer           C0015392  C12401           Eye TISSUE
#>   5:             Kidney Cancer           C0022646  C12415        Kidney TISSUE
#>  ---                                                                          
#> 894: Mature T and NK Neoplasms           C4528210 C139012      Lymphoid   ALCL
#> 895: Mature T and NK Neoplasms           C1332078  C37194      Lymphoid   ALCL
#> 896: Mature T and NK Neoplasms           C1332079  C37193      Lymphoid   ALCL
#> 897: Mature T and NK Neoplasms           C0206182   C3721      Lymphoid  PCLPD
#> 898: Mature T and NK Neoplasms           C1301362   C6860      Lymphoid  PCLPD
#>        history level revocations precursors
#>         <list> <int>      <list>     <list>
#>   1: <list[0]>     1   <list[0]>           
#>   2: <list[0]>     1   <list[0]>           
#>   3: <list[0]>     1   <list[0]>           
#>   4: <list[0]>     1   <list[0]>           
#>   5: <list[0]>     1   <list[0]>           
#>  ---                                       
#> 894: <list[0]>     6   <list[0]>           
#> 895: <list[0]>     6   <list[0]>           
#> 896: <list[0]>     6   <list[0]>           
#> 897: <list[0]>     6   <list[0]>           
#> 898: <list[0]>     6   <list[0]>
sessionInfo()
#> R version 4.6.2 (2026-10-29)
#> Platform: x86_64-pc-linux-gnu
#> Running under: Ubuntu 26.04.1 LTS
#> 
#> Matrix products: default
#> BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 
#> LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.32.so;  LAPACK version 3.12.0
#> 
#> locale:
#>  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
#>  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
#>  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
#>  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
#>  [9] LC_ADDRESS=C               LC_TELEPHONE=C            
#> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
#> 
#> time zone: Etc/UTC
#> tzcode source: system (glibc)
#> 
#> attached base packages:
#> [1] stats     graphics  grDevices utils     datasets  methods   base     
#> 
#> other attached packages:
#> [1] data.table_1.18.6.1 AnnotationGx_1.0.0  BiocStyle_2.42.0   
#> 
#> loaded via a namespace (and not attached):
#>  [1] bit_4.6.0           jsonlite_2.0.0      crayon_1.5.3       
#>  [4] dplyr_1.2.1         compiler_4.6.2      BiocManager_1.30.27
#>  [7] filelock_1.0.3      tidyselect_1.2.1    blob_1.3.0         
#> [10] parallel_4.6.2      jquerylib_0.1.4     yaml_2.3.12        
#> [13] fastmap_1.2.0       R6_2.6.1            generics_0.1.4     
#> [16] curl_8.2.0          httr2_1.3.0         knitr_1.52         
#> [19] backports_1.5.1     checkmate_2.3.4     tibble_3.3.1       
#> [22] maketools_1.3.2     DBI_1.3.0           bslib_0.12.0       
#> [25] pillar_1.11.1       rlang_1.3.0         cachem_1.1.0       
#> [28] xfun_0.62           sass_0.5.0          sys_3.4.3          
#> [31] bit64_4.8.6         otel_0.3.0          RSQLite_3.53.3     
#> [34] memoise_2.0.1       cli_3.6.6           withr_3.0.3        
#> [37] magrittr_2.0.5      digest_0.6.39       dbplyr_2.6.0       
#> [40] lifecycle_1.0.5     BiocFileCache_3.4.0 vctrs_0.7.3        
#> [43] evaluate_1.0.5      glue_1.8.1          buildtools_1.0.0   
#> [46] purrr_1.2.2         rmarkdown_2.32      tools_4.6.2        
#> [49] pkgconfig_2.0.3     htmltools_0.5.9