Skip to content
Snippets Groups Projects
Commit cd30d559 authored by Alexander Rose's avatar Alexander Rose
Browse files

use bcif

parent 0e2b6d97
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment