Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Molstar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
Michal Malý
Molstar
Commits
c43ed906
Commit
c43ed906
authored
5 years ago
by
Alexander Rose
Browse files
Options
Downloads
Patches
Plain Diff
improve volume streaming method determination
- take content_type of related entry into account
parent
a85242d9
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
src/mol-plugin/behavior/dynamic/volume-streaming/util.ts
+8
-4
8 additions, 4 deletions
src/mol-plugin/behavior/dynamic/volume-streaming/util.ts
with
8 additions
and
4 deletions
src/mol-plugin/behavior/dynamic/volume-streaming/util.ts
+
8
−
4
View file @
c43ed906
...
...
@@ -18,16 +18,20 @@ export function getStreamingMethod(s?: Structure, defaultKind: VolumeServerInfo.
if
(
!
MmcifFormat
.
is
(
model
.
sourceData
))
return
defaultKind
;
const
{
db
}
=
model
.
sourceData
.
data
;
const
{
db_name
,
content_type
}
=
db
.
pdbx_database_related
// prefer EMDB entries over structure-factors (SF) e.g. for 'ELECTRON CRYSTALLOGRAPHY' entries
// like 6axz or 6kj3 for which EMDB entries are available but map calculation from SF is hard
// Prefer EMDB entries over structure-factors (SF) e.g. for 'ELECTRON CRYSTALLOGRAPHY' entries
// like 6AXZ or 6KJ3 for which EMDB entries are available but map calculation from SF is hard.
// Also check for `content_type` of 'associated EM volume' to exclude cases like 6TEK which
// are solved with 'X-RAY DIFFRACTION' but have an related EMDB entry of type 'other EM volume'.
for
(
let
i
=
0
,
il
=
db
.
pdbx_database_related
.
_rowCount
;
i
<
il
;
++
i
)
{
if
(
db
.
pdbx_database_related
.
db
_name
.
value
(
i
).
toUpperCase
()
===
'
EMDB
'
)
{
if
(
db_name
.
value
(
i
).
toUpperCase
()
===
'
EMDB
'
&&
content_type
.
value
(
i
)
===
'
associated EM volume
'
)
{
return
'
em
'
}
}
if
(
db
.
pdbx_database_status
.
status_code_sf
.
isDefined
&&
db
.
pdbx_database_status
.
status_code_sf
.
value
(
0
)
===
'
REL
'
)
{
const
{
status_code_sf
}
=
db
.
pdbx_database_status
if
(
status_code_sf
.
isDefined
&&
status_code_sf
.
value
(
0
)
===
'
REL
'
)
{
return
'
x-ray
'
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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