Rosetta 3.5
|
a class for classic Rosetta fragment library More...
#include <TorsionFragment.hh>
Public Member Functions | |
TorsionFragmentLibrary () | |
default constructor More... | |
virtual | ~TorsionFragmentLibrary () |
TorsionFragmentLibrary (Size const size_in) | |
constructor with size (number of residue positions) More... | |
Size | size () const |
number of residues More... | |
SingleResidueTorsionFragmentLibrary & | operator[] (Size const pos) |
overloaded [] operator to get framgnet pieces for a certain residue position More... | |
SingleResidueTorsionFragmentLibrary const & | operator[] (Size const pos) const |
overloaded [] operator to get framgnet pieces for a certain residue position (access only) More... | |
void | resize (Size const new_size) |
change the size of fragment library More... | |
bool | read_file (std::string const name, Size const frag_size, Size const nbb) |
initialize fragment data from a classic Rosetta fragment library More... | |
bool | derive_from_src_lib (Size const my_size, Size const src_size, TorsionFragmentLibraryCOP src_lib_op) |
extract a fragment library with smaller fragment size from the one with larger lize More... | |
void | print (std::ostream &os) const |
Show some info – right now just for debugging, ie not a full dump of the library. More... | |
Private Attributes | |
utility::vector1 < SingleResidueTorsionFragmentLibraryOP > | fragments_ |
a collection of SingleResidueTorsionFragmentLibrary owning pointers More... | |
a class for classic Rosetta fragment library
essentially a collection of SingleResidueTorsionFragmentLibrary (indexed by residue position)
|
inline |
default constructor
Code duplication alert: TorsionFragment is going to be phased out Please avoid writing any new code using these classes: look in core/fragment/ instead look in /protocols/abinitio/FragmentMover for usage examples
|
virtual |
|
inline |
constructor with size (number of residue positions)
References resize().
bool protocols::frags::TorsionFragmentLibrary::derive_from_src_lib | ( | Size const | my_size, |
Size const | src_size, | ||
TorsionFragmentLibraryCOP | src_lib_op | ||
) |
extract a fragment library with smaller fragment size from the one with larger lize
for example, 1-mer library can ben extracted from 3-mer library. This function is set up in a general way that both sizes of smaller fragment and larger fragment can be flexibly specified by my_size and src_size. Also, the source library does not have to contain fragment data for every residue position. For example, for loop modeling, we only need fragment for loop segment and after this function is called, smaller library is created only for regions in which there is data in the larger library. Lastly, smaller fragment is aligned in the center of larger fragment to have data extracted.
References protocols::frags::TorsionFragment::get_secstruct(), protocols::frags::TorsionFragment::get_torsion(), protocols::frags::TorsionFragment::nbb(), core::io::serialization::size(), and protocols::frags::SingleResidueTorsionFragmentLibrary::size().
|
inline |
overloaded [] operator to get framgnet pieces for a certain residue position
References fragments_.
|
inline |
overloaded [] operator to get framgnet pieces for a certain residue position (access only)
References fragments_.
void protocols::frags::TorsionFragmentLibrary::print | ( | std::ostream & | os) | const |
Show some info – right now just for debugging, ie not a full dump of the library.
Show size info about library
References core::io::serialization::size().
bool protocols::frags::TorsionFragmentLibrary::read_file | ( | std::string const | filename, |
Size const | frag_size, | ||
Size const | nbb | ||
) |
initialize fragment data from a classic Rosetta fragment library
frag_size is the size of fragment in the library and nbb is the number of backbone torision angles stored in each fragment, for protein, this will be 3. Return false if there is a reading error and all the data which have been stored will be erased.
References protocols::frags::SingleResidueTorsionFragmentLibrary::append_fragment(), and protocols::TR().
|
inline |
|
inline |
number of residues
References fragments_.
|
private |
a collection of SingleResidueTorsionFragmentLibrary owning pointers
Referenced by operator[](), resize(), and size().