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
aaafb5d2
Commit
aaafb5d2
authored
13 years ago
by
Valerio Mariani
Browse files
Options
Downloads
Patches
Plain Diff
Added logging to the LDT code proper and moved format info to the beginning of the log
parent
66f7a259
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modules/mol/alg/src/filter_clashes.cc
+0
-3
0 additions, 3 deletions
modules/mol/alg/src/filter_clashes.cc
modules/mol/alg/src/ldt.cc
+5
-0
5 additions, 0 deletions
modules/mol/alg/src/ldt.cc
modules/mol/alg/src/local_dist_test.cc
+8
-1
8 additions, 1 deletion
modules/mol/alg/src/local_dist_test.cc
with
13 additions
and
4 deletions
modules/mol/alg/src/filter_clashes.cc
+
0
−
3
View file @
aaafb5d2
...
...
@@ -147,8 +147,6 @@ void StereoChemicalParams::PrintAllParameters() const
EntityView
CheckStereoChemistry
(
const
EntityView
&
ent
,
const
StereoChemicalParams
&
bond_table
,
const
StereoChemicalParams
&
angle_table
,
Real
bond_tolerance
,
Real
angle_tolerance
,
bool
always_remove_bb
)
{
LOG_INFO
(
"Checking stereo-chemistry"
)
LOG_INFO
(
"BOND INFO FORMAT:"
<<
" "
<<
"Chain"
<<
" "
<<
"Residue"
<<
" "
<<
"ResNum"
<<
" "
<<
"Bond"
<<
" "
<<
"Min"
<<
" "
<<
"Max"
<<
" "
<<
"Observed"
<<
" "
<<
"Z-score"
<<
" "
<<
"Status"
)
LOG_INFO
(
"ANGLE INFO FORMAT:"
<<
" "
<<
"Chain"
<<
" "
<<
"Residue"
<<
" "
<<
"ResNum"
<<
" "
<<
"Angle"
<<
" "
<<
"Min"
<<
" "
<<
"Max"
<<
" "
<<
"Observed"
<<
" "
<<
"Z-score"
<<
" "
<<
"Status"
)
EntityView
filtered
=
ent
.
CreateEmptyView
();
ResidueViewList
residues
=
ent
.
GetResidueList
();
for
(
ResidueViewList
::
iterator
i
=
residues
.
begin
(),
e
=
residues
.
end
();
i
!=
e
;
++
i
)
{
...
...
@@ -289,7 +287,6 @@ EntityView CheckStereoChemistry(const EntityHandle& ent, const StereoChemicalPar
EntityView
FilterClashes
(
const
EntityView
&
ent
,
const
ClashingDistances
&
min_distances
,
bool
always_remove_bb
)
{
LOG_INFO
(
"Filtering non-bonded clashes"
)
LOG_INFO
(
"CLASH INFO FORMAT:"
<<
" "
<<
"Chain1"
<<
" "
<<
"Residue1"
<<
" "
<<
"ResNum1"
<<
" "
<<
"Atom1"
<<
" "
<<
"Chain2"
<<
" "
<<
"Residue2"
<<
" "
<<
"ResNum2"
<<
" "
<<
"Atom2"
<<
" "
<<
"Min"
<<
" "
<<
"Observed"
<<
" "
<<
"Difference"
<<
" "
<<
"Status"
)
EntityView
filtered
=
ent
.
CreateEmptyView
();
ResidueViewList
residues
=
ent
.
GetResidueList
();
for
(
ResidueViewList
::
iterator
...
...
This diff is collapsed.
Click to expand it.
modules/mol/alg/src/ldt.cc
+
5
−
0
View file @
aaafb5d2
...
...
@@ -316,6 +316,11 @@ int main (int argc, char **argv)
std
::
cout
<<
"Tolerance in stddevs for bonds: "
<<
bond_tolerance
<<
std
::
endl
;
std
::
cout
<<
"Tolerance in stddevs for angles: "
<<
angle_tolerance
<<
std
::
endl
;
std
::
cout
<<
"Clashing distance for unknown atom types: "
<<
min_default_distance
<<
std
::
endl
;
LOG_INFO
(
"Log entries format:"
);
LOG_INFO
(
"BOND INFO FORMAT:"
<<
" "
<<
"Chain"
<<
" "
<<
"Residue"
<<
" "
<<
"ResNum"
<<
" "
<<
"Bond"
<<
" "
<<
"Min"
<<
" "
<<
"Max"
<<
" "
<<
"Observed"
<<
" "
<<
"Z-score"
<<
" "
<<
"Status"
);
LOG_INFO
(
"ANGLE INFO FORMAT:"
<<
" "
<<
"Chain"
<<
" "
<<
"Residue"
<<
" "
<<
"ResNum"
<<
" "
<<
"Angle"
<<
" "
<<
"Min"
<<
" "
<<
"Max"
<<
" "
<<
"Observed"
<<
" "
<<
"Z-score"
<<
" "
<<
"Status"
);
LOG_INFO
(
"CLASH INFO FORMAT:"
<<
" "
<<
"Chain1"
<<
" "
<<
"Residue1"
<<
" "
<<
"ResNum1"
<<
" "
<<
"Atom1"
<<
" "
<<
"Chain2"
<<
" "
<<
"Residue2"
<<
" "
<<
"ResNum2"
<<
" "
<<
"Atom2"
<<
" "
<<
"Min"
<<
" "
<<
"Observed"
<<
" "
<<
"Difference"
<<
" "
<<
"Status"
);
LOG_INFO
(
"LDT INFO FORMAT:"
<<
" "
<<
"Chain1"
<<
" "
<<
"Residue1"
<<
" "
<<
"ResNum1"
<<
" "
<<
"Atom1"
<<
" "
<<
"Chain2"
<<
" "
<<
"Residue2"
<<
" "
<<
"ResNum2"
<<
" "
<<
"Atom2"
<<
" "
<<
"Min"
<<
" "
<<
"ModelDist"
<<
" "
<<
"TargetDist"
<<
" "
<<
"Difference"
<<
" "
<<
"Tolerance"
<<
" "
<<
"Status"
);
}
for
(
size_t
i
=
0
;
i
<
files
.
size
();
++
i
)
{
EntityHandle
model
=
load
(
files
[
i
],
profile
);
...
...
This diff is collapsed.
Click to expand it.
modules/mol/alg/src/local_dist_test.cc
+
8
−
1
View file @
aaafb5d2
...
...
@@ -106,10 +106,17 @@ std::pair<Real, Real> calc_overlap1(ResidueView ref_res,
Real
mdl_dist
=
geom
::
Length
(
av1
.
GetPos
()
-
av2
.
GetPos
());
Real
ref_dist
=
geom
::
Length
(
ai
->
GetPos
()
-
aj
->
GetPos
());
if
(
std
::
abs
(
mdl_dist
-
ref_dist
)
<
tol
)
{
LOG_VERBOSE
(
"CLASH:"
<<
" "
<<
av1
.
GetResidue
().
GetChain
()
<<
" "
<<
av1
.
GetResidue
().
GetName
()
<<
" "
<<
av1
.
GetResidue
().
GetNumber
()
<<
" "
<<
av1
.
GetName
()
<<
" "
<<
av2
.
GetResidue
().
GetChain
()
<<
" "
<<
av2
.
GetResidue
().
GetNumber
()
<<
" "
<<
av2
.
GetResidue
().
GetName
()
<<
" "
<<
av2
.
GetName
()
<<
" "
<<
mdl_dist
<<
" "
<<
ref_dist
<<
" "
<<
mdl_dist
-
ref_dist
<<
" "
<<
tol
<<
" "
<<
"PASS"
)
overlap
.
first
+=
1
;
overlap_list
[
ref_res
.
GetIndex
()].
first
+=
1.0
;
overlap_list
[
aj
->
GetResidue
().
GetIndex
()].
first
+=
1.0
;
}
}
else
{
LOG_INFO
(
"CLASH:"
<<
" "
<<
av1
.
GetResidue
().
GetChain
()
<<
" "
<<
av1
.
GetResidue
().
GetName
()
<<
" "
<<
av1
.
GetResidue
().
GetNumber
()
<<
" "
<<
av1
.
GetName
()
<<
" "
<<
av2
.
GetResidue
().
GetChain
()
<<
" "
<<
av2
.
GetResidue
().
GetNumber
()
<<
" "
<<
av2
.
GetResidue
().
GetName
()
<<
" "
<<
av2
.
GetName
()
<<
" "
<<
mdl_dist
<<
" "
<<
ref_dist
<<
" "
<<
mdl_dist
-
ref_dist
<<
" "
<<
tol
<<
" "
<<
"FAIL"
)
}
}
}
}
...
...
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