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
fa4b1dae
Commit
fa4b1dae
authored
Feb 07, 2020
by
cmaffeo2
Browse files
Added nonbonded exclusions between beads participating in crossovers within 3 bp of the crossover
parent
803f652a
Changes
1
Hide whitespace changes
Inline
Side-by-side
mrdna/segmentmodel.py
View file @
fa4b1dae
...
...
@@ -2411,6 +2411,15 @@ class SegmentModel(ArbdModel):
break
# exclusions.update( tmp )
## Add exclusions very near crossovers
for
c
,
A
,
B
in
sum
([
self
.
get_connections
(
term
)
for
term
in
(
"crossover"
,
"terminal_crossover"
)],[]):
b1
,
b2
=
[
loc
.
particle
for
loc
in
(
A
,
B
)]
near_b1
=
_recursively_get_beads_within
(
b1
,
3
,
done
=
[])
near_b2
=
_recursively_get_beads_within
(
b2
,
3
,
done
=
[])
for
bi
in
near_b1
:
for
bj
in
near_b2
:
exclusions
.
add
((
bi
,
bj
))
if
self
.
DEBUG
:
print
(
"Adding %d exclusions"
%
len
(
exclusions
))
for
b1
,
b2
in
exclusions
:
parent
=
self
.
_getParent
(
b1
,
b2
)
...
...
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