Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
protocols
noesy_assign
util.cc
Go to the documentation of this file.
1
// -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2
// vi: set ts=2 noet:
3
//
4
// (c) Copyright Rosetta Commons Member Institutions.
5
// (c) This file is part of the Rosetta software suite and is made available under license.
6
// (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7
// (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8
// (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9
10
/// @file FragmentSampler.cc
11
/// @brief ab-initio fragment assembly protocol for proteins
12
/// @detailed
13
/// Contains currently: Classic Abinitio
14
///
15
///
16
/// @author Oliver Lange
17
18
// Unit Headers
19
20
// Package Headers
21
#include <
protocols/noesy_assign/CovalentCompliance.hh
>
22
23
24
// Project Headers
25
#include <
core/id/NamedAtomID.hh
>
26
27
// AUTO-REMOVED #include <core/chemical/ResidueType.hh>
28
// AUTO-REMOVED #include <core/pose/Pose.hh>
29
30
// AUTO-REMOVED #include <core/scoring/constraints/AmbiguousNMRConstraint.hh>
31
// AUTO-REMOVED #include <core/scoring/constraints/AmbiguousNMRDistanceConstraint.hh>
32
33
// Utility headers
34
//#include <ObjexxFCL/format.hh>
35
//#include <ObjexxFCL/string.functions.hh>
36
37
//#include <utility/string_util.hh>
38
// #include <utility/excn/Exceptions.hh>
39
// #include <utility/vector1.fwd.hh>
40
// #include <utility/pointer/ReferenceCount.hh>
41
// #include <numeric/numeric.functions.hh>
42
// #include <core/util/prof.hh>
43
// AUTO-REMOVED #include <basic/Tracer.hh>
44
45
#include <utility/vector1.hh>
46
47
// #include <core/options/option.hh>
48
// #include <core/options/keys/abinitio.OptionKeys.gen.hh>
49
// #include <core/options/keys/run.OptionKeys.gen.hh>
50
//#include <core/options/keys/templates.OptionKeys.gen.hh>
51
52
// Utility headers
53
//#include <core/options/option_macros.hh>
54
55
56
//// C++ headers
57
//#include <cstdlib>
58
//#include <string>
59
60
61
namespace
protocols {
62
namespace
noesy_assign {
63
64
using namespace
core;
65
66
bool
covalent_compliance
(
core::id::NamedAtomID
const
& atom1,
core::id::NamedAtomID
const
& atom2 ) {
67
return
CovalentCompliance::get_instance
()->
is_compliant
( atom1, atom2 );
68
}
69
// core::Real compute_RPF_score( CrossPeakList const& cpl, pose::Pose const& pose, core::Real ) {
70
71
// Real model_sum_dist( 0 );
72
// for ( ResonanceList::const_iterator it1 = resonances.begin(); it1 != resonances.end(); ++it1 ) {
73
// if ( it1->second.atom().atom()[0]=='C' ) continue;
74
// ResonanceList::const_iterator it2 = it1;
75
// ++it2;
76
// for ( ; it2 != resonances.end(); ++it2 ) {
77
// //cross peaks have also symmetry.. so double count all things later...
78
79
// //abuse the constraint code to parse atom names...
80
// if ( it2->second.atom().atom()[0]=='C' ) continue;
81
// core::scoring::constraints::AmbiguousNMRDistanceConstraint a_cst( it1->second.atom(), it2->second.atom(), pose, NULL );
82
// bool proton_at_it1( pose.residue_type( a_cst.atom( 1 ).rsd() ).atom_is_hydrogen( a_cst.atom( 1 ).atomno() ) );
83
// Size second_atom_index( a_cst.natoms( 1 ) + 1 );
84
// bool proton_at_it2( pose.residue_type( a_cst.atom( second_atom_index ).rsd() ).atom_is_hydrogen( a_cst.atom( second_atom_index ).atomno() ) );
85
// if ( proton_at_it1 && proton_at_it2 ) {
86
// Real dist( a_cst.dist( pose ) );
87
// Real invd = 1.0/dist;
88
// Real invd3 = invd*invd*invd;
89
// Real invd6 = invd3*invd3;
90
// model_sum_dist+=2*invd6; //times 2 due to symmetry
91
// }
92
// }
93
// }
94
95
// Real peak_sum_dist( 0 );
96
// Size nr_true_peaks( 0 );
97
// for ( CrossPeakList::const_iterator it = cpl.begin(); it != cpl.end(); ++it ) {
98
// // core::scoring::constraints::AmbiguousNMRConstraintOP peak_cst( (*it)->create_constraint( cpl.resonances(), pose ) );
99
// //Real dist( peak_cst->dist( pose ) );
100
// // peak_sum_dist += pow( dist, -6 );
101
// // nr_true_peaks += dist <= dcut ;
102
// }
103
104
// Real RPF_precision( model_sum_dist/peak_sum_dist );
105
// Real RPF_recall( nr_true_peaks/cpl.size() );
106
// return 2*RPF_recall*RPF_precision/( RPF_recall + RPF_precision );
107
108
// }
109
110
}
111
}
Generated on Sat Jun 1 2013 11:32:08 for Rosetta 3.5 by
1.8.4