Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
6d9bef03
"...ssh:/git@developer.sourcefind.cn:2222/tsoc/openmm.git" did not exist on "78902bed7e7b65d1aeb63216772c6099eb0fb6fd"
Commit
6d9bef03
authored
Apr 05, 2018
by
peastman
Browse files
Fixed error in determining protein size when building membrane
parent
424c06e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wrappers/python/simtk/openmm/app/modeller.py
wrappers/python/simtk/openmm/app/modeller.py
+3
-3
No files found.
wrappers/python/simtk/openmm/app/modeller.py
View file @
6d9bef03
...
@@ -6,7 +6,7 @@ Simbios, the NIH National Center for Physics-Based Simulation of
...
@@ -6,7 +6,7 @@ Simbios, the NIH National Center for Physics-Based Simulation of
Biological Structures at Stanford, funded under the NIH Roadmap for
Biological Structures at Stanford, funded under the NIH Roadmap for
Medical Research, grant U54 GM072970. See https://simtk.org.
Medical Research, grant U54 GM072970. See https://simtk.org.
Portions copyright (c) 2012-201
7
Stanford University and the Authors.
Portions copyright (c) 2012-201
8
Stanford University and the Authors.
Authors: Peter Eastman
Authors: Peter Eastman
Contributors:
Contributors:
...
@@ -1192,8 +1192,8 @@ class Modeller(object):
...
@@ -1192,8 +1192,8 @@ class Modeller(object):
# Figure out how many copies of the membrane patch we need in each direction.
# Figure out how many copies of the membrane patch we need in each direction.
proteinPos
=
self
.
positions
.
value_in_unit
(
nanometer
)
proteinPos
=
self
.
positions
.
value_in_unit
(
nanometer
)
proteinMinPos
=
min
(
proteinPos
)
proteinMinPos
=
Vec3
(
*
[
min
((
p
[
i
]
for
p
in
proteinPos
))
for
i
in
range
(
3
)]
)
proteinMaxPos
=
max
(
proteinPos
)
proteinMaxPos
=
Vec3
(
*
[
max
((
p
[
i
]
for
p
in
proteinPos
))
for
i
in
range
(
3
)]
)
proteinSize
=
proteinMaxPos
-
proteinMinPos
proteinSize
=
proteinMaxPos
-
proteinMinPos
proteinCenterPos
=
(
proteinMinPos
+
proteinMaxPos
)
/
2
proteinCenterPos
=
(
proteinMinPos
+
proteinMaxPos
)
/
2
proteinCenterPos
=
Vec3
(
proteinCenterPos
[
0
],
proteinCenterPos
[
1
],
membraneCenterZ
)
proteinCenterPos
=
Vec3
(
proteinCenterPos
[
0
],
proteinCenterPos
[
1
],
membraneCenterZ
)
...
...
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