Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow URLs to be constructed with only Variant ID and Evidence ID #531
I think it's great the site provides persistent IDs at the level of Genes, Variant and Evidence.
When linking to resources from other sites, its useful to be able to construct a URL from a identifier directly to that resources.
This is possible for Gene ID, but not Variant and Evidence ID, which require knowing the associated GeneID and Evidence ID
Current URL structure:
While I understand your not wantting to change the URL structure of the entire site, it would be helpful to maybe have a search or ID redirect URL that can take these single IDs and send you to the appropriate page.
With the benefit of also being shorter.
This issue has been raised during our interactions with WikiData folks. It would be great if there were single ID URLs that resolve to a gene, variant, or evidence item.
Those should be possible. Something that is harder but would be awesome as well is something like this:
I've just pushed this functionality to master and it will go out in this week's deploy. As it was minimal additional work, we will support both URL styles.
The following will all now work:
"Resource style" routes:
Query-string style routes:
These routes will return a
HGVS support will be a little more complicated and we'll discuss that in one of our upcoming meetings. The current data model allows for an HGVS expression to belong to more than one CIViC variant. So, at the current time, it isn't possible to take an HGVS and match it to exactly one canonical variant.
To confirm, links like this?