Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
9c096d85
Commit
9c096d85
authored
14 years ago
by
Marco Biasini
Browse files
Options
Downloads
Patches
Plain Diff
treat Deuterium like hydrogens
parent
1d5c2441
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/conop/src/rule_based_builder.cc
+7
-5
7 additions, 5 deletions
modules/conop/src/rule_based_builder.cc
modules/mol/base/src/impl/atom_prop.cc
+1
-0
1 addition, 0 deletions
modules/mol/base/src/impl/atom_prop.cc
with
8 additions
and
5 deletions
modules/conop/src/rule_based_builder.cc
+
7
−
5
View file @
9c096d85
...
...
@@ -49,7 +49,7 @@ void RuleBasedBuilder::CheckResidueCompleteness(const mol::ResidueHandle& rh)
mol
::
AtomHandleList
atoms
=
rh
.
GetAtomList
();
mol
::
AtomHandleList
::
iterator
i
=
atoms
.
begin
();
for
(;
j
!=
last_compound_
->
GetAtomSpecs
().
end
()
&&
i
!=
atoms
.
end
();
++
j
)
{
if
((
*
j
).
is_leaving
||
(
*
j
).
element
==
"H"
)
if
((
*
j
).
is_leaving
||
(
*
j
).
element
==
"H"
||
(
*
j
).
element
==
"D"
)
continue
;
if
((
*
j
).
ordinal
!=
static_cast
<
int
>
((
*
i
).
Impl
()
->
GetState
()))
{
this
->
OnMissingAtom
(
rh
,
(
*
j
).
name
);
...
...
@@ -72,7 +72,8 @@ bool RuleBasedBuilder::HasUnknownAtoms(mol::ResidueHandle res)
for
(
mol
::
AtomHandleList
::
iterator
i
=
atoms
.
begin
(),
e
=
atoms
.
end
();
i
!=
e
;
++
i
)
{
if
((
*
i
).
Impl
()
->
GetState
()
==
std
::
numeric_limits
<
unsigned
int
>::
max
())
{
if
((
*
i
).
GetElement
()
==
"H"
&&
this
->
GetStrictHydrogenMode
()
==
false
)
{
if
(((
*
i
).
GetElement
()
==
"H"
||
(
*
i
).
GetElement
()
==
"D"
)
&&
this
->
GetStrictHydrogenMode
()
==
false
)
{
continue
;
}
return
true
;
...
...
@@ -210,14 +211,15 @@ void RuleBasedBuilder::ConnectAtomsOfResidue(mol::ResidueHandle rh)
mol
::
AtomHandle
a2
=
this
->
LocateAtom
(
atoms
,
bond
.
atom_two
);
if
(
a1
.
IsValid
()
&&
a2
.
IsValid
()
&&
this
->
IsBondFeasible
(
a1
,
a2
))
{
if
(
this
->
GetStrictHydrogenMode
()
&&
(
a1
.
GetElement
()
==
"H"
||
a2
.
GetElement
()
==
"
H
"
))
{
(
a1
.
GetElement
()
==
"H"
||
a2
.
GetElement
()
==
"
D
"
))
{
continue
;
}
e
.
Connect
(
a1
,
a2
,
bond
.
order
);
}
}
for
(
mol
::
AtomHandleList
::
iterator
i
=
atoms
.
begin
(),
e
=
atoms
.
end
();
i
!=
e
;
++
i
)
{
if
((
*
i
).
GetElement
()
==
"H"
&&
(
*
i
).
GetBondCount
()
==
0
)
{
if
(((
*
i
).
GetElement
()
==
"H"
||
(
*
i
).
GetElement
()
==
"D"
)
&&
(
*
i
).
GetBondCount
()
==
0
)
{
this
->
DistanceBasedConnect
(
*
i
);
}
}
...
...
@@ -293,7 +295,7 @@ bool RuleBasedBuilder::IsResidueComplete(const mol::ResidueHandle& residue)
mol
::
AtomHandleList
::
iterator
i
=
atoms
.
begin
();
for
(
AtomSpecList
::
const_iterator
j
=
last_compound_
->
GetAtomSpecs
().
begin
(),
e
=
last_compound_
->
GetAtomSpecs
().
end
();
j
!=
e
;
++
j
)
{
if
((
*
j
).
is_leaving
||
(
*
j
).
element
==
"H"
)
{
if
((
*
j
).
is_leaving
||
(
*
j
).
element
==
"H"
||
(
*
j
).
element
==
"D"
)
{
continue
;
}
if
(
!
(
residue
.
FindAtom
(
j
->
name
)
||
residue
.
FindAtom
(
j
->
alt_name
)))
{
...
...
This diff is collapsed.
Click to expand it.
modules/mol/base/src/impl/atom_prop.cc
+
1
−
0
View file @
9c096d85
...
...
@@ -50,6 +50,7 @@ void AtomProp::Init()
defaults_
[
"CO"
]
=
AtomProp
(
2.0000
,
58.9330
);
defaults_
[
"CR"
]
=
AtomProp
(
2.0000
,
51.9960
);
defaults_
[
"CS"
]
=
AtomProp
(
2.0000
,
132.9050
);
defaults_
[
"D"
]
=
AtomProp
(
1.0900
,
2.0141
);
defaults_
[
"CU"
]
=
AtomProp
(
1.4000
,
63.5460
);
defaults_
[
"DB"
]
=
AtomProp
(
2.0000
,
262.0000
);
defaults_
[
"DS"
]
=
AtomProp
(
2.0000
,
271.0000
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment