Below are the instruction on how all the ontologies were transformed into RDA’s. If the ontology is in owl format it will need to be converted into an obo file. To do this download robot. Below is the link to the github repo that contains the robot tool. It is a tool for terminal so the following code must be run on the terminal. https://github.com/ontodev/robot
Below is the link to the documentation for how to run robot.
http://robot.obolibrary.org/convert
For ontologies already in the obo format skip the first step and start here. Fill in all the [] with the appropriate directories / file names. For RDA the variable the [rdaName] is the nave of the file when loading into R .
directory = [directoryOfOboFiles]
rdaDirectory = [directoryForRDAFiles]
datafileName = [fileName].obo
rdaName = [rdaName].rda
datafile = paste0(directory,datafileName)
savefile = paste0(rdaDirectory, rdaName)
[rdaName] = get_OBO(datafile, extract_tags = "everything")
save([rdaName], file = savefile, compress = "xz")
Session info
## R version 4.3.3 (2024-02-29)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 22.04.4 LTS
##
## Matrix products: default
## BLAS: /home/biocbuild/bbs-3.18-bioc/R/lib/libRblas.so
## LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.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] stats graphics grDevices utils datasets methods base
##
## other attached packages:
## [1] BiocStyle_2.30.0
##
## loaded via a namespace (and not attached):
## [1] digest_0.6.35 R6_2.5.1 bookdown_0.38
## [4] fastmap_1.1.1 xfun_0.43 cachem_1.0.8
## [7] knitr_1.46 htmltools_0.5.8.1 rmarkdown_2.26
## [10] lifecycle_1.0.4 cli_3.6.2 sass_0.4.9
## [13] jquerylib_0.1.4 compiler_4.3.3 tools_4.3.3
## [16] evaluate_0.23 bslib_0.7.0 yaml_2.3.8
## [19] BiocManager_1.30.22 jsonlite_1.8.8 rlang_1.1.3