ProSHADE  0.6.5 (NOV 2018)
Protein Shape Descriptors and Symmetry Detection
All Classes Namespaces Files Functions Variables Pages
rotateMap.cpp
1 
15 //============================================ ProSHADE
16 #include "../proshade/ProSHADE.h"
17 
18 //============================================ Main
19 int main ( int argc,
20  char **argv )
21 {
22  //======================================== Default settings
24 
25  // ... Settings regarding resolutions
26  setUp->mapResolution = 1.0;
27 
28  // ... Settings regarding space around the structure in lattice
29  setUp->extraSpace = 0.0;
30 
31  // ... Settings regarding rotation module, these should to be set this way!
32  setUp->clearMapData = false;
33  setUp->useCOM = false;
34  setUp->rotChangeDefault = true;
35  setUp->ignoreLs = std::vector<int> ();
36  setUp->maskBlurFactor = 500.0;
37  setUp->maskBlurFactorGiven = false;
38 
39 
40  // ... Settings regarding the task
41  setUp->taskToPerform = ProSHADE::RotateMap;
42 
43  // ... Settings regarding where and if to save the clear map
44  setUp->clearMapFile = "";
45 
46  // ... Settings regarding the map rotation mode
47  setUp->rotAngle = 0.0;
48  setUp->rotXAxis = 0.0;
49  setUp->rotYAxis = 0.0;
50  setUp->rotZAxis = 0.0;
51 
52  // ... Settings regarding the map saving mode
53  setUp->axisOrder = "xyz";
54 
55  // ... Settings regarding the standard output amount
56  setUp->verbose = -1;
57  setUp->htmlReport = false;
58 
59  //======================================== Get files
60  if ( argc != 7 )
61  {
62  std::cout << std::endl << "Usage: rotateMap [filename1] [filename2] [xAxis] [yAxis] [zAxis] [angle] to rotate [filename1] by [angle] along the rotation axis ( [xAxis], [yAxis], [zAxis] ) and save the resulting map in [filename2]." << std::endl << std::endl;
63  exit ( 0 );
64  }
65  else
66  {
67  setUp->structFiles.emplace_back ( std::string ( argv[1] ) );
68  setUp->clearMapFile = ( std::string ( argv[2] ) );
69  setUp->rotXAxis = std::stod ( argv[3] );
70  setUp->rotYAxis = std::stod ( argv[4] );
71  setUp->rotZAxis = std::stod ( argv[5] );
72  setUp->rotAngle = std::stod ( argv[6] );
73  }
74 
75  //======================================== Run ProSHADE
76  ProSHADE::ProSHADE *run = new ProSHADE::ProSHADE ( setUp );
77 
78  //======================================== Print results
79  printf ( "ProSHADE library version: %s\n\n", run->getProSHADEVersion().c_str() );
80 
81  //======================================== Free memory
82  delete setUp;
83  delete run;
84 
85  //======================================== Done
86  return 0;
87 }
88 
double mapResolution
This is the internal resolution at which the calculations are done, not necessarily the resolution of...
Definition: ProSHADE.h:78
bool clearMapData
This value is used to decide whether the input maps should be cleared again, or not.
Definition: ProSHADE.h:146
std::string clearMapFile
If map features are to be extracted, should the clear map be saved (then give file name here)...
Definition: ProSHADE.h:144
bool htmlReport
Should HTML report for the run be created?
Definition: ProSHADE.h:186
int verbose
Should the software report on the progress, or just be quiet? Value between 0 (quiet) and 4 (loud) ...
Definition: ProSHADE.h:189
double rotAngle
The angle of the rotation to be done to the map structure in the map rotation mode.
Definition: ProSHADE.h:166
std::string getProSHADEVersion(void)
Miscellanous function allowing the user to get the ProSHADE version.
Definition: ProSHADE.cpp:2910
bool maskBlurFactorGiven
Was a specific value of the blurring factor requested by the user?
Definition: ProSHADE.h:148
std::vector< int > ignoreLs
This vector lists all the bandwidth values which should be ignored and not part of the computations...
Definition: ProSHADE.h:117
double rotXAxis
The X-axis element of the rotation axis along which the rotation is to be done in the map rotation mo...
Definition: ProSHADE.h:167
double rotYAxis
The Y-axis element of the rotation axis along which the rotation is to be done in the map rotation mo...
Definition: ProSHADE.h:168
double rotZAxis
The Z-axis element of the rotation axis along which the rotation is to be done in the map rotation mo...
Definition: ProSHADE.h:169
bool rotChangeDefault
If map rotation is selected, the default automatic parameter decision is changed. This variable state...
Definition: ProSHADE.h:170
std::string axisOrder
A string specifying the order of the axis. Must have three characters and any permutation of &#39;x&#39;...
Definition: ProSHADE.h:183
This class stores all the settings and is passed to the executive classes instead of multitude of par...
Definition: ProSHADE.h:74
bool useCOM
Should the Centre of Mass (COM) be used to center the structure in the cell?
Definition: ProSHADE.h:105
double maskBlurFactor
The is the amount of blurring to be used to create masks for maps.
Definition: ProSHADE.h:147
std::vector< std::string > structFiles
This vector should contain all the structures that are being dealt with, but this does not yet work! ...
Definition: ProSHADE.h:120
Task taskToPerform
This custom type variable determines which task to perfom (i.e. symmetry detection, distances computation or map features extraction).
Definition: ProSHADE.h:141
double extraSpace
What should be the distance added on both sides to the structure, so that the next cell density would...
Definition: ProSHADE.h:109