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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michal Malý
Molstar
Commits
e5dae6c0
Commit
e5dae6c0
authored
Feb 6, 2021
by
Alexander Rose
Browse files
Options
Downloads
Patches
Plain Diff
increased default quality for larger structures
- rational is that larger structures can take a bit longer to create
parent
16f4524b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/mol-model/structure/structure/structure.ts
+1
-1
1 addition, 1 deletion
src/mol-model/structure/structure/structure.ts
src/mol-repr/util.ts
+13
-11
13 additions, 11 deletions
src/mol-repr/util.ts
with
14 additions
and
12 deletions
src/mol-model/structure/structure/structure.ts
+
1
−
1
View file @
e5dae6c0
...
...
@@ -1165,7 +1165,7 @@ namespace Structure {
/** Must be lower to be medium */
mediumResidueCount
:
5000
,
/** Must be lower to be large (big ribosomes like 4UG0 should still be `large`) */
largeResidueCount
:
2
0000
,
largeResidueCount
:
3
0000
,
/**
* Structures above `largeResidueCount` are consider huge when they have
* a `highSymmetryUnitCount` or gigantic when not
...
...
This diff is collapsed.
Click to expand it.
src/mol-repr/util.ts
+
13
−
11
View file @
e5dae6c0
/**
* Copyright (c) 2018-202
0
mol* contributors, licensed under MIT, See LICENSE file for more info.
* Copyright (c) 2018-202
1
mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
...
...
@@ -59,9 +59,9 @@ export interface QualityProps {
}
export
const
DefaultQualityThresholds
=
{
lowestElementCount
:
5
00
_000
,
lowerElementCount
:
2
00
_000
,
lowElementCount
:
6
0
_000
,
lowestElementCount
:
1
_0
00_000
,
lowerElementCount
:
5
00
_000
,
lowElementCount
:
10
0
_000
,
mediumElementCount
:
20
_000
,
highElementCount
:
2
_000
,
coarseGrainedFactor
:
10
,
...
...
@@ -129,49 +129,49 @@ export function getQualityProps(props: Partial<QualityProps>, data?: any) {
detail
=
3
;
radialSegments
=
36
;
linearSegments
=
18
;
resolution
=
Math
.
max
(
volume
/
500
_000_000
,
0.1
)
;
resolution
=
0.1
;
doubleSided
=
true
;
break
;
case
'
higher
'
:
detail
=
3
;
radialSegments
=
28
;
linearSegments
=
14
;
resolution
=
Math
.
max
(
volume
/
400
_000_000
,
0.3
)
;
resolution
=
0.3
;
doubleSided
=
true
;
break
;
case
'
high
'
:
detail
=
2
;
radialSegments
=
20
;
linearSegments
=
10
;
resolution
=
Math
.
max
(
volume
/
300
_000_000
,
0.5
)
;
resolution
=
0.5
;
doubleSided
=
true
;
break
;
case
'
medium
'
:
detail
=
1
;
radialSegments
=
12
;
linearSegments
=
8
;
resolution
=
Math
.
max
(
volume
/
200
_000_000
,
1
)
;
resolution
=
0.8
;
doubleSided
=
true
;
break
;
case
'
low
'
:
detail
=
0
;
radialSegments
=
8
;
linearSegments
=
3
;
resolution
=
Math
.
max
(
volume
/
150
_000_000
,
2
)
;
resolution
=
1.3
;
doubleSided
=
false
;
break
;
case
'
lower
'
:
detail
=
0
;
radialSegments
=
4
;
linearSegments
=
2
;
resolution
=
Math
.
max
(
volume
/
100
_000_000
,
4
)
;
resolution
=
2
;
doubleSided
=
false
;
break
;
case
'
lowest
'
:
detail
=
0
;
radialSegments
=
2
;
linearSegments
=
1
;
resolution
=
Math
.
max
(
volume
/
75
_000_000
,
8
)
;
resolution
=
4
;
doubleSided
=
false
;
break
;
case
'
custom
'
:
...
...
@@ -179,6 +179,8 @@ export function getQualityProps(props: Partial<QualityProps>, data?: any) {
break
;
}
// max resolution based on volume (for 'auto' quality)
resolution
=
Math
.
max
(
resolution
,
volume
/
500
_000_000
);
resolution
=
Math
.
min
(
resolution
,
20
);
if
((
props
.
alpha
!==
undefined
&&
props
.
alpha
<
1
)
||
!!
props
.
xrayShaded
)
{
...
...
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