Skip to contents

Helper function to get available terms

Usage

get_annotation_terms(data = NULL, format = c("table", "vector"))

Arguments

data

tidyproteomics data object

format

a character string specifying the return format: "table" (default) or "vector"

Value

a tibble or character vector

Examples

library(tidyproteomics)
get_annotation_terms(hela_proteins)
#> # A tibble: 10 × 3
#>    term               type       unique_annotations
#>    <chr>              <chr>                   <int>
#>  1 protein            identifier               7055
#>  2 description        annotation               7021
#>  3 biological_process annotation                714
#>  4 cellular_component annotation                471
#>  5 molecular_function annotation                 74
#>  6 gene_id_entrez     annotation               6252
#>  7 gene_name          annotation               6735
#>  8 wiki_pathway       annotation               1689
#>  9 reactome_pathway   annotation               2272
#> 10 gene_id_ensemble   annotation               6715
get_annotation_terms(hela_proteins, format = "vector")
#>  [1] "protein"            "description"        "biological_process"
#>  [4] "cellular_component" "molecular_function" "gene_id_entrez"    
#>  [7] "gene_name"          "wiki_pathway"       "reactome_pathway"  
#> [10] "gene_id_ensemble"