Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
ParmEd
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ATB-Dependencies
ParmEd
Commits
beab3780
Commit
beab3780
authored
Aug 10, 2015
by
Jason Swails
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update imports in examples.
parent
e98c43f6
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
34 deletions
+27
-34
simulate_amber_gb.py
examples/amber/simulate_amber_gb.py
+3
-4
simulate_amber_pme.py
examples/amber/simulate_amber_pme.py
+3
-4
simulate_charmm_gb.py
examples/charmm/simulate_charmm_gb.py
+5
-5
simulate_charmm_gui.py
examples/charmm/simulate_charmm_gui.py
+5
-5
simulate_gromacs_gb.py
examples/gromacs/simulate_gromacs_gb.py
+5
-6
simulate_gromacs_pme.py
examples/gromacs/simulate_gromacs_pme.py
+5
-9
simulate_ala12_mutant.py
examples/rosetta/simulate_ala12_mutant.py
+1
-1
No files found.
examples/amber/simulate_amber_gb.py
View file @
beab3780
...
@@ -8,13 +8,12 @@ import simtk.openmm as mm
...
@@ -8,13 +8,12 @@ import simtk.openmm as mm
import
simtk.openmm.app
as
app
import
simtk.openmm.app
as
app
# ParmEd Imports
# ParmEd Imports
from
chemistry.amber
import
AmberParm
from
parmed
import
load_file
,
unit
as
u
from
chemistry.openmm.reporters
import
StateDataReporter
,
NetCDFReporter
from
parmed.openmm
import
StateDataReporter
,
NetCDFReporter
from
chemistry
import
unit
as
u
# Load the Amber files
# Load the Amber files
print
(
'Loading AMBER files...'
)
print
(
'Loading AMBER files...'
)
ala5_gas
=
AmberParm
(
'ala5_gas.parm7'
,
'ala5_gas.rst7'
)
ala5_gas
=
load_file
(
'ala5_gas.parm7'
,
'ala5_gas.rst7'
)
# Create the OpenMM system
# Create the OpenMM system
print
(
'Creating OpenMM System'
)
print
(
'Creating OpenMM System'
)
...
...
examples/amber/simulate_amber_pme.py
View file @
beab3780
...
@@ -8,13 +8,12 @@ import simtk.openmm as mm
...
@@ -8,13 +8,12 @@ import simtk.openmm as mm
import
simtk.openmm.app
as
app
import
simtk.openmm.app
as
app
# ParmEd Imports
# ParmEd Imports
from
chemistry.amber
import
AmberParm
from
parmed
import
load_file
,
unit
as
u
from
chemistry.openmm.reporters
import
StateDataReporter
,
NetCDFReporter
from
parmed.openmm
import
StateDataReporter
,
NetCDFReporter
from
chemistry
import
unit
as
u
# Load the Amber files
# Load the Amber files
print
(
'Loading AMBER files...'
)
print
(
'Loading AMBER files...'
)
ala2_solv
=
AmberParm
(
'ala2_solv.parm7'
,
'ala2_solv.rst7'
)
ala2_solv
=
load_file
(
'ala2_solv.parm7'
,
'ala2_solv.rst7'
)
# Create the OpenMM system
# Create the OpenMM system
print
(
'Creating OpenMM System'
)
print
(
'Creating OpenMM System'
)
...
...
examples/charmm/simulate_charmm_gb.py
View file @
beab3780
...
@@ -8,15 +8,15 @@ import simtk.openmm as mm
...
@@ -8,15 +8,15 @@ import simtk.openmm as mm
import
simtk.openmm.app
as
app
import
simtk.openmm.app
as
app
# ParmEd Imports
# ParmEd Imports
from
chemistry.charmm
import
CharmmPsfFile
,
CharmmCrdFile
,
CharmmParameterSet
from
parmed
import
load_file
,
unit
as
u
from
chemistry.openmm
import
StateDataReporter
from
parmed.charmm
import
CharmmParameterSet
from
chemistry
import
unit
as
u
from
parmed.openmm
import
StateDataReporter
# Load the CHARMM files
# Load the CHARMM files
print
(
'Loading CHARMM files...'
)
print
(
'Loading CHARMM files...'
)
params
=
CharmmParameterSet
(
'toppar/par_all36_prot.prm'
)
params
=
CharmmParameterSet
(
'toppar/par_all36_prot.prm'
)
ala5_gas
=
CharmmPsfF
ile
(
'ala5_autopsf.psf'
)
ala5_gas
=
load_f
ile
(
'ala5_autopsf.psf'
)
ala5_crds
=
app
.
PDBF
ile
(
'ala5_autopsf.pdb'
)
ala5_crds
=
load_f
ile
(
'ala5_autopsf.pdb'
)
# NOTE NOTE
# NOTE NOTE
# The parameter set we used here is the CHARMM 36 force field, but this is
# The parameter set we used here is the CHARMM 36 force field, but this is
...
...
examples/charmm/simulate_charmm_gui.py
View file @
beab3780
...
@@ -8,16 +8,16 @@ import simtk.openmm as mm
...
@@ -8,16 +8,16 @@ import simtk.openmm as mm
import
simtk.openmm.app
as
app
import
simtk.openmm.app
as
app
# ParmEd Imports
# ParmEd Imports
from
chemistry.charmm
import
CharmmPsfFile
,
CharmmCrdFile
,
CharmmParameterSet
from
parmed
import
load_file
,
unit
as
u
from
chemistry.openmm.reporters
import
StateDataReporter
from
parmed.charmm
import
CharmmParameterSet
from
chemistry
import
unit
as
u
from
parmed.openmm
import
StateDataReporter
# Load the CHARMM files
# Load the CHARMM files
print
(
'Loading CHARMM files...'
)
print
(
'Loading CHARMM files...'
)
params
=
CharmmParameterSet
(
'toppar/par_all36_prot.prm'
,
params
=
CharmmParameterSet
(
'toppar/par_all36_prot.prm'
,
'toppar/toppar_water_ions.str'
)
'toppar/toppar_water_ions.str'
)
ala2_solv
=
CharmmPsfF
ile
(
'ala2_charmmgui.psf'
)
ala2_solv
=
load_f
ile
(
'ala2_charmmgui.psf'
)
ala2_crds
=
CharmmCrdF
ile
(
'ala2_charmmgui.crd'
)
ala2_crds
=
load_f
ile
(
'ala2_charmmgui.crd'
)
# NOTE NOTE
# NOTE NOTE
# The parameter set we used here is the CHARMM 36 force field, but this is
# The parameter set we used here is the CHARMM 36 force field, but this is
...
...
examples/gromacs/simulate_gromacs_gb.py
View file @
beab3780
...
@@ -8,14 +8,13 @@ import simtk.openmm as mm
...
@@ -8,14 +8,13 @@ import simtk.openmm as mm
import
simtk.openmm.app
as
app
import
simtk.openmm.app
as
app
# ParmEd Imports
# ParmEd Imports
from
chemistry
import
load_file
from
parmed
import
load_file
from
chemistry
.openmm.reporters
import
NetCDFReporter
from
parmed
.openmm.reporters
import
NetCDFReporter
from
chemistry
import
unit
as
u
from
parmed
import
unit
as
u
# Load the Gromacs files
# Load the Gromacs files
print
(
'Loading Gromacs files...'
)
print
(
'Loading Gromacs files...'
)
top
=
load_file
(
'dhfr_gas.top'
)
top
=
load_file
(
'dhfr_gas.top'
,
xyz
=
'dhfr_gas.gro'
)
gro
=
load_file
(
'dhfr_gas.gro'
)
# Create the OpenMM system
# Create the OpenMM system
print
(
'Creating OpenMM System'
)
print
(
'Creating OpenMM System'
)
...
@@ -40,7 +39,7 @@ prop = dict(CudaPrecision='mixed') # Use mixed single/double precision
...
@@ -40,7 +39,7 @@ prop = dict(CudaPrecision='mixed') # Use mixed single/double precision
sim
=
app
.
Simulation
(
top
.
topology
,
system
,
integrator
,
platform
,
prop
)
sim
=
app
.
Simulation
(
top
.
topology
,
system
,
integrator
,
platform
,
prop
)
# Set the particle positions
# Set the particle positions
sim
.
context
.
setPositions
(
gro
.
positions
)
sim
.
context
.
setPositions
(
top
.
positions
)
# Minimize the energy
# Minimize the energy
print
(
'Minimizing energy'
)
print
(
'Minimizing energy'
)
...
...
examples/gromacs/simulate_gromacs_pme.py
View file @
beab3780
...
@@ -8,17 +8,13 @@ import simtk.openmm as mm
...
@@ -8,17 +8,13 @@ import simtk.openmm as mm
import
simtk.openmm.app
as
app
import
simtk.openmm.app
as
app
# ParmEd Imports
# ParmEd Imports
from
chemistry
import
load_file
from
parmed
import
load_file
from
chemistry
.openmm.reporters
import
NetCDFReporter
from
parmed
.openmm.reporters
import
NetCDFReporter
from
chemistry
import
unit
as
u
from
parmed
import
unit
as
u
# Load the Gromacs files
# Load the Gromacs files
print
(
'Loading Gromacs files...'
)
print
(
'Loading Gromacs files...'
)
top
=
load_file
(
'dhfr_pme.top'
)
top
=
load_file
(
'dhfr_pme.top'
,
xyz
=
'dhfr_pme.gro'
)
gro
=
load_file
(
'dhfr_pme.gro'
)
# Transfer the unit cell information from the GRO file to the top object
top
.
box
=
gro
.
box
[:]
# Create the OpenMM system
# Create the OpenMM system
print
(
'Creating OpenMM System'
)
print
(
'Creating OpenMM System'
)
...
@@ -43,7 +39,7 @@ prop = dict(CudaPrecision='mixed') # Use mixed single/double precision
...
@@ -43,7 +39,7 @@ prop = dict(CudaPrecision='mixed') # Use mixed single/double precision
sim
=
app
.
Simulation
(
top
.
topology
,
system
,
integrator
,
platform
,
prop
)
sim
=
app
.
Simulation
(
top
.
topology
,
system
,
integrator
,
platform
,
prop
)
# Set the particle positions
# Set the particle positions
sim
.
context
.
setPositions
(
gro
.
positions
)
sim
.
context
.
setPositions
(
top
.
positions
)
# Minimize the energy
# Minimize the energy
print
(
'Minimizing energy'
)
print
(
'Minimizing energy'
)
...
...
examples/rosetta/simulate_ala12_mutant.py
View file @
beab3780
...
@@ -8,7 +8,7 @@ from simtk.openmm.app import *
...
@@ -8,7 +8,7 @@ from simtk.openmm.app import *
from
simtk.unit
import
*
from
simtk.unit
import
*
# ParmEd imports
# ParmEd imports
from
chemistry
import
load_rosetta
from
parmed
import
load_rosetta
# PyRosetta imports
# PyRosetta imports
from
toolbox
import
mutate_residue
from
toolbox
import
mutate_residue
...
...
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