Skip to content

Glycan Registration Workflow

Fatma Sena Arpinar edited this page Dec 3, 2025 · 4 revisions
flowchart TD
    classDef sub opacity:0
    classDef note fill:#ffd, stroke:#ccb
    
    subgraph subAA [" "]
        AA
        noteAA[<a href="https://github.com/glygener/glygen-array-backend/wiki/Glycan-API-usage#retrieve-accession-number-glytoucan-id-for-a-glycan-with-wurcs-sequence-1">See details</a>]
    end
    
    subgraph subV [" "]
        V
        noteV[<a href="https://github.com/glygener/glygen-array-backend/wiki/Glycan-API-usage#validation">See details</a>]
    end
    
    subgraph subG [" "]
        G
        noteG[<a href="https://github.com/glygener/glygen-array-backend/wiki/Glycan-API-usage#retrieve-accession-number-glytoucan-id-for-a-glycan-with-wurcs-sequence">See details</a>]
    end

    subgraph subR [" "]
        R
        noteR[<a href="https://github.com/glygener/glygen-array-backend/wiki/Glycan-API-usage#for-registering-new-glycans">See details</a>]
    end
    
    class subAA,subV,subG,subR sub
    class noteAA,noteV,noteG,noteR note


    A(["Add Glycan"])
    A --> T{Input Type}
    T --> |Composition| C[Convert to WURCS]
    T --> |GWS| C[Convert to WURCS]
    T --> |GlycoCT| C[Convert to WURCS]
    T --> |Wurcs| V
    C --> V[Validate]
    V --> W[Standardized WURCS]
    W --> G{"Retrieve GlyTouCan Id"}
    G --> |API Failure| AA{"Retrieve GlyTouCan Id using Alternate"}
    AA --> |No GlyToucan|R["Register Glycan"]
    AA --> |GlyTouCan ID| S["Add Glycan to Repository"]
    G --> |No GlyToucan|R["Register Glycan"]
    G --> |GlyTouCan ID| S["Add Glycan to Repository"]
    R --> S
Loading

Clone this wiki locally