Xmipp  v3.23.11-Nereus
mpi_classify_CL2D_core_analysis.h
Go to the documentation of this file.
1 /***************************************************************************
2  *
3  * Authors: Carlos Oscar coss@cnb.csic.es (2002)
4  *
5  * Unidad de Bioinformatica of Centro Nacional de Biotecnologia , CSIC
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
20  * 02111-1307 USA
21  *
22  * All comments concerning this program package may be sent to the
23  * e-mail address 'xmipp@cnb.csic.es'
24  ***************************************************************************/
25 #ifndef _PROG_CLASSIFY_CL2D_CORE_ANALYSIS
26 #define _PROG_CLASSIFY_CL2D_CORE_ANALYSIS
27 
28 #include <parallel/xmipp_mpi.h>
29 
35 class CL2DBlock {
36 public:
40  int level;
41 };
42 
44 std::ostream & operator << (std::ostream &out, const CL2DBlock &block);
45 
47 {
50 };
51 
54 {
55 public:
61  int NPCA;
63  double thPCAZscore;
65  int tolerance;
68 public:
69  // Mpi node
70  std::shared_ptr<MpiNode> node;
71  // FileTaskDistributor
72  std::unique_ptr<MpiTaskDistributor> taskDistributor;
73  // CL2D blocks
74  std::vector<CL2DBlock> blocks;
75  // MaxLevel
76  int maxLevel;
77  // Projection size
78  size_t Ydim, Xdim;
79 public:
81  ProgClassifyCL2DCore(int argc, char **argv);
82 
84  void readParams();
85 
87  void show();
88 
90  void defineParams();
91 
93  void produceSideInfo();
94 
96  void produceClassInfo();
97 
99  void computeCores();
100 
102  void computeStableCores();
103 
105  void gatherResults(int firstLevel, const String &suffix);
106 
108  void run();
109 };
111 #endif
std::ostream & operator<<(std::ostream &out, const CL2DBlock &block)
Show CL2Dblock.
std::unique_ptr< MpiTaskDistributor > taskDistributor
std::vector< CL2DBlock > blocks
std::string String
Definition: xmipp_strings.h:34
std::shared_ptr< MpiNode > node