-
Notifications
You must be signed in to change notification settings - Fork 30
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
What library should R developers use for phenopackets? #359
Comments
AFAIK there is no easy way to work with phenopackets in R. For now we are emphasizing Java and Python, but an R library would be useful. I would think we could explore using the automatically generated C++ library and then possibly Rcpp or a similar approach. But I think first we should figure out what we want to do in R? |
What's wrong with using the library Chris suggested? Sure, it's going to build you a bare-bones model, but that's already a good start for parsing and using the data. |
Well, because without support for validation such as we have for Java in https://github.com/phenopackets/phenopacket-tools and will soon have in Python, it is hard to write correct phenopackets. It depends on what one wants to do, but we should try to develop good libraries in every language in which people will work with phenopackets a lot! |
I think it helps to separate use cases here. Broadly these fall into two categories:
For export I agree that we need good library support for validation, but there are a variety of strategies, including services or calling the java or python libraries, or encoding in linkml etc. However, the helpdesk request that prompted this was for import, so there is no need for a full R validation suite here |
What if an invalid phenopacket is imported? This could lead to spurious results, and the analysis of data might not be correct - especially for more complicated phenopackets - unless dedicated software is used rather than generic json. I think we should always validate and if we want to support R we should figure out how to write a library similar to phenopacket tools. |
From:
What strategy should R developers and non python/java developers use?
I know there is an R protobuf library, but I don't think it's an official protobuf/google product:
https://cran.r-project.org/web/packages/RProtoBuf/
The text was updated successfully, but these errors were encountered: