resources.ts 1.39 KB
Newer Older
Lukas Pravda's avatar
Lukas Pravda committed
1
namespace Resources { 
Lukas Pravda's avatar
Lukas Pravda committed
2
    export const apiServer: string = 'https://www.ebi.ac.uk/pdbe/graph-api';
3
4
5
    export const glycanSymbols: string = 'https://pdbe.gitdocs.ebi.ac.uk/web-components/ligand-env/pdb-snfg-visuals.xml';
    export const glycanMapping: string = 'https://pdbe.gitdocs.ebi.ac.uk/web-components/ligand-env/het_mapping.json';
    export const componentSvgCss: string = 'https://pdbe.gitdocs.ebi.ac.uk/web-components/ligand-env/pdb-ligand-env-svg.css';
Lukas Pravda's avatar
Lukas Pravda committed
6

Lukas Pravda's avatar
Lukas Pravda committed
7
    export const residueTypeURL: string = "https://www.ebi.ac.uk/pdbe/api/pdb/compound/summary/";
Lukas Pravda's avatar
Lukas Pravda committed
8

Lukas Pravda's avatar
Lukas Pravda committed
9
    export function ligandAnnotationAPI(ligandName: string): string { 
Lukas Pravda's avatar
Lukas Pravda committed
10
11
        return `https://www.ebi.ac.uk/pdbe/static/files/pdbechem_v2/${ligandName}/annotation`;
    }
Lukas Pravda's avatar
Lukas Pravda committed
12
13
14
15
16

    export function boundMoleculeAPI(pdbId: string, bmId: string): string { 
        return `${apiServer}/pdb/bound_molecule_interactions/${pdbId}/${bmId}`;
    }

17
18
19
20
    export function carbohydratePolymerAPI(pdbId: string, bmId: string, entityId: string): string { 
        return `${apiServer}/pdb/carbohydrate_polymer_interactions/${pdbId}/${bmId}/${entityId}`;
    }

Lukas Pravda's avatar
Lukas Pravda committed
21
22
23
24
25
26
27
    export function ligandInteractionsAPI(pdbId: string, chainId: string, resId: number) { 
        return `${apiServer}/pdb/bound_ligand_interactions/${pdbId}/${chainId}/${resId}`;
    }

    export function residueTypeAPI(chemCompId: string): string { 
        return `${residueTypeURL}${chemCompId}`;
    }
Lukas Pravda's avatar
Lukas Pravda committed
28
}