moltimate / moltimate-backend

A protein active site alignment tool
GNU General Public License v2.0
10 stars 6 forks source link

Add motif creation/decoding #103

Closed steplica closed 5 years ago

steplica commented 5 years ago

This will add an endpoint, /download/motif which can download a custom motif file from a JSON payload of the following format:

{
    "pdbId": "1yph",
    "ecNumber": "3.4.14.21",
    "activeSiteResidues": [
        {
            "residueName": "His",
            "residueChainName": "C",
            "residueId": "57"
        },
        {
            "residueName": "Asp",
            "residueChainName": "C",
            "residueId": "102"
        },
        {
            "residueName": "Gly",
            "residueChainName": "E",
            "residueId": "193"
        },
        {
            "residueName": "Ser",
            "residueChainName": "E",
            "residueId": "195"
        },
        {
            "residueName": "Gly",
            "residueChainName": "E",
            "residueId": "196"
        }
    ]
}

It also decodes these motif files when they're received by the backend.