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
1648d0c9
Commit
1648d0c9
authored
14 years ago
by
juergen
Browse files
Options
Downloads
Patches
Plain Diff
added option to skip FindWithin step in LocalDistTest by specifying max_dist as -1
parent
415ccd23
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/mol/alg/src/local_dist_test.cc
+7
-4
7 additions, 4 deletions
modules/mol/alg/src/local_dist_test.cc
with
7 additions
and
4 deletions
modules/mol/alg/src/local_dist_test.cc
+
7
−
4
View file @
1648d0c9
...
@@ -58,12 +58,18 @@ std::pair<Real, Real> calc_overlap(ResidueView ref_res,
...
@@ -58,12 +58,18 @@ std::pair<Real, Real> calc_overlap(ResidueView ref_res,
AtomViewList
ref_atoms
=
ref_res
.
GetAtomList
();
AtomViewList
ref_atoms
=
ref_res
.
GetAtomList
();
ResidueView
mdl_res
=
mdl_chain
.
FindResidue
(
ref_res
.
GetNumber
());
ResidueView
mdl_res
=
mdl_chain
.
FindResidue
(
ref_res
.
GetNumber
());
AtomViewList
within
;
if
(
max_dist
<
0
){
within
=
ref
.
GetAtomList
();
}
for
(
AtomViewList
::
iterator
ai
=
ref_atoms
.
begin
(),
for
(
AtomViewList
::
iterator
ai
=
ref_atoms
.
begin
(),
ae
=
ref_atoms
.
end
();
ai
!=
ae
;
++
ai
)
{
ae
=
ref_atoms
.
end
();
ai
!=
ae
;
++
ai
)
{
if
(
ai
->
GetElement
()
==
"H"
)
{
continue
;
}
if
(
ai
->
GetElement
()
==
"H"
)
{
continue
;
}
String
name
=
swap
?
swapped_name
(
ai
->
GetName
())
:
ai
->
GetName
();
String
name
=
swap
?
swapped_name
(
ai
->
GetName
())
:
ai
->
GetName
();
AtomView
av1
=
mdl_res
?
mdl_res
.
FindAtom
(
name
)
:
AtomView
();
AtomView
av1
=
mdl_res
?
mdl_res
.
FindAtom
(
name
)
:
AtomView
();
AtomViewList
within
=
ref
.
FindWithin
(
ai
->
GetPos
(),
max_dist
);
if
(
max_dist
>=
0
){
within
=
ref
.
FindWithin
(
ai
->
GetPos
(),
max_dist
);
}
for
(
AtomViewList
::
iterator
aj
=
within
.
begin
(),
for
(
AtomViewList
::
iterator
aj
=
within
.
begin
(),
ae2
=
within
.
end
();
aj
!=
ae2
;
++
aj
)
{
ae2
=
within
.
end
();
aj
!=
ae2
;
++
aj
)
{
if
(
aj
->
GetElement
()
==
"H"
)
{
continue
;
}
if
(
aj
->
GetElement
()
==
"H"
)
{
continue
;
}
...
@@ -88,9 +94,6 @@ std::pair<Real, Real> calc_overlap(ResidueView ref_res,
...
@@ -88,9 +94,6 @@ std::pair<Real, Real> calc_overlap(ResidueView ref_res,
continue
;
continue
;
}
}
if
(
aj
->
GetResidue
().
GetNumber
()
>
ref_res
.
GetNumber
())
{
if
(
aj
->
GetResidue
().
GetNumber
()
>
ref_res
.
GetNumber
())
{
if
(
aj
->
GetResidue
().
GetNumber
()
<=
ref_res
.
GetNumber
())
{
continue
;
}
AtomView
av2
=
mdl_chain
.
FindAtom
(
aj
->
GetResidue
().
GetNumber
(),
AtomView
av2
=
mdl_chain
.
FindAtom
(
aj
->
GetResidue
().
GetNumber
(),
aj
->
GetName
());
aj
->
GetName
());
overlap
.
second
+=
1.0
;
overlap
.
second
+=
1.0
;
...
...
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