Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pdb-ligand-env
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pdbe
web-components
pdb-ligand-env
Commits
ad6c3272
Commit
ad6c3272
authored
4 years ago
by
Lukas Pravda
Browse files
Options
Downloads
Patches
Plain Diff
update molstar in the example
parent
959b2059
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dependencies/index.html
+16
-21
16 additions, 21 deletions
dependencies/index.html
with
16 additions
and
21 deletions
dependencies/index.html
+
16
−
21
View file @
ad6c3272
...
...
@@ -8,8 +8,8 @@
<!-- MOL* -->
<link
rel=
"stylesheet"
type=
"text/css"
href=
"https://www
dev
.ebi.ac.uk/pdbe/pdb-component-library/
v1.0/css/molstar-light-0.0.1
.css"
>
<script
src=
"https://www
dev
.ebi.ac.uk/pdbe/pdb-component-library/
v1.0/js/molstar-0.0.1
.js"
></script>
href=
"https://www.ebi.ac.uk/pdbe/pdb-component-library/
css/pdbe-molstar-1.1.0
.css"
>
<script
src=
"https://www.ebi.ac.uk/pdbe/pdb-component-library/
js/pdbe-molstar-plugin-1.1.0
.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://www
dev
.ebi.ac.uk/pdbe/
coordinates
/
${
result
.
pdbid
}
/
ligand
Interaction?
&
auth
A
sym
I
d=$
$
{
result
.
chain
}
&auth
SeqNumber
=
${
result
.
resid
}
&radius=5&data
S
ource=
hydrogens
`
`https://www.ebi.ac.uk/pdbe/
model-server/v1
/
${
result
.
pdbid
}
/
residue
Interaction?auth
_a
sym
_i
d=
${
result
.
chain
}
&auth
_seq_id
=
${
result
.
resid
}
&radius=5&data
_s
ource=
pdb-h
`
}
else
{
result
[
'
query
'
]
=
`https://www
dev
.ebi.ac.uk/pdbe/
coordinates
/
${
result
.
pdbid
}
?data
S
ource=
hydrogens
`
result
[
'
query
'
]
=
`https://www.ebi.ac.uk/pdbe/
model-server/v1
/
${
result
.
pdbid
}
/full
?data
_s
ource=
pdb-h
`
}
if
(
result
.
chain
!==
undefined
)
result
.
chain
=
result
.
chain
.
toUpperCase
();
...
...
@@ -64,9 +64,9 @@
}
else
{
params
=
{
pdbid
:
'
1cbs
'
,
chain
:
'
A
'
,
chain
:
'
A
_1
'
,
resid
:
200
,
query
:
"
https://www
dev
.ebi.ac.uk/pdbe/
coordinates/1cbs/ligand
Interaction?
&
auth
A
sym
Id=$A&authSeqNumber=$
200&radius=5&data
S
ource=
hydrogens
"
query
:
"
https://www.ebi.ac.uk/pdbe/
model-server/v1/1cbs/residue
Interaction?auth
_a
sym
_id=A_1&auth_seq_id=
200&radius=5&data
_s
ource=
pdb-h
"
};
}
...
...
@@ -78,32 +78,27 @@
var
initParams
=
{
moleculeId
:
params
.
pdbid
,
pdbeUrl
:
'
https://wwwdev.ebi.ac.uk/pdbe/
'
,
loadMaps
:
true
,
validationAnnotation
:
true
,
domainAnnotation
:
true
,
pdbeUrl
:
'
https://www.ebi.ac.uk/pdbe/
'
,
loadMaps
:
false
,
bgColor
:
{
r
:
255
,
g
:
250
,
b
:
250
},
lowPrecisionCoords
:
true
,
isExpanded
:
false
,
hideControls
:
true
,
showLogs
:
false
,
subscribeEvents
:
true
,
showPDBeLogo
:
false
,
assemblyId
:
'
preferred
'
,
//'deposited'
// selectInteraction: false,
subscribeEvents
:
true
,
ligandView
:
{
auth_asym_Id
:
params
.
chain
,
auth_seq_id
:
params
.
resid
,
auth_asym_id
:
params
.
chain
,
hydrogens
:
true
},
backgroundColour
:
'
0xFFFFFF
'
,
//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`
,
format
:
'
cif
'
}
}
var
pdbeMolstar
=
new
Mol
S
tarP
dbeWrapper
();
var
pdbeMolstar
=
new
PDBe
Mol
s
tarP
lugin
();
pdbeMolstar
.
render
(
document
.
getElementById
(
'
3dViewer
'
),
initParams
);
});
}());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment