namespace Resources { export const apiServer: string = 'https://www.ebi.ac.uk/pdbe/graph-api'; 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'; export const residueTypeURL: string = "https://www.ebi.ac.uk/pdbe/api/pdb/compound/summary/"; export function ligandAnnotationAPI(ligandName: string): string { return `https://www.ebi.ac.uk/pdbe/static/files/pdbechem_v2/${ligandName}/annotation`; } export function boundMoleculeAPI(pdbId: string, bmId: string): string { return `${apiServer}/pdb/bound_molecule_interactions/${pdbId}/${bmId}`; } export function carbohydratePolymerAPI(pdbId: string, bmId: string, entityId: string): string { return `${apiServer}/pdb/carbohydrate_polymer_interactions/${pdbId}/${bmId}/${entityId}`; } 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}`; } }