Commit cdaee595 authored by Lukas Pravda's avatar Lukas Pravda
Browse files

upgrade molstar in testing instance

parent 86719779
......@@ -8,8 +8,8 @@
<!-- MOL* -->
<link rel="stylesheet" type="text/css"
href="https://wwwdev.ebi.ac.uk/pdbe/pdb-component-library/v1.0/css/molstar-light-0.0.1.css">
<script src="https://wwwdev.ebi.ac.uk/pdbe/pdb-component-library/v1.0/js/molstar-0.0.1.js"></script>
href="https://wwwdev.ebi.ac.uk/pdbe/pdb-component-library/css/pdbe-molstar-light-0.1.0.css">
<script src="https://wwwdev.ebi.ac.uk/pdbe/pdb-component-library/js/pdbe-molstar-plugin-0.1.2.js"></script>
<!-- Web component polyfill (only loads what it needs) -->
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs/webcomponents-lite.js" charset="utf-8">
......@@ -22,13 +22,13 @@
<script>
var renderBmInteractions = function (id, bmId) {
var int =
`<pdb-ligand-env style="border: 1px solid black" pdb-id="${id}" bound-molecule-id="${bmId}"></pdb-ligand-env>`
`<pdb-ligand-env style="border: 1px solid black" pdb-id="${id}" bound-molecule-id="${bmId}" environment="dev"></pdb-ligand-env>`
document.getElementById('rt').innerHTML = int;
};
var renderLigandInteractions = function (id, chain, resId) {
var int =
`<pdb-ligand-env style="border: 1px solid black" pdb-id="${id}" pdb-chain-id="${chain}" pdb-res-id="${resId}" zoom-on></pdb-ligand-env>`
`<pdb-ligand-env style="border: 1px solid black" pdb-id="${id}" pdb-chain-id="${chain}" pdb-res-id="${resId}" zoom-on environment="dev"></pdb-ligand-env>`
document.getElementById('rt').innerHTML = int;
};
......@@ -64,7 +64,7 @@
} else {
params = {
pdbid: '1cbs',
chain: 'A',
chain: 'A_1',
resid: 200,
query: "https://wwwdev.ebi.ac.uk/pdbe/coordinates/1cbs/ligandInteraction?&authAsymId=$A&authSeqNumber=$200&radius=5&dataSource=hydrogens"
};
......@@ -79,7 +79,6 @@
var initParams = {
moleculeId: params.pdbid,
pdbeUrl: 'https://wwwdev.ebi.ac.uk/pdbe/',
loadMaps: true,
validationAnnotation: true,
domainAnnotation: true,
lowPrecisionCoords: true,
......@@ -89,21 +88,21 @@
subscribeEvents: true,
showPDBeLogo: false,
assemblyId: 'preferred', //'deposited'
// selectInteraction: false,
selectInteraction: true,
ligandView: {
auth_asym_Id: params.chain,
auth_seq_id: params.resid,
hydrogens: true
},
backgroundColour: '0xFFFFFF',
bgColor: {r:255, g:255, b:255},
//customColorList: [0xff0000, 0x0000ff],
//representationStyle: representationStyle//,
customData: {
url: `https://wwwdev.ebi.ac.uk/pdbe/coordinates/${params.pdbid}/ligandInteraction?&authAsymId=${params.chain}&authSeqNumber=${params.resid}&radius=5&dataSource=hydrogens`,
url: `https://wwwdev.ebi.ac.uk/pdbe/model-server/v1/${params.pdbid}/residueSurroundings?&auth_asym_id=${params.chain}&auth_seq_id=${params.resid}&radius=5&data_source=pdb-h`,
format: 'cif'
}
}
var pdbeMolstar = new MolStarPdbeWrapper();
var pdbeMolstar = new PDBeMolstarPlugin();
pdbeMolstar.render(document.getElementById('3dViewer'), initParams);
});
}());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment