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
0def474f
Unverified
Commit
0def474f
authored
2 years ago
by
Alexander Rose
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #773 from molstar/model-conf-fields
include occupancy & B_iso_or_equiv in model conformation
parents
2bc381fe
e0ea9a28
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
src/mol-model/structure/coordinates/coordinates.ts
+5
-5
5 additions, 5 deletions
src/mol-model/structure/coordinates/coordinates.ts
src/mol-model/structure/model/model.ts
+6
-2
6 additions, 2 deletions
src/mol-model/structure/model/model.ts
with
12 additions
and
7 deletions
CHANGELOG.md
+
1
−
0
View file @
0def474f
...
@@ -20,6 +20,7 @@ Note that since we don't clearly distinguish between a public and private interf
...
@@ -20,6 +20,7 @@ Note that since we don't clearly distinguish between a public and private interf
-
Fix camera project/unproject when using offset viewport
-
Fix camera project/unproject when using offset viewport
-
Add support for loading all blocks from a mmcif file as a trajectory
-
Add support for loading all blocks from a mmcif file as a trajectory
-
Add
`Frustum3D`
and
`Plane3D`
math primitives
-
Add
`Frustum3D`
and
`Plane3D`
math primitives
-
Include
`occupancy`
and
`B_iso_or_equiv`
when creating
`Conformation`
from
`Model`
-
Remove LazyImports (introduced in v3.31.1)
-
Remove LazyImports (introduced in v3.31.1)
## [v3.32.0] - 2023-03-20
## [v3.32.0] - 2023-03-20
...
...
This diff is collapsed.
Click to expand it.
src/mol-model/structure/coordinates/coordinates.ts
+
5
−
5
View file @
0def474f
/**
/**
* Copyright (c) 2019-202
1
mol* contributors, licensed under MIT, See LICENSE file for more info.
* Copyright (c) 2019-202
3
mol* contributors, licensed under MIT, See LICENSE file for more info.
*
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @author David Sehnal <david.sehnal@gmail.com>
* @author David Sehnal <david.sehnal@gmail.com>
...
@@ -99,7 +99,7 @@ namespace Coordinates {
...
@@ -99,7 +99,7 @@ namespace Coordinates {
/**
/**
* Only use ordering if it's not identity.
* Only use ordering if it's not identity.
*/
*/
export
function
getAtomicConformation
(
frame
:
Frame
,
atomId
:
Column
<
number
>
,
ordering
?:
ArrayLike
<
number
>
):
AtomicConformation
{
export
function
getAtomicConformation
(
frame
:
Frame
,
fields
:
{
atomId
:
Column
<
number
>
,
occupancy
?:
Column
<
number
>
,
B_iso_or_equiv
?:
Column
<
number
>
},
ordering
?:
ArrayLike
<
number
>
):
AtomicConformation
{
let
{
x
,
y
,
z
}
=
frame
;
let
{
x
,
y
,
z
}
=
frame
;
if
(
frame
.
xyzOrdering
.
frozen
)
{
if
(
frame
.
xyzOrdering
.
frozen
)
{
...
@@ -143,9 +143,9 @@ namespace Coordinates {
...
@@ -143,9 +143,9 @@ namespace Coordinates {
return
{
return
{
id
:
UUID
.
create22
(),
id
:
UUID
.
create22
(),
atomId
,
atomId
:
fields
.
atomId
,
occupancy
:
Column
.
ofConst
(
1
,
frame
.
elementCount
,
Column
.
Schema
.
int
),
occupancy
:
fields
.
occupancy
??
Column
.
ofConst
(
1
,
frame
.
elementCount
,
Column
.
Schema
.
int
),
B_iso_or_equiv
:
Column
.
ofConst
(
0
,
frame
.
elementCount
,
Column
.
Schema
.
float
),
B_iso_or_equiv
:
fields
.
B_iso_or_equiv
??
Column
.
ofConst
(
0
,
frame
.
elementCount
,
Column
.
Schema
.
float
),
xyzDefined
:
true
,
xyzDefined
:
true
,
x
,
x
,
y
,
y
,
...
...
This diff is collapsed.
Click to expand it.
src/mol-model/structure/model/model.ts
+
6
−
2
View file @
0def474f
/**
/**
* Copyright (c) 2017-202
2
mol* contributors, licensed under MIT, See LICENSE file for more info.
* Copyright (c) 2017-202
3
mol* contributors, licensed under MIT, See LICENSE file for more info.
*
*
* @author David Sehnal <david.sehnal@gmail.com>
* @author David Sehnal <david.sehnal@gmail.com>
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @author Alexander Rose <alexander.rose@weirdbyte.de>
...
@@ -112,7 +112,11 @@ export namespace Model {
...
@@ -112,7 +112,11 @@ export namespace Model {
...
model
,
...
model
,
id
:
UUID
.
create22
(),
id
:
UUID
.
create22
(),
modelNum
:
i
,
modelNum
:
i
,
atomicConformation
:
Coordinates
.
getAtomicConformation
(
f
,
model
.
atomicConformation
.
atomId
,
srcIndexArray
),
atomicConformation
:
Coordinates
.
getAtomicConformation
(
f
,
{
atomId
:
model
.
atomicConformation
.
atomId
,
occupancy
:
model
.
atomicConformation
.
occupancy
,
B_iso_or_equiv
:
model
.
atomicConformation
.
B_iso_or_equiv
},
srcIndexArray
),
// TODO: add support for supplying sphere and gaussian coordinates in addition to atomic coordinates?
// TODO: add support for supplying sphere and gaussian coordinates in addition to atomic coordinates?
// coarseConformation: coarse.conformation,
// coarseConformation: coarse.conformation,
customProperties
:
new
CustomProperties
(),
customProperties
:
new
CustomProperties
(),
...
...
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