neurobagel / annotation_tool

https://annotate.neurobagel.org/
MIT License
3 stars 7 forks source link

getter to create JSON representation of discrete column #406

Closed surchs closed 1 year ago

surchs commented 1 year ago

Given a column mapped to a discrete category (e.g. "Diagnosis"), create a complete, schema compliant JSON object of all annotations we have made for this column.

Example from our documentation

  "group": {
    "Annotations": {
      "IsAbout": {
        "TermURL": "bg:diagnosis",
        "Label": "Diagnosis"
      },
      "Levels": {
        "PD": {
          "TermURL": "snomed:49049000",
          "Label": "Parkinson's disease"
        },
        "CTRL": {
          "TermURL": "purl:NCIT_C94342",
          "Label": "Healthy Control"
        }
      }
    }
  }

assume that

TODO

Data to grab

surchs commented 1 year ago

blocked by Seb lack of time

jarmoza commented 1 year ago

After conferring with @surchs today, the task here is only to make changes for the existing identifiers and labels found in store.state.categoricalOptions and not others used outside of the annotation tool in NeuroBagel just yet.