-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API available to interface sirius from R? #11
Comments
Hi, Inter-software usage of SIRIUS is definitely possible and I think there are other R-users who are writing interfaces to SIRIUS. You can start SIRIUS as server in background and run function calls via a REST API. I'm currently not sure how much of the API is already implemented, Markus can tell you more about that. |
That sounds great! Is there somewhere a documentation of the REST API? Would also be cool if you could point me to the R-users that are already working on an interface - always better to join efforts than to develop individually... |
Hey Johannes, As Kai already mentioned we are working on a background service mode for SIRIUS that will provide a local REST API that can easily be queried from any programming language. The rest API is based on an OpenAPI specification, so that we can easily generate client libraries for many languages using swagger-codegen. This has the advantage that the API stays maintainable even for multiple languages and that programmers that build higher level functionality and workflows on top of this API will not have to deal with creating REST URLs by them selves. It would be great if you could join to implement higher level functionality on top of the swagger-client for the R community. Unfortunately the API is not finished yet. Currently it just can retrieve data from SIRIUS projects but not compute anything. This repository https://github.com/boecker-lab/Rsirius contains R package for the currently implemented features. The development and code generation of the clients happen in this Repo: https://github.com/boecker-lab/sirius-client-openAPI Best |
Regarding other users that are already working on an R interface for SIRIUS, patRoom is also wrapping SIRIUS with R. |
Thanks for the feedback and yes, I would be very interested to test the API and implement R-based functionality around that! Just let me know when you have the first testable version ready. |
Hi Johannes, I am wondering if you had the chance to test the R API in 'https://github.com/boecker-lab/Rsirius '? exportMS = function (spectra,metaData,filePath,fileIdx) and then call Sirius as a system call, e.g.: CMD = paste ("sirius -i",[ms_proc_dir],"-o",file.path ("Sirius",basename ([ms_proc_dir])),"--recompute --ignore-formula formula structure --database pubchem") BTW, can we perhaps integrate formula decomposition into XCMS (are you still maintaining it?), at the stage right after p.picking? It can help improve accurate grouping/alignment plus downstream analysis. I can help, in case. |
Hi @nirshahaf ! Thanks for the comment! But unfortunately I did not yet have time to test it. So, if I understand correctly, the R API works by calling the sirius command line on exported txt files? Regarding I hope to find some time soon to dig into this more. |
Hi Johannes, yes you got it right. I have further ideas about XCMS integration - let's please continue offline. |
Sure - my email is johannes.rainer at eurac.edu |
…mono-repo' into 'master' Resolve "Merge sirius-libs into sirius-frontend to create a mono repo." Closes #300, #132, #126, #123, #128, #125, #127, #124, #122, #121, #120, #109, #115, #106, #99, #112, #111, #61, #110, #103, #108, #107, #104, #221, #102, #98, #198, #92, #94, #93, #85, #84, #87, #76, #56, #73, #32, #70, #65, #43, #63, #33, #53, #58, #59, #57, #54, #52, #41, #47, #50, #49, #48, #39, #46, #37, #38, #27, #34, #22, #31, #28, #18, #23, #21, #19, #9, #240, #280, #254, #242, #246, #238, #156, #25, #155, #189, #172, #154, #11, #6, #16, and #4 See merge request bright-giant/sirius/sirius-frontend!106
Information to official SIRISU APIs are available here: |
Dear all,
we're currently implementing and (trying to streamline) functionality for MS data analysis in R (the Spectra package is one example of that). On the to-do list are also tools to determine formulas and structural features in spectra - and here it would make more sense to use sirius for that instead of re-implementing everything in R. I was wondering if you have already an API to the web service (REST?) in place that I could play around with? I would e.g. have spectra as an
Spectra
object in R and e.g. would like to identify the most likely formula based on the isotope pattern.I've seen the sirius-apis repository, but there seems to be little development lastly.
thanks for any feedback or suggestions
The text was updated successfully, but these errors were encountered: