ProSHADE  0.6.5 (NOV 2018)
Protein Shape Descriptors and Symmetry Detection
ProSHADE_internal::ProSHADE_mapFeatures Class Reference

This class is responsible for reading in map and computing all its features and other possible map manipulation. More...

#include <ProSHADE_internal.h>

Public Member Functions

 ProSHADE_mapFeatures (ProSHADE::ProSHADE_settings *settings)
 This is the constructor for the ProSHADE_mapFeatures executive class the user should use to compute and access map features and splitting. More...
 
 ~ProSHADE_mapFeatures ()
 This is the ProSHADE_mapFeatures class destructor responsible for releasing memory. More...
 
void printInfo (int verbose)
 This is the main information output for the ProSHADE_mapFeatures class. More...
 
void fragmentMap (std::string axOrder, int verbose, ProSHADE::ProSHADE_settings *settings)
 This function takes the clear map produced already and fragments it into overlapping boxes of given size. More...
 
std::vector< std::string > getFragmentsList (void)
 This function returns the paths to all fragment files saved by fragmentation functionality. More...
 
void dealWithHalfMaps (ProSHADE::ProSHADE_settings *settings, double *xTranslate, double *yTranslate, double *zTranslate)
 This function takes the clear map produced already and fragments it into overlapping boxes of given size. More...
 

Detailed Description

This class is responsible for reading in any map file and computing the mask. It then proceeds to compute multiple statistical descriptors of the map as a whole and the masked part only, so that cleaner EM maps can be produced. It will also contain the code for splitting maps into fragments.

Definition at line 631 of file ProSHADE_internal.h.

Constructor & Destructor Documentation

§ ProSHADE_mapFeatures()

ProSHADE_internal::ProSHADE_mapFeatures::ProSHADE_mapFeatures ( ProSHADE::ProSHADE_settings settings)

This constructor takes a single structure (.MAP) name (path) and proceeds to compute the features. This is done by simply calling the appropriate function and then doing some sanity checks. The user should use this class to obtain the features as this is the tested and current approach way.

Parameters
[in]settingsInstance of the ProSHADE_settings class containing all the settings values.
Warning
This is an internal function which should not be used by the user.

Definition at line 8251 of file ProSHADE_internal.cpp.

§ ~ProSHADE_mapFeatures()

ProSHADE_internal::ProSHADE_mapFeatures::~ProSHADE_mapFeatures ( )

This destructor simply calls the structure data holding object destructor and then is done as this class does not do much memory management. Sinple.

Warning
This is an internal function which should not be used by the user.

Definition at line 8693 of file ProSHADE_internal.cpp.

Member Function Documentation

§ dealWithHalfMaps()

void ProSHADE_internal::ProSHADE_mapFeatures::dealWithHalfMaps ( ProSHADE::ProSHADE_settings settings,
double *  xTranslate,
double *  yTranslate,
double *  zTranslate 
)

This function takes a map and fragments it into boxes of given size (in Angstroms). These boxes do overlap by 1/2 and the final box of each dimmension may be larger due to the map dimmensions not being perfectly divisible by the required box size, if such is the case. The resulting boxes are checked for containg given fraction of density and then printed into files.

Parameters
[in]settingsAn instance of the ProSHADE_settings class containing all the values required for the function to make decisions.
[in]xTranslateA variable to which the amount of translation along X-axis required to match the model to the outputted map is saved.
[in]yTranslateA variable to which the amount of translation along Y-axis required to match the model to the outputted map is saved.
[in]zTranslateA variable to which the amount of translation along Z-axis required to match the model to the outputted map is saved.
Warning
This is an internal function which should not be used by the user. The user should set the parameters and it will be done automatically.

Definition at line 6877 of file ProSHADE_clipper.cpp.

§ fragmentMap()

void ProSHADE_internal::ProSHADE_mapFeatures::fragmentMap ( std::string  axOrder,
int  verbose,
ProSHADE::ProSHADE_settings settings 
)

This function takes a map and fragments it into boxes of given size (in Angstroms). These boxes do overlap by 1/2 and the final box of each dimmension may be larger due to the map dimmensions not being perfectly divisible by the required box size, if such is the case. The resulting boxes are checked for containg given fraction of density and then printed into files.

Parameters
[in]axOrderThe order of axes which should be used to save the fragments.
[in]verboseInt value stating how loud in the standard output the function should be.
Warning
This is an internal function which should not be used by the user. The user should set the parameters and it will be done automatically.

Definition at line 6575 of file ProSHADE_clipper.cpp.

§ getFragmentsList()

std::vector< std::string > ProSHADE_internal::ProSHADE_mapFeatures::getFragmentsList ( void  )

This is a simple accessor function with a check, if the fragments computation was attempted, it will return the list of fragment files (or empty list in case no fragments passed the fragmentation criteria); otherwise it will give error stating that fragmentation was not computed and therefore that it makes no sense to want to get the list.

Parameters
[out]XA vector of strings containing the paths to all fragment files created by the fragmentMap function called by this object.
Warning
This is an internal function which should not be used by the user.

Definition at line 8711 of file ProSHADE_internal.cpp.

§ printInfo()

void ProSHADE_internal::ProSHADE_mapFeatures::printInfo ( int  verbose)

This function prints all the information gathered about the map by the ProSHADE_mapFeatures class onto the screen into a formatted table.

Parameters
[in]verboseInt value stating how quiet or loud the function should be. In this case, it only affects whether the header for the results table is printed, but the resular are printed in any case.
Warning
This is an internal function which should not be used by the user.

Definition at line 6183 of file ProSHADE_clipper.cpp.


The documentation for this class was generated from the following files: