Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
pdbe
web-components
pdb-ligand-env
Commits
2d7c33d3
Commit
2d7c33d3
authored
Jul 27, 2020
by
Lukas Pravda
Browse files
improve testing
parent
30faff7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
dependencies/index.html
dependencies/index.html
+14
-13
No files found.
dependencies/index.html
View file @
2d7c33d3
...
...
@@ -8,8 +8,8 @@
<!-- MOL* -->
<link
rel=
"stylesheet"
type=
"text/css"
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>
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>
<!-- Web component polyfill (only loads what it needs) -->
<script
src=
"https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs/webcomponents-lite.js"
charset=
"utf-8"
>
...
...
@@ -42,9 +42,9 @@
if
(
result
.
bmid
===
undefined
)
{
result
[
'
query
'
]
=
`https://wwwdev.ebi.ac.uk/pdbe/
model-server/v1
/
${
result
.
pdbid
}
/
residueSurroundings
?&auth
_a
sym
_i
d=$
${
result
.
chain
}
&auth
_seq_id
=
${
result
.
resid
}
&radius=5&data
_s
ource=
pdb-h
`
`https://wwwdev.ebi.ac.uk/pdbe/
coordinates
/
${
result
.
pdbid
}
/
ligandInteraction
?&auth
A
sym
I
d=$
${
result
.
chain
}
&auth
SeqNumber
=
${
result
.
resid
}
&radius=5&data
S
ource=
hydrogens
`
}
else
{
result
[
'
query
'
]
=
`https://wwwdev.ebi.ac.uk/pdbe/
model-server/v1
/
${
result
.
pdbid
}
?data
_s
ource=
pdb-h
`
result
[
'
query
'
]
=
`https://wwwdev.ebi.ac.uk/pdbe/
coordinates
/
${
result
.
pdbid
}
?data
S
ource=
hydrogens
`
}
if
(
result
.
chain
!==
undefined
)
result
.
chain
=
result
.
chain
.
toUpperCase
();
...
...
@@ -64,9 +64,9 @@
}
else
{
params
=
{
pdbid
:
'
1cbs
'
,
chain
:
'
A
_1
'
,
chain
:
'
A
'
,
resid
:
200
,
query
:
"
https://wwwdev.ebi.ac.uk/pdbe/
model-server/v1/1cbs/residueSurroundings
?&auth
_a
sym
_id=A_1&auth_seq_id=
200&radius=5&data
_s
ource=
pdb-h
"
query
:
"
https://wwwdev.ebi.ac.uk/pdbe/
coordinates/1cbs/ligandInteraction
?&auth
A
sym
Id=$A&authSeqNumber=$
200&radius=5&data
S
ource=
hydrogens
"
};
}
...
...
@@ -79,6 +79,7 @@
var
initParams
=
{
moleculeId
:
params
.
pdbid
,
pdbeUrl
:
'
https://wwwdev.ebi.ac.uk/pdbe/
'
,
loadMaps
:
true
,
validationAnnotation
:
true
,
domainAnnotation
:
true
,
lowPrecisionCoords
:
true
,
...
...
@@ -88,21 +89,21 @@
subscribeEvents
:
true
,
showPDBeLogo
:
false
,
assemblyId
:
'
preferred
'
,
//'deposited'
selectInteraction
:
tru
e
,
//
selectInteraction:
fals
e,
ligandView
:
{
auth_asym_Id
:
params
.
chain
,
auth_seq_id
:
params
.
resid
,
hydrogens
:
true
},
b
gColor
:
{
r
:
255
,
g
:
255
,
b
:
255
}
,
b
ackgroundColour
:
'
0xFFFFFF
'
,
//customColorList: [0xff0000, 0x0000ff],
//representationStyle: representationStyle//,
customData
:
{
url
:
`https://wwwdev.ebi.ac.uk/pdbe/
model-server/v1
/
${
params
.
pdbid
}
/
residueSurroundings
?&auth
_a
sym
_i
d=
${
params
.
chain
}
&auth
_seq_id
=
${
params
.
resid
}
&radius=5&data
_s
ource=
pdb-h
`
,
url
:
`https://wwwdev.ebi.ac.uk/pdbe/
coordinates
/
${
params
.
pdbid
}
/
ligandInteraction
?&auth
A
sym
I
d=
${
params
.
chain
}
&auth
SeqNumber
=
${
params
.
resid
}
&radius=5&data
S
ource=
hydrogens
`
,
format
:
'
cif
'
}
}
var
pdbeMolstar
=
new
PDBe
Mol
s
tarP
lugin
();
var
pdbeMolstar
=
new
Mol
S
tarP
dbeWrapper
();
pdbeMolstar
.
render
(
document
.
getElementById
(
'
3dViewer
'
),
initParams
);
});
}());
...
...
@@ -117,12 +118,12 @@
<div
style=
"position: relative; float: left;"
>
<div
id=
'3dViewer'
style=
"position:relative; width: 500px;height: 500px;"
></div>
</div>
<div
style=
"position: relative; float: left;"
>
<!--
<div style="position: relative; float: left;">
<div id="rt 1" style="width: 500px; height: 500px; position: relative">
<pdb-ligand-env
pdb-id=
"5e98"
bound-molecule-id=
"bm1"
zoom-on
environment=
"dev"
></pdb-ligand-env>
<pdb-ligand-env pdb-id="5e98" bound-molecule-id="bm1" zoom-on></pdb-ligand-env>
</div>
</div>
<!--
<div style="position: relative; float: left;">
<div style="position: relative; float: left;">
<div id="rt 1" style="width: 500px; height: 500px; position: relative">
<pdb-ligand-env pdb-id="5e98" bound-molecule-id="bm1" entity-id="3" zoom-on></pdb-ligand-env>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment