glygener / glygen-backend-gsa

0 stars 0 forks source link

Integrate GlycoTree validation for glycans #22

Closed ReneRanzinger closed 2 years ago

ReneRanzinger commented 2 years ago

https://github.com/CCRC-will/glycoTree/wiki/Checker-API-documentation

ReneRanzinger commented 2 years ago

If I am using GlyTouCan G17689DH as an input (complete mapping with GlycoTree, rule violation) I am getting:

{
  "errors": [
    "GlycoCT could not be decoded",
    "No residues in NTEMP715764f could be mapped to the N-glycotree"
  ],
  "rule_violations": [
    "no rule violations found"
  ]
}

Since it says the GlycoCT can not be decoded are you sending it correctly?

In addition we should not show JSON. If there is at least one error make a bullet point list with the error message as content.

For rule violation also make a bullet point list with the message.