Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tbgl
tools
mrdna
Commits
d9626894
Commit
d9626894
authored
Sep 17, 2018
by
cmaffeo2
Browse files
Updated simulate.py to fix ENM name, copy force field
parent
b7c3f69d
Changes
3
Hide whitespace changes
Inline
Side-by-side
bin/enrgmd
View file @
d9626894
...
...
@@ -64,7 +64,6 @@ http://dx.doi.org/10.1093/nar/gkw155
model
.
_clear_beads
()
model
.
_generate_atomic_model
(
scale
=
args
.
backbone_scale
)
model
.
write_atomic_ENM
(
prefix
)
model
.
atomic_simulate
(
output_name
=
prefix
)
try
:
shutil
.
copytree
(
get_resource_path
(
"charmm36.nbfix"
),
"charmm36.nbfix"
)
except
FileExistsError
:
...
...
@@ -73,6 +72,7 @@ http://dx.doi.org/10.1093/nar/gkw155
os
.
makedirs
(
'output'
)
except
FileExistsError
:
...
model
.
atomic_simulate
(
output_name
=
prefix
)
except
:
raise
...
...
mrdna/readers/cadnano_segments.py
View file @
d9626894
...
...
@@ -9,6 +9,7 @@ from ..coords import readArbdCoords, readAvgArbdCoords
from
..segmentmodel
import
SegmentModel
,
SingleStrandedSegment
,
DoubleStrandedSegment
from
..model.dna_sequence
import
m13
as
m13seq
## TODO: separate SegmentModel from ArbdModel so multiple parts can be combined
## TODO: catch circular strands in "get_5prime" cadnano calls
## TODO: handle special motifs
...
...
mrdna/simulate.py
View file @
d9626894
import
os
import
tempfile
from
.coords
import
readArbdCoords
,
readAvgArbdCoords
import
shutil
from
.
import
get_resource_path
arbd
=
"/home/cmaffeo2/development/cuda/arbd.dbg/src/arbd"
# reduced the mem footprint cause vmd
namd
=
"/home/cmaffeo2/development/namd-bin/NAMD_Git-2017-07-06_Linux-x86_64-multicore-CUDA/namd2"
...
...
@@ -97,7 +99,11 @@ def multiresolution_simulation( model, output_name,
model
.
update_splines
(
coordinates
)
model
.
_clear_beads
()
model
.
_generate_atomic_model
(
scale
=
backbone_scale
)
model
.
write_atomic_ENM
(
output_name
)
try
:
shutil
.
copytree
(
get_resource_path
(
"charmm36.nbfix"
),
"charmm36.nbfix"
)
except
FileExistsError
:
...
model
.
write_atomic_ENM
(
output_prefix
)
model
.
atomic_simulate
(
output_name
=
output_prefix
)
ret
=
directory
...
...
Write
Preview
Supports
Markdown
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