20 #include <ObjexxFCL/format.hh>
22 #include <utility/vector1.hh>
84 runtime_assert(
false );
89 using ObjexxFCL::fmt::I;
90 using ObjexxFCL::fmt::F;
92 out << I( 4, dp.
res1() ) <<
' ' << I( 4, dp.
res2() ) <<
' '
93 << F( 9, 3, dp.
dist() ) <<
' ' << F( 9, 3, dp.
sigma() ) <<
' '
94 << F( 9, 3, dp.
phi() ) <<
' ' << F( 9, 3, dp.
theta() ) <<
' ' << F( 9, 3, dp.
dp() ) <<
' '
95 << I( 2, dp.
sign1() ) <<
' ' << I( 2, dp.
sign2() ) <<
' ' <<
A( 2, dp.
orient() ) <<
' '
96 << F( 9, 3, dp.
score() ) << std::endl;
103 return ( a->score() < b->score() );
112 for ( iterator it=begin(), ite=
end(); it!=ite ; ++it ){
115 if( !pairing.
valid() )
continue;
119 runtime_assert( res2 > res1 );
126 runtime_assert( strand2 > strand1 );
130 for ( ; it2 != ite; ++it2 ) {
133 if ( !other.
valid() )
continue;
140 if ( ( other.
res1() == res1 && other_strand2 != strand2 && other.
sign1() == sign1 ) ||
141 ( other.
res2() == res1 && other_strand1 != strand2 && other.
sign2() == sign1 ) ||
142 ( other.
res1() == res2 && other_strand2 != strand1 && other.
sign1() == sign2 ) ||
143 ( other.
res2() == res2 && other_strand1 != strand1 && other.
sign2() == sign2 ) ) {
144 other.
valid(
false );
156 using ObjexxFCL::fmt::I;
157 using ObjexxFCL::fmt::LJ;
158 using ObjexxFCL::fmt::RJ;
159 out << LJ(4,
"#" ) <<
' '
160 << LJ(4,
"res1" ) <<
' ' << LJ(4,
"res2" ) <<
' '
161 << RJ(9,
"dist" ) <<
' ' << RJ(9,
"sigma" ) <<
' '
162 << RJ(9,
"phi" ) <<
' ' << RJ(9,
"theta" ) <<
' ' << RJ(9,
"dp" ) <<
' '
163 << LJ(2,
"s1" ) <<
' ' << LJ(2,
"s2" ) <<
' ' << LJ(2,
"pr" ) <<
' '
164 << RJ(9,
"score") << std::endl;
167 for ( DimerPairings::const_iterator it=dps.begin(), eit=dps.end(); it!=eit; ++it ) {
168 if( !( **it).valid() )
continue;
169 out << I( 4, count++ ) <<
' ' ;