original doc: https://docs.google.com/document/d/1cbNP45X32G8BEoJgpX91gUANB5_CVCZARPh51RVgBA8/edit
This document is for rough notes on approaches for exposing Monarch via R
- Fully featured R library with graph logic in R
- thin wrapper onto new Monarch API
- This wrapper onto OAK, which itself wraps Monarch API
Fully featured R library
The idea would be to have lots of ontology logic implemented in R. This would essentially be OAK in R.
I don’t think we should pursue this unless there is someone who has the time and resources, a strong vision and extensive experience of building similar libraries
Thin wrapper onto Monarch API
This would be a very lightweight layer that would mostly be geared around obtaining dataframes for genes, diseases, etc. It would have minimal logic. It could even be autoderived via swagger2R.
All logic would be server side. The R would mostly be retrieval
Thin wrapper onto OAK
This would require two new pieces
FastAPI layer onto OAK
An OAK adapter for the new Monarch API
However, both of these are already things we want.
There may be efficiency considerations with so many layers. There would need to be some thinking about the generic FastAPI layer for OAK (e.g. OAK is naturally sync; things like connecting to a sqlite for the first time incur an initial time overhead)