Xmipp  v3.23.11-Nereus
volume_from_pdb.h
Go to the documentation of this file.
1 /***************************************************************************
2  *
3  * Authors: Carlos Oscar S. Sorzano (coss@cnb.csic.es)
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_VOLUME_FROM_PDB_HH
26 # define _PROG_VOLUME_FROM_PDB_HH
27 
28 #include <data/blobs.h>
29 #include <data/pdb.h>
30 #include <core/xmipp_program.h>
31 
35 /* PDB Phantom Program Parameters ------------------------------------------ */
38 {
39 public:
41  double Ts;
42 
45 
48 
51 
53  struct blobtype blob;
54 
57 
59  bool origGiven;
60 
62  bool useBlobs;
63 
66 
69 
71  bool doCenter;
72 
74  bool noHet;
75 
77  double sigmaGaussian;
78 
80  std::string intensityColumn;
81 public:
84 
86  void defineParams();
91  void readParams();
92 
95  void produceSideInfo();
96 
98  void show();
99 
101  void run();
102 public:
103  /* Downsampling factor */
104  int M;
105 
106  /* Sampling rate used for highly sampled volumes */
107  double highTs;
108 
109  /* periodic_table(i,0)=radius
110  periodic_table(i,1)=atomic weight */
112 
113  /* Atom interpolator. */
115 
116  // Protein geometry
118 
119 
120  /* Volume at a high sampling rate */
122 
123  /* Volume at a low sampling rate */
125 
126  /* Blob properties at the high sampling rate */
127  void blobProperties() const;
128 
129  /* Atom weight and radius */
130  void atomBlobDescription(const std::string &_element,
131  double &weight, double &radius) const;
132 
133  /* Protein geometry */
134  void computeProteinGeometry();
135 
136  /* Create protein at a high sampling rate */
138 
139  /* Create protein at a low sampling rate */
141 
142  /* Create protein using scattering profiles */
144 };
146 #endif
struct blobtype blob
void atomBlobDescription(const std::string &_element, double &weight, double &radius) const
void createProteinAtLowSamplingRate()
std::string intensityColumn
Column for the intensity (if any). Only valid for fixed_gaussians.
Image< double > Vlow
Matrix1D< double > centerOfMass
void createProteinUsingScatteringProfiles()
void createProteinAtHighSamplingRate()
AtomInterpolator atomProfiles
void blobProperties() const
Matrix1D< double > limit
Matrix2D< double > periodicTable
Image< double > Vhigh
double radius
Spatial radius in Universal System units.
Definition: blobs.h:115