-
Notifications
You must be signed in to change notification settings - Fork 5
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
VRS schema definitions mismatch #196
Comments
Hi @v-rocheleau These VRS proto files are part of Phenopacket Schema v2.0.0 and, consequently, that's what phenopacket-tools are designed to validate. As far as I know, VRS specs are encoded into JSON schema. However, not JSON schema concepts are translatable to Protocol Buffers language. So, it is unlikely that using Git submodules would solve this issue.. |
Thanks for the quick response @ielis I understand better now, given the protobuf/json-schema concept differences. The vrs.json json-schema file from the VRS repo is imported in the official vrs-python repo as a submodule, so I was under the impression that this schema file could be used as the VRS JSON-schema source of truth. Given that phenopacket-tools supports YML, protobuf and JSON-schema formats, do you think it would make sense for it to use the official schema file depending on the format? Some background on why I am asking this:
|
Hi @v-rocheleau
I do not think this is the way how Phenopacket Schema is defined. The latest ( Phenopacket tools can convert V1->V2, and the conversion is available both through CLI and the Java API (Javadocs here). However, it only works for the "VRS" items as defined in the protobuf version (not |
Hi!
While playing with the
phenopacket-tools
examples
, after a while I noticed that the VRS schemas in this repo vary from the official VRS spec, as stated in schema description itself in vrs-variation-adapter.json.Is there an historical reason for this bifurcation from the specs? If so is it still needed?
If not, I believe a better approach would be to obtain the
vrs.json
from the VRS repo in order to replacevrs-variation-adapter.json
with the official specs, it could be done by using a Git submodule for instance.The text was updated successfully, but these errors were encountered: