Skip to content

Instantly share code, notes, and snippets.

@jsstevenson
Created November 21, 2025 21:09
Show Gist options
  • Select an option

  • Save jsstevenson/39d5de8428bc3bc450987530945ee2b8 to your computer and use it in GitHub Desktop.

Select an option

Save jsstevenson/39d5de8428bc3bc450987530945ee2b8 to your computer and use it in GitHub Desktop.
In [21]: input_data = {
...: "location": {
...: "end": 87894077,
...: "start": 87894076,
...: "sequenceReference": {
...: "refgetAccession": "SQ.ss8r_wB0-b9r44TQTMmVTI92884QvBiB",
...: "type": "SequenceReference"
...: },
...: },
...: "state": {
...: "sequence": "T",
...: },
...: }
In [22]: ga4gh_identify(models.Allele(**input_data))
Out[22]: 'ga4gh:VA.K7akyz9PHB0wg8wBNVlWAAdvMbJUJJfU'
In [23]: storage = {}
In [28]: enreffed = vrs_enref(models.Allele(**input_data), storage)
In [29]: vrs_deref(enreffed, storage).id
Out[29]: 'ga4gh:VA.UBp6cO0u3i286SZhHhfUo1uFft259YyC'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment