if( proLINE.compare("PRO") == 0 ){
IndexMap[i].is_proline = true;
}
- IndexMap[i].prevResi = &(IndexMap[i - 1]);
+ IndexMap[i].prevResi = &(IndexMap[0]);
IndexMap[i - 1].nextResi = &(IndexMap[i]);
// std::cout << "Resi " << IndexMap[i].info->nr << *(IndexMap[i].info->name) << std::endl;
// std::cout << "Prev resi is " << IndexMap[i].prevResi->info->nr << *(IndexMap[i].prevResi->info->name) << std::endl;
// std::cout << "Prev resi's next resi is " << IndexMap[i - 1].nextResi->info->nr << *(IndexMap[i - 1].nextResi->info->name) << std::endl;
- if ( IndexMap[i].prevResi == nullptr){
- std::cout << "SHIT" << std::endl;
- }
std::cout << IndexMap[i].prevResi->info->nr;
std::cout << *(IndexMap[i - 1].prevResi->info->name) ;
std::cout << " have CA = " << IndexMap[i].prevResi->getIndex(backboneAtomTypes::AtomCA) ;