Дебаггю хеликсы. Поменял свой имейл.
authorГорелов Сергей Васильевич <gorelov_sv@pnpi.nrcki.ru>
Mon, 3 Oct 2022 11:16:37 +0000 (14:16 +0300)
committerГорелов Сергей Васильевич <gorelov_sv@pnpi.nrcki.ru>
Mon, 3 Oct 2022 11:16:37 +0000 (14:16 +0300)
src/dssp.cpp
src/dssp.h
src/dssptools.cpp
src/dssptools.h

index 60cd6565f3dad92840dea916b4b711532da3a948..d96a1e4dda00be0a7f8d350510116cb101eebe73 100644 (file)
@@ -36,7 +36,7 @@
 * \brief
 * Implements gmx::analysismodules::Trajectory.
 *
-* \author Sergey Gorelov <gorelov_sv@pnpi.nrcki.ru>
+* \author Sergey Gorelov <Infinity2573@gmail.com>
 * \author Anatoly Titov <titov_ai@pnpi.nrcki.ru>
 * \author Alexey Shvetsov <alexxyum@gmail.com>
 * \ingroup module_trajectoryanalysis
index 1cb2505f78adab5bea02c8e1ee6a731f6e84c021..8e74e207426b32f79e3945484856aae8cf77d3db 100644 (file)
@@ -36,7 +36,7 @@
  * \brief
  * Declares trajectory analysis module for secondary structure asignment.
  *
- * \author Sergey Gorelov <gorelov_sv@pnpi.nrcki.ru>
+ * \author Sergey Gorelov <Infinity2573@gmail.com>
  * \author Anatoly Titov <titov_ai@pnpi.nrcki.ru>
  * \author Alexey Shvetsov <alexxyum@gmail.com>
  * \ingroup module_trajectoryanalysis
index c24506107c3a19a40266680e5591d6a3777adc2d..edbeb9b3950c49bc21156aedc07ad1cfd9eeebc7 100644 (file)
 * \brief
 * Implements gmx::analysismodules::Trajectory.
 *
-* \author Sergey Gorelov <gorelov_sv@pnpi.nrcki.ru>
+* \author Sergey Gorelov <Infinity2573@gmail.com>
 * \author Anatoly Titov <titov_ai@pnpi.nrcki.ru>
 * \author Alexey Shvetsov <alexxyum@gmail.com>
 * \ingroup module_trajectoryanalysis
 */
 
-/*
-    There's something wrong with energy calculations of redidues with E ≈ -0
-*/
-
-
 #include "dssptools.h"
 
 #include <algorithm>
@@ -396,8 +391,14 @@ void secondaryStructures::analyzeTurnsAndHelicesPatterns(){
     for(const turnsTypes &i : { turnsTypes::Turn_4, turnsTypes::Turn_3, turnsTypes::Turn_5 }){
         std::size_t stride {static_cast<std::size_t>(i) + 3};
         for(std::size_t j {0}; j + stride < SecondaryStructuresStatusMap.size(); ++j){
+            if (hasHBondBetween(j + stride, j)){
+                            std::cout << "Bond between " << j << " and " << j + stride << " exists" << std::endl;
+                        }
+            if (!NoChainBreaksBetween(j, j + stride)){
+                            std::cout << "ChainBreak between " << j << " and " << j + stride << std::endl;
+                        }
             if ( hasHBondBetween(j + stride, j) && NoChainBreaksBetween(j, j + stride) ){
-                std::cout << "Resi " << j << " is Helix_" << stride << " start" << std::endl;
+//                std::cout << "Resi " << j << " is Helix_" << stride << " start" << std::endl;
                 SecondaryStructuresStatusMap[j + stride].setStatus(HelixPositions::End, i);
 
                 for (std::size_t k {1}; k < stride; ++k){
@@ -443,7 +444,7 @@ void secondaryStructures::analyzeTurnsAndHelicesPatterns(){
                 }
                 if ( empty || Helix == secondaryStructureTypes::Helix_4 ){
                     for(std::size_t k {0}; k < stride; ++k ){
-                        std::cout << "Resi " << j << " is Helix_" << static_cast<std::size_t>(Helix) << std::endl;
+//                        std::cout << "Resi " << j << " is Helix_" << static_cast<std::size_t>(Helix) - 5 << std::endl;
                         SecondaryStructuresStatusMap[j + k].setStatus(Helix);
                     }
                 }
@@ -463,7 +464,7 @@ void secondaryStructures::analyzeTurnsAndHelicesPatterns(){
                 }
             }
             if (isTurn){
-                std::cout << "Resi " << i << " is Turn" << std::endl;
+//                std::cout << "Resi " << i << " is Turn" << std::endl;
                 SecondaryStructuresStatusMap[i].setStatus(secondaryStructureTypes::Turn);
             }
         }
index 940dd42cb4389a4acabbf28a999c681549e85730..f15b9eeb24c97c1dede8bffad7c8b917c262dc0d 100644 (file)
@@ -36,7 +36,7 @@
  * \brief
  * Declares trajectory analysis module for secondary structure asignment.
  *
- * \author Sergey Gorelov <gorelov_sv@pnpi.nrcki.ru>
+ * \author Sergey Gorelov <Infinity2573@gmail.com>
  * \author Anatoly Titov <titov_ai@pnpi.nrcki.ru>
  * \author Alexey Shvetsov <alexxyum@gmail.com>
  * \ingroup module_trajectoryanalysis