Skip to content

Glycan API usage

Fatma Sena Arpinar edited this page Dec 3, 2025 · 8 revisions

GlyTouCan

For registering new glycans

  • URL: https://api.glytoucan.org/glycan/register
  • Method: POST
  • Authentication: Authorization: Basic <userId>:<apiKey> see application.yml file for these variables
  • Payload: { "sequence": <wurcs_sequence> }
  • Response:
{
   "timestamp" : <timestamp>,
   "status" : <status>,
   "error" : <error>,
   "message" : <glytoucan_id or hash>,
   "path" : <path>
}

GlyCosmos

Retrieve accession number (GlyTouCan ID) for a glycan (with WURCS sequence)

[{ 
   "id" : <accession_number>,
   "wurcs" : <wurcs_sequence>,
   "message: <error_message>
}]
  • Documentation is here.

Retrieve glycan with the given accession number (GlyTouCan ID)

[ 
   {
     "AccessionNumber" : <accession_number>,
     "HashKey" : <hash_key>,
     "NormalizedWurcs" : <wurcs_sequence>
]
  • Could not locate the current documentation.
  • This might be the documentation but it is not the same URL (beta)
  • We use this service when we cannot get GlycanObject for a glycan with GlycoCT but the glycan has a GlyTouCan ID. In this case we try the get the WURCS sequence using the API and use WURCS parser to get GlycanObject. There is also a web service getGlycanFromGlytoucan that uses this API.

Validation

{
  "m_sInputString" : <input_sequence>,
  "m_sStandardString" : <standard_sequence>,
  "m_mapTypeToReports" : { 
      "WARNING": [],
      "ERROR" : [
        {
          "strMessage: <message>,
          "exception" : {
              "m_strInput" : <input>,
              "m_strMessage" : <message>
           }
        }
      ]
   }
}
  • Documentation of the latest version is here
  • We are using the initial release version.
  • Need to update to the latest!

Get Image

Check Status for a registered glycan

[
   { 
      "batch_p" : "AccessionNumber",
      "batch_value" : <url_with_accession_number> 
   }
]

GlycoNAVI

Retrieve accession number (GlyTouCan ID) for a glycan (with WURCS sequence)

[{ 
   "GlyTouCan" : <accession_number>,
   "WURCS" : <wurcs_sequence>,
   "message: <error_message>
}]

Web Service(s) that use one/more of these APIs

  • GlyTableMaker
    • api/data/addglycan. (see)
    • api/data/addglycanfromlist (see)
    • api/data/addglycanfromfile (see)
    • api/util/getcartoon (uses retrieveGlycan as necessary)

Projects(Classes) that use one/more of these APIs

Clone this wiki locally