Contents

1 Introduction

Often, a protein of interest is only known by its sequence, e.g. because it comes from a newly sequenced genome. OmaDB provides two functions for such sequences: mapSequence() identifies the proteins in the OMA Browser that match a sequence exactly or approximately, and annotateSequence() predicts Gene Ontology annotations for a sequence based on the annotations of the closest proteins in OMA (OMA FastMap). See the vignette “Get started with OmaDB” for an introduction to the package.

2 Installation

if (!requireNamespace("BiocManager", quietly = TRUE)) {
    install.packages("BiocManager")
}
BiocManager::install("OmaDB")
library(OmaDB)

3 Mapping a sequence

The query can be a character string or an AAString object of the Biostrings package:

sequence <- Biostrings::AAString(paste0(
    "MNDPSLLGYPNVGPQQQQQQQQQQHAGLLGKGTPNALQQQLHMNQLTGIPPPGLMNNSDVHTSSNNNS",
    "RQLLDQLANGNANMLNMNMDNNNNNNNNNNNNNNNGGGSGVMMNASTAAVNSIGMVPTVGTPVNINVN",
    "ASNPLLHPHLDDPSLLNNPIWKLQLHLAAVSAQSLGQPNIYARQNAMKKYLATQQAQQAQQQAQQQAQ",
    "QQVPGPFGPGPQAAPPALQPTDFQQSHIAEASKSLVDCTKQALMEMADTLTDSKTAKKQQPTGDSTPS",
    "GTATNSAVSTPLTPKIELFANGKDEANQALLQHKKLSQYSIDEDDDIENRMVMPKDSKYDDQLWHALD",
    "LSNLQIFNISANIFKYDFLTRLYLNGNSLTELPAEIKNLSNLRVLDLSHNRLTSLPAELGSCFQLKYF",
    "YFFDNMVTTLPWEFGNLCNLQFLGVEGNPLEKQFLKILTEKSVTGLIFYLRDNRPEIPLPHER"))
sequence
#> 471-letter AAString object:
#> MNDPSLLGYPNVGPQQQQQQQQQQHAGLLGKGTPNALQQ...EGNPLEKQFLKILTEKSVTGLIFYLRDNRPEIPLPHER
res <- mapSequence(sequence)
res$identified_by
#> [1] "exact match"
res$targets[, c("omaid", "canonicalid", "species.species")]
#>        omaid canonicalid                                       species.species
#> 1 YEAST00083  CCR4_YEAST Saccharomyces cerevisiae (strain ATCC 204508 / S288c)

The search strategy can be set to "exact", "approximate" or "mixed" (the default: approximate search is only used if no exact match is found). The matching protein can then be explored further, e.g. its orthologs:

target <- getProtein(res$targets$omaid[1])
head(target$orthologs[, c("omaid", "species.species", "rel_type")])
#>        omaid
#> 1 SYNRA03755
#> 2 MUCC105199
#> 3 KLULA00697
#> 4 YEASV03839
#> 5 YEASO02431
#> 6 ZYGRO02696
#>                                                                                   species.species
#> 1                                                                       Syncephalastrum racemosum
#> 2                                         Mucor circinelloides f. circinelloides (strain 1006PhL)
#> 3 Kluyveromyces lactis (strain ATCC 8585 / CBS 2359 / DSM 70799 / NBRC 1267 / NRRL Y-1140 / WM37)
#> 4                                                        Saccharomyces cerevisiae (strain VIN 13)
#> 5                                                      Saccharomyces cerevisiae (strain FostersO)
#> 6                                                                        Zygosaccharomyces rouxii
#>   rel_type
#> 1      1:1
#> 2      1:1
#> 3      1:1
#> 4      1:1
#> 5      1:1
#> 6      1:1

4 Function prediction

annotateSequence() predicts Gene Ontology annotations of a sequence, which does not need to be in the OMA Browser. The predictions are returned in the columns of the GAF format; the column With indicates the protein the annotation is derived from.

