diff --git a/src/tests/browser/render-structure.ts b/src/tests/browser/render-structure.ts index c601c504ffb595d69ffd5f5eef9daaf37a75312e..9dae8a78c7380888fce1cf4db1a64259745cba21 100644 --- a/src/tests/browser/render-structure.ts +++ b/src/tests/browser/render-structure.ts @@ -40,7 +40,8 @@ async function downloadCif(url: string, isBinary: boolean) { } async function downloadFromPdb(pdb: string) { - const parsed = await downloadCif(`https://files.rcsb.org/download/${pdb}.cif`, false); + // const parsed = await downloadCif(`https://files.rcsb.org/download/${pdb}.cif`, false); + const parsed = await downloadCif(`https://webchem.ncbr.muni.cz/ModelServer/static/bcif/${pdb}`, true); return parsed.blocks[0]; } @@ -61,7 +62,7 @@ function getCartoonRepr() { } async function init() { - const cif = await downloadFromPdb('1d66') + const cif = await downloadFromPdb('3j3q') const models = await getModels(cif) console.time('computeModelDSSP') const secondaryStructure = computeModelDSSP(models[0].atomicHierarchy, models[0].atomicConformation)