![]() |
Rosetta
2016.11
|
#include <NCAARotamerLibrarySpecification.hh>
Public Member Functions | |
NCAARotamerLibrarySpecification () | |
NCAARotamerLibrarySpecification (std::string const &ncaa_rotlib_path) | |
NCAARotamerLibrarySpecification (std::istream &) | |
virtual | ~NCAARotamerLibrarySpecification () |
void | ncaa_rotlib_path (std::string const &path) |
Sets the path to the NCAA rotlib for the residue type. More... | |
void | ncaa_rotlib_n_bin_per_rot (utility::vector1< Size > const &n_bins_per_rot) |
Sets the number of rotamers for each rotatable bond described by the NCAA rotlib. More... | |
void | semirotameric_ncaa_rotlib (bool setting) |
void | nrchi_symmetric (bool setting) |
void | nrchi_start_angle (Real setting) |
std::string const & | ncaa_rotlib_path () const |
Returns the path to the NCAA rotlib for the residue type. More... | |
core::Size | ncaa_rotlib_n_rotameric_bins () const |
Returns the number of rotatable bonds described by the NCAA rotlib (not nesesarily equal to nchi) More... | |
utility::vector1< Size > const & | ncaa_rotlib_n_bin_per_rot () const |
Returns the number of rotamers for each rotatable bond described by the NCAA rotlib for all bonds. More... | |
bool | semirotameric_ncaa_rotlib () const |
bool | nrchi_symmetric () const |
Real | nrchi_start_angle () const |
virtual std::string | keyname () const |
Which type of SingleResidueRotamerLibrary does this specification sub-type correspond to? More... | |
virtual std::string | cache_tag (core::chemical::ResidueType const &) const |
How, if at all, should the corresponding SingleResidueRotamerLibrary be cached? More... | |
![]() | |
RotamerLibrarySpecification () | |
virtual | ~RotamerLibrarySpecification () |
Static Public Member Functions | |
static std::string | library_name () |
Private Attributes | |
std::string | ncaa_rotlib_path_ |
path to the NCAA rotlib More... | |
utility::vector1< Size > | ncaa_rotlib_n_bins_per_rot_ |
the number of rotamer bins for each chi angle in the NCAA rotlib More... | |
bool | semirotameric_ncaa_rotlib_ |
whether or not the NCAA rotlib is semirotameric More... | |
bool | nrchi_symmetric_ |
Real | nrchi_start_angle_ |
core::chemical::rotamers::NCAARotamerLibrarySpecification::NCAARotamerLibrarySpecification | ( | ) |
core::chemical::rotamers::NCAARotamerLibrarySpecification::NCAARotamerLibrarySpecification | ( | std::string const & | ncaa_rotlib_path | ) |
core::chemical::rotamers::NCAARotamerLibrarySpecification::NCAARotamerLibrarySpecification | ( | std::istream & | input | ) |
References ncaa_rotlib_n_bins_per_rot_, ncaa_rotlib_path_, and core::chemical::rotamers::TR().
|
virtual |
|
virtual |
How, if at all, should the corresponding SingleResidueRotamerLibrary be cached?
The default is to return an empty string, which turns off caching.
The SingleResidueRotamerLibraries are cached in the SingleResidueRotamerLibraryFactory based on keyname() and cache_tag() (as keys in a map< string, map< string, SRRL > > ). Two RotamerLibrarySpecifications with identical return values for keyname() and cache_tag() should correspond to (functionally) identical SingleResidueRotamerLibraries.
This has to be in the RotamerLibrarySpecification, as when reading we need to know the cache string before creating the library.
A note on writing RotamerLibrarySpecifications and SingleResidueRotamerLibrarys: The functions of a SingleResidueRotamerLibrary will normally have access to the actual RotamerLibrarySpecification from the passed Residue/ResidueType. Therefore, you don't need to store all the information from a RLS in the SRRL. Not doing so allows you to have more general cache_tag(), as the cache_tag() function only needs to disambiguate RotamerLibrarySpecifications which result in different SingleResidueRotamerLibrarys. (That is, cache_tag() only needs to encapsulate data used by SingleResidueRotamerLibraryCreator to create the SingleResidueRotamerLibrary.)
The ResidueType is passed to cache_tag() so that if the SingleResidueRotamerLibraryCreator needs details from the ResidueType in order to correctly create the SingleResidueRotamerLibrary, that information can be extracted. In general, though, you want to avoid keying off of information in ResidueType as much as possible.
Reimplemented from core::chemical::rotamers::RotamerLibrarySpecification.
References core::chemical::ResidueType::mainchain_atoms(), core::chemical::ResidueType::name3(), ncaa_rotlib_n_bins_per_rot_, ncaa_rotlib_path_, nrchi_start_angle_, nrchi_symmetric_, and semirotameric_ncaa_rotlib_.
|
virtual |
Which type of SingleResidueRotamerLibrary does this specification sub-type correspond to?
Implements core::chemical::rotamers::RotamerLibrarySpecification.
References library_name().
|
static |
|
inline |
Sets the number of rotamers for each rotatable bond described by the NCAA rotlib.
References ncaa_rotlib_n_bins_per_rot_.
|
inline |
Returns the number of rotamers for each rotatable bond described by the NCAA rotlib for all bonds.
References ncaa_rotlib_n_bins_per_rot_.
|
inline |
Returns the number of rotatable bonds described by the NCAA rotlib (not nesesarily equal to nchi)
References ncaa_rotlib_n_bins_per_rot_.
|
inline |
Sets the path to the NCAA rotlib for the residue type.
References ncaa_rotlib_path_, and protocols::hybridization::path.
|
inline |
Returns the path to the NCAA rotlib for the residue type.
References ncaa_rotlib_path_.
|
inline |
References nrchi_start_angle_.
|
inline |
References nrchi_start_angle_.
|
inline |
References nrchi_symmetric_.
|
inline |
References nrchi_symmetric_.
|
inline |
References semirotameric_ncaa_rotlib_.
|
inline |
References semirotameric_ncaa_rotlib_.
|
private |
the number of rotamer bins for each chi angle in the NCAA rotlib
Referenced by cache_tag(), ncaa_rotlib_n_bin_per_rot(), ncaa_rotlib_n_rotameric_bins(), and NCAARotamerLibrarySpecification().
|
private |
path to the NCAA rotlib
Referenced by cache_tag(), ncaa_rotlib_path(), and NCAARotamerLibrarySpecification().
|
private |
Referenced by cache_tag(), and nrchi_start_angle().
|
private |
Referenced by cache_tag(), and nrchi_symmetric().
|
private |
whether or not the NCAA rotlib is semirotameric
Referenced by cache_tag(), and semirotameric_ncaa_rotlib().