go <- annotateSequence(sequence)
nrow(go)
#> [1] 18
head(go[, c("GO_ID", "GO_name", "Aspect", "With")])
#>        GO_ID
#> 1 GO:0000076
#> 2 GO:0000175
#> 3 GO:0000288
#> 4 GO:0000289
#> 5 GO:0000932
#> 6 GO:0003824
#>                                                                     GO_name
#> 1                                      DNA replication checkpoint signaling
#> 2                                            3'-5'-RNA exonuclease activity
#> 3 nuclear-transcribed mRNA catabolic process, deadenylation-dependent decay
#> 4                          nuclear-transcribed mRNA poly(A) tail shortening
#> 5                                                                    P-body
#> 6                                                        catalytic activity
#>   Aspect                                 With
#> 1      P Approx:YEAST00083:4031.5964906803106
#> 2      F Approx:YEAST00083:4031.5964906803106
#> 3      P Approx:YEAST00083:4031.5964906803106
#> 4      P Approx:YEAST00083:4031.5964906803106
#> 5      C Approx:YEAST00083:4031.5964906803106
#> 6      F Approx:YEAST00083:4031.5964906803106

5 Session information

sessionInfo()
#> R version 4.6.1 (2026-06-24)
#> Platform: x86_64-pc-linux-gnu
#> Running under: Ubuntu 24.04.5 LTS
#> 
#> Matrix products: default
#> BLAS:   /home/biocbuild/bbs-3.24-bioc/R/lib/libRblas.so 
#> LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.12.0  LAPACK version 3.12.0
#> 
#> locale:
#>  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
#>  [3] LC_TIME=en_GB              LC_COLLATE=C              
#>  [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: America/New_York
#> tzcode source: system (glibc)
#> 
#> attached base packages:
#> [1] stats4    stats     graphics  grDevices utils     datasets  methods  
#> [8] base     
#> 
#> other attached packages:
#>  [1] topGO_2.66.0         SparseM_1.84-2       GO.db_3.24.0        
#>  [4] AnnotationDbi_1.76.0 IRanges_2.48.0       S4Vectors_0.52.0    
#>  [7] Biobase_2.74.0       graph_1.92.0         BiocGenerics_0.60.0 
#> [10] generics_0.1.4       OmaDB_2.30.0         BiocStyle_2.42.0    
#> 
#> loaded via a namespace (and not attached):
#>  [1] sass_0.5.0           RSQLite_3.53.3       lattice_0.23-1      
#>  [4] magrittr_2.0.5       digest_0.6.39        evaluate_1.0.5      
#>  [7] grid_4.6.1           bookdown_0.48        fastmap_1.2.0       
#> [10] blob_1.3.0           jsonlite_2.0.0       ape_5.8-1           
#> [13] DBI_1.3.0            BiocManager_1.30.27  httr_1.4.9          
#> [16] Biostrings_2.82.0    httr2_1.3.0          jquerylib_0.1.4     
#> [19] cli_3.6.6            rlang_1.3.0          crayon_1.5.3        
#> [22] XVector_0.54.0       bit64_4.8.6          cachem_1.1.0        
#> [25] yaml_2.3.12          otel_0.3.0           BiocBaseUtils_1.16.0
#> [28] parallel_4.6.1       tools_4.6.1          memoise_2.0.1       
#> [31] curl_8.2.0           vctrs_0.7.3          R6_2.6.1            
#> [34] png_0.1-9            matrixStats_1.5.0    lifecycle_1.0.5     
#> [37] KEGGREST_1.54.0      Seqinfo_1.4.0        bit_4.6.0           
#> [40] pkgconfig_2.0.3      bslib_0.12.0         glue_1.8.1          
#> [43] Rcpp_1.1.2           xfun_0.62            GenomicRanges_1.66.0
#> [46] knitr_1.52           igraph_2.3.4         nlme_3.1-172        
#> [49] htmltools_0.5.9      rmarkdown_2.32       compiler_4.6.1