Sequence analysis with OmaDB

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.

Installation

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

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

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

Session information

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] stats4    stats     graphics  grDevices utils     datasets  methods  
#> [8] base     
#> 
#> other attached packages:
#>  [1] topGO_2.66.0         SparseM_1.84-2       GO.db_3.23.1        
#>  [4] AnnotationDbi_1.77.0 IRanges_2.48.0       S4Vectors_0.53.0    
#>  [7] Biobase_2.74.0       graph_1.93.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        grid_4.6.2          
#>  [7] evaluate_1.0.5       fastmap_1.2.0        blob_1.3.0          
#> [10] jsonlite_2.0.0       ape_5.8-1            DBI_1.3.0           
#> [13] BiocManager_1.30.27  httr_1.4.9           Biostrings_2.82.0   
#> [16] httr2_1.3.0          jquerylib_0.1.4      cli_3.6.6           
#> [19] rlang_1.3.0          crayon_1.5.3         XVector_0.54.0      
#> [22] bit64_4.8.6          cachem_1.1.0         yaml_2.3.12         
#> [25] otel_0.3.0           BiocBaseUtils_1.17.0 parallel_4.6.2      
#> [28] tools_4.6.2          memoise_2.0.1        curl_8.2.0          
#> [31] buildtools_1.0.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.5.0        bit_4.6.0           
#> [40] pkgconfig_2.0.3      bslib_0.12.0         glue_1.8.1          
#> [43] Rcpp_1.1.2           GenomicRanges_1.67.0 xfun_0.62           
#> [46] sys_3.4.3            knitr_1.52           igraph_2.3.4        
#> [49] nlme_3.1-172         htmltools_0.5.9      rmarkdown_2.32      
#> [52] maketools_1.3.2      compiler_4.6.2