Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
|
Class for loading conformations from a list of PDB / cif files, or from a plain txt file listing the conformations as Point_d. Class for loading conformations from a list of PDB / cif files, or from a plain txt file listing the conformations as Point_d. More...
#include <Conformation_loader.h>
Public Member Functions | |
T_Conformation_loader (void) | |
Default constructor. More... | |
virtual boost::program_options::options_description | add_options (void) override |
Virtual method for adding options to the module. More... | |
virtual bool | check_options (std::string &message) const override |
Checks that the input options' values are coherent. More... | |
std::string | get_output_prefix (void) const override |
Returns a prefix that concatains the input line options used when running the module. More... | |
bool | load (unsigned verbose, std::ostream &out) override |
Load function. More... | |
std::string | get_name (void) const override |
Return the name of the class itself. More... | |
void | statistics (std::ostream &out) |
Prints statistics about the loaded conformations. More... | |
const std::vector< std::vector< Conformation > > & | get_conformations (void) const |
Get the vector of conformations. More... | |
std::vector< std::vector< Conformation > > & | get_conformations (void) |
Get the vector of conformations. More... | |
Molecular_system_loader & | get_molecular_system_loader (void) |
Get the molecular system loader. More... | |
void | save_conformations (void) |
Save the loaded conformations in the current dir, with output_prefix as filename. More... | |
Static Public Member Functions | |
static boost::program_options::options_description *& | get_options (void) |
Access to the options' description of the module. More... | |
Management | |
void | set_loader_instance_name (const std::string &loader_instance_name) |
const std::string & | get_loader_instance_name (void) const |
Class for loading conformations from a list of PDB / cif files, or from a plain txt file listing the conformations as Point_d. Class for loading conformations from a list of PDB / cif files, or from a plain txt file listing the conformations as Point_d.
It combines the options from the SBL::IO::T_Molecular_system_loader and the SBL::Models::T_Points_d_file_loader. To programmatically load a conformation from a PDB / mmCIF file, one must add the file to the molecular system loader :
T_Conformation_loader<Default_conformation_builder> conformation_loader; conformation_loader.get_molecular_system_loader().set_loaded_file_paths({"path_to_my_file"});
To load from the application command line, PDB / mmCIF files can be added as :
myapplication -f "path_to_my_file"
Conformation_builder_ | : Functor building a conformation from a dD point or a molecular model from the SBL. |
|
inline |
Default constructor.
|
overridevirtual |
Virtual method for adding options to the module.
Adds options specific to the "Conformations loader" to the option parser and also as command line arguments.
Reimplemented from T_Module_option_description< Dummy >.
|
overridevirtual |
Checks that the input options' values are coherent.
Reimplemented from T_Module_option_description< Dummy >.
std::vector< std::vector< typename Conformation_builder_::Conformation > > & get_conformations | ( | void | ) |
Get the vector of conformations.
const std::vector< std::vector< typename Conformation_builder_::Conformation > > & get_conformations | ( | void | ) | const |
Get the vector of conformations.
T_Conformation_loader< Conformation_builder_ >::Molecular_system_loader & get_molecular_system_loader | ( | void | ) |
Get the molecular system loader.
|
overridevirtual |
Return the name of the class itself.
Reimplemented from Loader_base.
|
inlinestaticinherited |
Access to the options' description of the module.
|
overridevirtual |
Returns a prefix that concatains the input line options used when running the module.
Reimplemented from T_Module_option_description< Dummy >.
|
inlineoverridevirtual |
Load function.
verbose | Verbosity level. | |
[out] | out | Output stream. |
Load conformations.
verbose | Verbosity level. | |
[out] | out | Output stream. |
Reimplemented from Loader_base.
|
inline |
Save the loaded conformations in the current dir, with output_prefix as filename.
void statistics | ( | std::ostream & | out | ) |
Prints statistics about the loaded conformations.
[out] | out | Output stream for printing the statistics. |