Xmipp
v3.23.11-Nereus
|
#include <nma_alignment.h>
Public Member Functions | |
ProgNmaAlignment () | |
Empty constructor. More... | |
~ProgNmaAlignment () | |
Destructor. More... | |
void | defineParams () |
Define params. More... | |
void | readParams () |
Read arguments from command line. More... | |
void | show () |
Show. More... | |
FileName | createDeformedPDB (int pyramidLevel) const |
void | performCompleteSearch (const FileName &fnRandom, int pyramidLevel) const |
double | performContinuousAssignment (const FileName &fnRandom, int pyramidLevel) const |
double | computeFitness (Matrix1D< double > &trial) const |
void | updateBestFit (double fitness) |
virtual void | preProcess () |
virtual void | processImage (const FileName &fnImg, const FileName &fnImgOut, const MDRow &rowIn, MDRow &rowOut) |
virtual void | finishProcessing () |
virtual void | writeImageParameters (const FileName &fnImg) |
Public Member Functions inherited from XmippMetadataProgram | |
MetaData * | getInputMd () |
MetaDataVec & | getOutputMd () |
XmippMetadataProgram () | |
Empty constructor. More... | |
virtual int | tryRead (int argc, const char **argv, bool reportErrors=true) |
virtual void | init () |
virtual void | setup (MetaData *md, const FileName &o="", const FileName &oroot="", bool applyGeo=false, MDLabel label=MDL_IMAGE) |
virtual | ~XmippMetadataProgram () |
void | setMode (WriteModeMetaData _mode) |
void | setupRowOut (const FileName &fnImgIn, const MDRow &rowIn, const FileName &fnImgOut, MDRow &rowOut) const |
Prepare rowout. More... | |
virtual void | wait () |
Wait for the distributor to finish. More... | |
virtual void | checkPoint () |
For very long programs, it may be needed to write checkpoints. More... | |
virtual void | run () |
Run over all images. More... | |
Public Member Functions inherited from XmippProgram | |
const char * | getParam (const char *param, int arg=0) |
const char * | getParam (const char *param, const char *subparam, int arg=0) |
int | getIntParam (const char *param, int arg=0) |
int | getIntParam (const char *param, const char *subparam, int arg=0) |
double | getDoubleParam (const char *param, int arg=0) |
double | getDoubleParam (const char *param, const char *subparam, int arg=0) |
float | getFloatParam (const char *param, int arg=0) |
float | getFloatParam (const char *param, const char *subparam, int arg=0) |
void | getListParam (const char *param, StringVector &list) |
int | getCountParam (const char *param) |
bool | checkParam (const char *param) |
bool | existsParam (const char *param) |
void | addParamsLine (const String &line) |
void | addParamsLine (const char *line) |
ParamDef * | getParamDef (const char *param) const |
virtual void | quit (int exit_code=0) const |
virtual int | tryRun () |
void | initProgress (size_t total, size_t stepBin=60) |
void | setProgress (size_t value=0) |
void | endProgress () |
void | processDefaultComment (const char *param, const char *left) |
void | setDefaultComment (const char *param, const char *comment) |
void | setProgramName (const char *name) |
void | addUsageLine (const char *line, bool verbatim=false) |
void | clearUsage () |
void | addExampleLine (const char *example, bool verbatim=true) |
void | addSeeAlsoLine (const char *seeAlso) |
void | addKeywords (const char *keywords) |
const char * | name () const |
virtual void | usage (int verb=0) const |
virtual void | usage (const String ¶m, int verb=2) |
int | version () const |
virtual void | read (int argc, const char **argv, bool reportErrors=true) |
virtual void | read (int argc, char **argv, bool reportErrors=true) |
void | read (const String &argumentsLine) |
XmippProgram () | |
XmippProgram (int argc, const char **argv) | |
virtual | ~XmippProgram () |
Public Attributes | |
bool | MPIversion |
bool | resume |
FileName | fnPDB |
Reference atomic or pseudo-atomic structure in PDB format. More... | |
FileName | fnOutDir |
Output directory. More... | |
FileName | fnModeList |
File with a list of mode filenames. More... | |
double | trustradius_scale |
Positive scaling factor to scale the initial trust region radius. More... | |
double | sampling_rate |
Pixel size in Angstroms. More... | |
FileName | fnmask |
Mask file for 2D masking of the projections of the deformed volume. More... | |
bool | do_centerPDB |
Center the PDB structure. More... | |
bool | projMatch |
Real-space instead of wavelet-space (default) projection matching (global matching) that is refined by local (Fourier central slice) projection matching. More... | |
double | discrAngStep |
Angular sampling step for computing the reference projections for global matching. More... | |
double | gaussian_DFT_sigma |
Sigma of Gaussian weigthing in Fourier space (parameter of central-slice method) More... | |
double | gaussian_Real_sigma |
Sigma of Gaussian weigthing in real space for spline interpolation in Fourier space (parameter of central-slice method) More... | |
double | weight_zero_freq |
Zero-frequency weight (parameter of central-slice method) More... | |
bool | do_FilterPDBVol |
Low-pass filter the volume from PDB. More... | |
double | cutoff_LPfilter |
Low-pass cut-off frequency. More... | |
bool | useFixedGaussian |
Use pseudo-atoms instead of atoms. More... | |
double | sigmaGaussian |
Gaussian standard deviation for pseudo-atoms. More... | |
int | rangen |
Matrix1D< double > | parameters |
Matrix1D< double > | trial |
Matrix1D< double > | trial_best |
Matrix1D< double > | fitness_min |
int | numberOfModes |
int | imgSize |
FileName | currentImgName |
int | currentStage |
Matrix1D< double > | bestStage1 |
MetaDataVec | DF_out |
char | nameTemplate [256] |
ProgPdbConverter * | progVolumeFromPDB |
Public Attributes inherited from XmippMetadataProgram | |
FileName | fn_in |
Filenames of input and output Metadata. More... | |
FileName | fn_out |
FileName | baseName |
FileName | pathBaseName |
FileName | oextBaseName |
bool | apply_geo |
Apply geo. More... | |
size_t | ndimOut |
Output dimensions. More... | |
size_t | zdimOut |
size_t | ydimOut |
size_t | xdimOut |
DataType | datatypeOut |
size_t | mdInSize |
Number of input elements. More... | |
Public Attributes inherited from XmippProgram | |
bool | doRun |
bool | runWithoutArgs |
int | verbose |
Verbosity level. More... | |
int | debug |
Protected Member Functions | |
virtual void | createWorkFiles () |
Protected Member Functions inherited from XmippMetadataProgram | |
virtual void | initComments () |
virtual void | postProcess () |
virtual bool | getImageToProcess (size_t &objId, size_t &objIndex) |
void | show () const override |
virtual void | startProcessing () |
virtual void | writeOutput () |
virtual void | showProgress () |
virtual void | defineLabelParam () |
Protected Member Functions inherited from XmippProgram | |
void | defineCommons () |
Protected Member Functions inherited from Rerunable | |
Rerunable (const FileName &fn) | |
virtual void | createWorkFiles (bool resume, MetaData *md) |
const FileName & | getFileName () const |
void | setFileName (const FileName &fn) |
Additional Inherited Members | |
Protected Attributes inherited from XmippMetadataProgram | |
WriteModeMetaData | mode |
Metadata writing mode: OVERWRITE, APPEND. More... | |
FileName | oext |
Output extension and root. More... | |
FileName | oroot |
MDLabel | image_label |
MDLabel to be used to read/write images, usually will be MDL_IMAGE. More... | |
bool | produces_an_output |
Indicate that a unique final output is produced. More... | |
bool | produces_a_metadata |
Indicate that the unique final output file is a Metadata. More... | |
bool | each_image_produces_an_output |
Indicate that an output is produced for each image in the input. More... | |
bool | allow_apply_geo |
bool | decompose_stacks |
Input Metadata will treat a stack file as a set of images instead of a unique file. More... | |
bool | delete_output_stack |
Delete previous output stack file prior to process images. More... | |
bool | get_image_info |
Get the input image file dimensions to further operations. More... | |
bool | save_metadata_stack |
Save the associated output metadata when output file is a stack. More... | |
bool | track_origin |
Include the original input image filename in the output stack. More... | |
bool | keep_input_columns |
Keep input metadata columns. More... | |
bool | remove_disabled |
Remove disabled images from the input selfile. More... | |
bool | allow_time_bar |
Show process time bar. More... | |
bool | input_is_metadata |
Input is a metadata. More... | |
bool | single_image |
Input is a single image. More... | |
bool | input_is_stack |
Input is a stack. More... | |
bool | output_is_stack |
Output is a stack. More... | |
bool | create_empty_stackfile |
bool | delete_mdIn |
size_t | time_bar_step |
Some time bar related counters. More... | |
size_t | time_bar_size |
size_t | time_bar_done |
Protected Attributes inherited from XmippProgram | |
int | errorCode |
ProgramDef * | progDef |
Program definition and arguments parser. More... | |
std::map< String, CommentList > | defaultComments |
int | argc |
Original command line arguments. More... | |
const char ** | argv |
NMA Alignment Parameters.
Definition at line 40 of file nma_alignment.h.
ProgNmaAlignment::ProgNmaAlignment | ( | ) |
Empty constructor.
Definition at line 33 of file nma_alignment.cpp.
ProgNmaAlignment::~ProgNmaAlignment | ( | ) |
Destructor.
Definition at line 43 of file nma_alignment.cpp.
double ProgNmaAlignment::computeFitness | ( | Matrix1D< double > & | trial | ) | const |
Computes the fitness of a set of trial parameters
FileName ProgNmaAlignment::createDeformedPDB | ( | int | pyramidLevel | ) | const |
Create deformed PDB
Definition at line 146 of file nma_alignment.cpp.
|
inlineprotectedvirtual |
Reimplemented in MpiProgNMA.
Definition at line 187 of file nma_alignment.h.
|
virtual |
Define params.
Reimplemented from XmippMetadataProgram.
Definition at line 48 of file nma_alignment.cpp.
|
virtual |
Write the final parameters.
Reimplemented from XmippMetadataProgram.
Reimplemented in MpiProgNMA.
Definition at line 140 of file nma_alignment.cpp.
void ProgNmaAlignment::performCompleteSearch | ( | const FileName & | fnRandom, |
int | pyramidLevel | ||
) | const |
Perform a complete search with the given image and reference volume at the given level of pyramid. Return the values in the last five positions of trial.
Definition at line 199 of file nma_alignment.cpp.
double ProgNmaAlignment::performContinuousAssignment | ( | const FileName & | fnRandom, |
int | pyramidLevel | ||
) | const |
Perform a continuous search with the given image and reference volume at the given pyramid level. Return the values in the last five positions of trial.
Definition at line 283 of file nma_alignment.cpp.
|
virtual |
Produce side info. An exception is thrown if any of the files is not found
Reimplemented from XmippMetadataProgram.
Definition at line 128 of file nma_alignment.cpp.
|
virtual |
Assign NMA and Alignment parameters to an image
Implements XmippMetadataProgram.
Definition at line 380 of file nma_alignment.cpp.
|
virtual |
Read arguments from command line.
Reimplemented from XmippMetadataProgram.
Definition at line 79 of file nma_alignment.cpp.
void ProgNmaAlignment::show | ( | ) |
Show.
Definition at line 104 of file nma_alignment.cpp.
void ProgNmaAlignment::updateBestFit | ( | double | fitness | ) |
Update the best fitness and the corresponding best trial
Definition at line 317 of file nma_alignment.cpp.
|
virtual |
Write the parameters found for one image
Reimplemented in MpiProgNMA.
Definition at line 486 of file nma_alignment.cpp.
Matrix1D<double> ProgNmaAlignment::bestStage1 |
Definition at line 127 of file nma_alignment.h.
FileName ProgNmaAlignment::currentImgName |
Definition at line 121 of file nma_alignment.h.
int ProgNmaAlignment::currentStage |
Definition at line 124 of file nma_alignment.h.
double ProgNmaAlignment::cutoff_LPfilter |
Low-pass cut-off frequency.
Definition at line 89 of file nma_alignment.h.
MetaDataVec ProgNmaAlignment::DF_out |
Definition at line 130 of file nma_alignment.h.
double ProgNmaAlignment::discrAngStep |
Angular sampling step for computing the reference projections for global matching.
Definition at line 74 of file nma_alignment.h.
bool ProgNmaAlignment::do_centerPDB |
Center the PDB structure.
Definition at line 68 of file nma_alignment.h.
bool ProgNmaAlignment::do_FilterPDBVol |
Low-pass filter the volume from PDB.
Definition at line 86 of file nma_alignment.h.
Matrix1D<double> ProgNmaAlignment::fitness_min |
Definition at line 112 of file nma_alignment.h.
FileName ProgNmaAlignment::fnmask |
Mask file for 2D masking of the projections of the deformed volume.
Definition at line 65 of file nma_alignment.h.
FileName ProgNmaAlignment::fnModeList |
File with a list of mode filenames.
Definition at line 56 of file nma_alignment.h.
FileName ProgNmaAlignment::fnOutDir |
Output directory.
Definition at line 53 of file nma_alignment.h.
FileName ProgNmaAlignment::fnPDB |
Reference atomic or pseudo-atomic structure in PDB format.
Definition at line 50 of file nma_alignment.h.
double ProgNmaAlignment::gaussian_DFT_sigma |
Sigma of Gaussian weigthing in Fourier space (parameter of central-slice method)
Definition at line 77 of file nma_alignment.h.
double ProgNmaAlignment::gaussian_Real_sigma |
Sigma of Gaussian weigthing in real space for spline interpolation in Fourier space (parameter of central-slice method)
Definition at line 80 of file nma_alignment.h.
int ProgNmaAlignment::imgSize |
Definition at line 118 of file nma_alignment.h.
bool ProgNmaAlignment::MPIversion |
MPI version
Definition at line 44 of file nma_alignment.h.
char ProgNmaAlignment::nameTemplate[256] |
Definition at line 133 of file nma_alignment.h.
int ProgNmaAlignment::numberOfModes |
Definition at line 115 of file nma_alignment.h.
Matrix1D<double> ProgNmaAlignment::parameters |
Definition at line 103 of file nma_alignment.h.
ProgPdbConverter* ProgNmaAlignment::progVolumeFromPDB |
Definition at line 136 of file nma_alignment.h.
bool ProgNmaAlignment::projMatch |
Real-space instead of wavelet-space (default) projection matching (global matching) that is refined by local (Fourier central slice) projection matching.
Definition at line 71 of file nma_alignment.h.
int ProgNmaAlignment::rangen |
Definition at line 100 of file nma_alignment.h.
bool ProgNmaAlignment::resume |
Resume computations
Definition at line 47 of file nma_alignment.h.
double ProgNmaAlignment::sampling_rate |
Pixel size in Angstroms.
Definition at line 62 of file nma_alignment.h.
double ProgNmaAlignment::sigmaGaussian |
Gaussian standard deviation for pseudo-atoms.
Definition at line 95 of file nma_alignment.h.
Matrix1D<double> ProgNmaAlignment::trial |
Definition at line 106 of file nma_alignment.h.
Matrix1D<double> ProgNmaAlignment::trial_best |
Definition at line 109 of file nma_alignment.h.
double ProgNmaAlignment::trustradius_scale |
Positive scaling factor to scale the initial trust region radius.
Definition at line 59 of file nma_alignment.h.
bool ProgNmaAlignment::useFixedGaussian |
Use pseudo-atoms instead of atoms.
Definition at line 92 of file nma_alignment.h.
double ProgNmaAlignment::weight_zero_freq |
Zero-frequency weight (parameter of central-slice method)
Definition at line 83 of file nma_alignment.h.