Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pdbfixer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pdbfixer
Commits
01ade19a
Unverified
Commit
01ade19a
authored
Mar 30, 2022
by
Peter Eastman
Committed by
GitHub
Mar 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added boxShape option to addSolvent() (#245)
parent
437344ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
pdbfixer/pdbfixer.py
+5
-3
No files found.
pdbfixer/pdbfixer.py
View file @
01ade19a
...
@@ -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) 2013-202
1
Stanford University and the Authors.
Portions copyright (c) 2013-202
2
Stanford University and the Authors.
Authors: Peter Eastman
Authors: Peter Eastman
Contributors:
Contributors:
...
@@ -1046,7 +1046,7 @@ class PDBFixer(object):
...
@@ -1046,7 +1046,7 @@ class PDBFixer(object):
self
.
topology
=
modeller
.
topology
self
.
topology
=
modeller
.
topology
self
.
positions
=
modeller
.
positions
self
.
positions
=
modeller
.
positions
def
addSolvent
(
self
,
boxSize
=
None
,
padding
=
None
,
boxVectors
=
None
,
positiveIon
=
'Na+'
,
negativeIon
=
'Cl-'
,
ionicStrength
=
0
*
unit
.
molar
):
def
addSolvent
(
self
,
boxSize
=
None
,
padding
=
None
,
boxVectors
=
None
,
positiveIon
=
'Na+'
,
negativeIon
=
'Cl-'
,
ionicStrength
=
0
*
unit
.
molar
,
boxShape
=
'cube'
):
"""Add a solvent box surrounding the structure.
"""Add a solvent box surrounding the structure.
Parameters
Parameters
...
@@ -1063,6 +1063,8 @@ class PDBFixer(object):
...
@@ -1063,6 +1063,8 @@ class PDBFixer(object):
The type of negative ion to add. Allowed values are 'Cl-', 'Br-', 'F-', and 'I-'.
The type of negative ion to add. Allowed values are 'Cl-', 'Br-', 'F-', and 'I-'.
ionicStrength : openmm.unit.Quantity with units compatible with molar, optional, default=0*molar
ionicStrength : openmm.unit.Quantity with units compatible with molar, optional, default=0*molar
The total concentration of ions (both positive and negative) to add. This does not include ions that are added to neutralize the system.
The total concentration of ions (both positive and negative) to add. This does not include ions that are added to neutralize the system.
boxShape: str='cube'
the box shape to use. Allowed values are 'cube', 'dodecahedron', and 'octahedron'. If padding is None, this is ignored.
Examples
Examples
--------
--------
...
@@ -1080,7 +1082,7 @@ class PDBFixer(object):
...
@@ -1080,7 +1082,7 @@ class PDBFixer(object):
modeller
=
app
.
Modeller
(
self
.
topology
,
self
.
positions
)
modeller
=
app
.
Modeller
(
self
.
topology
,
self
.
positions
)
forcefield
=
self
.
_createForceField
(
self
.
topology
,
True
)
forcefield
=
self
.
_createForceField
(
self
.
topology
,
True
)
modeller
.
addSolvent
(
forcefield
,
padding
=
padding
,
boxSize
=
boxSize
,
boxVectors
=
boxVectors
,
positiveIon
=
positiveIon
,
negativeIon
=
negativeIon
,
ionicStrength
=
ionicStrength
)
modeller
.
addSolvent
(
forcefield
,
padding
=
padding
,
boxSize
=
boxSize
,
boxVectors
=
boxVectors
,
boxShape
=
boxShape
,
positiveIon
=
positiveIon
,
negativeIon
=
negativeIon
,
ionicStrength
=
ionicStrength
)
chains
=
list
(
modeller
.
topology
.
chains
())
chains
=
list
(
modeller
.
topology
.
chains
())
if
len
(
chains
)
==
1
:
if
len
(
chains
)
==
1
:
chains
[
0
]
.
id
=
'A'
chains
[
0
]
.
id
=
'A'
...
...
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