Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/src/core/energy_methods/RNA_LJ_BaseEnergy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ RNA_LJ_BaseEnergy::eval_atom_energy(

Vector const heavy_atom_i( rsd1.xyz( m ) );

for ( Size j = 1; j < pose.size(); j ++ ) {
for ( Size j = 1; j <= pose.size(); j ++ ) {
if ( i == j ) continue;

conformation::Residue const & rsd2( pose.residue( j ) );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,7 @@ PoseToStructFileRepConverter::generate_secondary_structure_informations( core::p
core::Size new_tercount( 0 ); //we have to track this for ResidueInformation

//Now we are going to iterate through the pose, identifying secondary structure elements
for ( Size ires=1; ires<pose.size(); ++ires ) {
for ( Size ires=1; ires<=pose.size(); ++ires ) {
char secstruct = secstructs[ires-1]; //H, E, or L; note indexing fix
Size chain = pose.residue(ires).chain();
Size jres = ires;
Expand Down
6 changes: 3 additions & 3 deletions source/src/core/pack/interaction_graph/SurfacePotential.cc
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ void SurfacePotential::compute_residue_surface_energy( conformation::Residue con
// in (being considered) rotamer, not of the wild type sequence rotamer. In a small percent of the cases, using the wild type
// nbr_atom will give a different count than when using the new rotamer nbr_atom position.
Real distanceBetweenAtoms = 0.0;
for ( Size res2_position = 1; res2_position < pose.size(); ++res2_position ) {
for ( Size res2_position = 1; res2_position <= pose.size(); ++res2_position ) {

if ( resid == res2_position ) { continue; }
conformation::Residue const & rsd2 = pose.residue( res2_position );
Expand Down Expand Up @@ -419,7 +419,7 @@ void SurfacePotential::compute_pose_surface_energy( pose::Pose const & pose, Rea
conformation::Residue const & rsd1 = pose.residue( res1_position );
Real distanceBetweenAtoms = 0.0;

for ( Size res2_position = 1; res2_position < pose.size(); ++res2_position ) {
for ( Size res2_position = 1; res2_position <= pose.size(); ++res2_position ) {
if ( pose.residue( res2_position ).aa() > core::chemical::num_canonical_aas ) continue;
if ( symm_info && !symm_info->bb_is_independent(res2_position) ) continue;

Expand Down Expand Up @@ -462,7 +462,7 @@ void SurfacePotential::compute_pose_surface_energy( pose::Pose const & pose, Rea


total_surface_energy_ = 0.0;
for ( Size ii=1; ii < residue_surface_energy_.size(); ++ii ) {
for ( Size ii=1; ii <= residue_surface_energy_.size(); ++ii ) {
total_surface_energy_ += residue_surface_energy_[ii];
}

Expand Down
2 changes: 1 addition & 1 deletion source/src/core/pose/rna/util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2058,7 +2058,7 @@ detect_base_contacts( core::pose::Pose const & pose ) {
if ( i == j ) continue;
if ( ( pose.residue( i ).nbr_atom_xyz() - pose.residue( j ).nbr_atom_xyz() ).length() > NBR_DIST_CUTOFF ) continue;

for ( Size jj = 1; jj < pose.residue_type( j ).nheavyatoms(); jj++ ) {
for ( Size jj = 1; jj <= pose.residue_type( j ).nheavyatoms(); jj++ ) {
if ( pose.residue_type( j ).is_virtual( jj ) ) continue;
if ( ( pose.residue( i ).xyz( ii ) - pose.residue( j ).xyz( jj ) ).length() < CONTACT_DIST_CUTOFF ) {
// TR << "FOUND CONTACT " << pose.pdb_info()->chain(i) << ":" << pose.pdb_info()->number( i ) << " " << pose.residue(i).atom_name(ii)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ JumpUpstreamSelector::apply( core::pose::Pose const & pose ) const
ObjexxFCL::FArray1D_bool upstream( pose.size() );
pose.fold_tree().partition_by_jump( jump_, upstream );

for ( core::Size ii = 1; ii < upstream.size(); ++ii ) {
for ( core::Size ii = 1; ii <= upstream.size(); ++ii ) {
subset[ ii ] = upstream( ii );
}
return subset;
Expand Down