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
1f002f88
Commit
1f002f88
authored
12 years ago
by
Valerio Mariani
Browse files
Options
Downloads
Patches
Plain Diff
Improved lddt output and documentation
parent
7295281c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/mol/alg/doc/molalg.rst
+4
-0
4 additions, 0 deletions
modules/mol/alg/doc/molalg.rst
modules/mol/alg/src/lddt.cc
+5
-4
5 additions, 4 deletions
modules/mol/alg/src/lddt.cc
with
9 additions
and
4 deletions
modules/mol/alg/doc/molalg.rst
+
4
−
0
View file @
1f002f88
...
@@ -175,6 +175,10 @@
...
@@ -175,6 +175,10 @@
Returns the name of the atom, as a String
Returns the name of the atom, as a String
.. method:: Print()
Prints the information to standard output
.. class:: ResidueRDMap
.. class:: ResidueRDMap
Dictionary-like object containing the a list of distances that originate from the a single residue residue, to
Dictionary-like object containing the a list of distances that originate from the a single residue residue, to
...
...
This diff is collapsed.
Click to expand it.
modules/mol/alg/src/lddt.cc
+
5
−
4
View file @
1f002f88
...
@@ -352,12 +352,13 @@ int main (int argc, char **argv)
...
@@ -352,12 +352,13 @@ int main (int argc, char **argv)
String
label
=
"localldt"
;
String
label
=
"localldt"
;
std
::
pair
<
int
,
int
>
total_ov
=
alg
::
LocalDistDiffTest
(
v
,
glob_dist_list
,
cutoffs
,
sequence_separation
,
label
);
std
::
pair
<
int
,
int
>
total_ov
=
alg
::
LocalDistDiffTest
(
v
,
glob_dist_list
,
cutoffs
,
sequence_separation
,
label
);
Real
lddt
=
static_cast
<
Real
>
(
total_ov
.
first
)
/
(
static_cast
<
Real
>
(
total_ov
.
second
)
?
static_cast
<
Real
>
(
total_ov
.
second
)
:
1
);
Real
lddt
=
static_cast
<
Real
>
(
total_ov
.
first
)
/
(
static_cast
<
Real
>
(
total_ov
.
second
)
?
static_cast
<
Real
>
(
total_ov
.
second
)
:
1
);
std
::
cout
<<
"Global LDDT score: "
<<
lddt
<<
std
::
endl
;
std
::
cout
<<
"Global LDDT score: "
<<
std
::
setprecision
(
4
)
<<
lddt
<<
std
::
endl
;
std
::
cout
<<
"("
<<
std
::
fixed
<<
total_ov
.
first
<<
" conserved distances in the model out of "
<<
total_ov
.
second
<<
" checked)"
<<
std
::
endl
;
std
::
cout
<<
"("
<<
std
::
fixed
<<
total_ov
.
first
<<
" conserved distances out of "
<<
total_ov
.
second
<<
" checked, over "
<<
cutoffs
.
size
()
<<
" thresholds)"
<<
std
::
endl
;
// prints the residue-by-residue statistics
// prints the residue-by-residue statistics
std
::
cout
<<
"Local LDDT Score:"
<<
std
::
endl
;
std
::
cout
<<
"Local LDDT Score:"
<<
std
::
endl
;
std
::
cout
<<
"Chain
\t
ResName
\t
ResNum
\t
Score
\t
(Conserved/Total)"
<<
std
::
endl
;
std
::
cout
<<
"Chain
\t
ResName
\t
ResNum
\t
Score
\t
(Conserved/Total
, over "
<<
cutoffs
.
size
()
<<
" thresholds
)"
<<
std
::
endl
;
for
(
ResidueViewIter
rit
=
v
.
ResiduesBegin
();
rit
!=
v
.
ResiduesEnd
();
++
rit
){
for
(
ResidueViewIter
rit
=
v
.
ResiduesBegin
();
rit
!=
v
.
ResiduesEnd
();
++
rit
){
ResidueView
ritv
=
*
rit
;
ResidueView
ritv
=
*
rit
;
Real
lddt_local
=
0
;
Real
lddt_local
=
0
;
...
@@ -369,7 +370,7 @@ int main (int argc, char **argv)
...
@@ -369,7 +370,7 @@ int main (int argc, char **argv)
total_dist
=
ritv
.
GetIntProp
(
label
+
"_total"
);
total_dist
=
ritv
.
GetIntProp
(
label
+
"_total"
);
}
}
if
(
lddt_local
!=
0
)
{
if
(
lddt_local
!=
0
)
{
std
::
cout
<<
ritv
.
GetChain
()
<<
"
\t
"
<<
ritv
.
GetName
()
<<
"
\t
"
<<
ritv
.
GetNumber
()
<<
'\t'
<<
lddt_local
<<
"
\t
"
<<
"("
<<
conserved_dist
<<
"/"
<<
total_dist
<<
")"
<<
std
::
endl
;
std
::
cout
<<
ritv
.
GetChain
()
<<
"
\t
"
<<
ritv
.
GetName
()
<<
"
\t
"
<<
ritv
.
GetNumber
()
<<
'\t'
<<
std
::
setprecision
(
4
)
<<
lddt_local
<<
"
\t
"
<<
"("
<<
conserved_dist
<<
"/"
<<
total_dist
<<
")"
<<
std
::
endl
;
}
}
}
}
std
::
cout
<<
std
::
endl
;
std
::
cout
<<
std
::
endl
;
...
...
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