Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
protocols::frags::TorsionFragmentLibrary Class Reference

a class for classic Rosetta fragment library More...

#include <TorsionFragment.hh>

Inheritance diagram for protocols::frags::TorsionFragmentLibrary:
Inheritance graph
[legend]
Collaboration diagram for protocols::frags::TorsionFragmentLibrary:
Collaboration graph
[legend]

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...
 
SingleResidueTorsionFragmentLibraryoperator[] (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...
 

Detailed Description

a class for classic Rosetta fragment library

essentially a collection of SingleResidueTorsionFragmentLibrary (indexed by residue position)

Definition at line 179 of file TorsionFragment.hh.

Constructor & Destructor Documentation

protocols::frags::TorsionFragmentLibrary::TorsionFragmentLibrary ( )
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


Definition at line 189 of file TorsionFragment.hh.

protocols::frags::TorsionFragmentLibrary::~TorsionFragmentLibrary ( )
virtual

Definition at line 143 of file TorsionFragment.cc.

protocols::frags::TorsionFragmentLibrary::TorsionFragmentLibrary ( Size const  size_in)
inline

constructor with size (number of residue positions)

Definition at line 193 of file TorsionFragment.hh.

References resize().

Member Function Documentation

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.

Definition at line 156 of file TorsionFragment.cc.

References protocols::frags::TorsionFragment::get_secstruct(), protocols::frags::TorsionFragment::get_torsion(), protocols::frags::TorsionFragment::nbb(), core::io::serialization::size(), and protocols::frags::SingleResidueTorsionFragmentLibrary::size().

SingleResidueTorsionFragmentLibrary& protocols::frags::TorsionFragmentLibrary::operator[] ( Size const  pos)
inline

overloaded [] operator to get framgnet pieces for a certain residue position

Definition at line 207 of file TorsionFragment.hh.

References fragments_.

SingleResidueTorsionFragmentLibrary const& protocols::frags::TorsionFragmentLibrary::operator[] ( Size const  pos) const
inline

overloaded [] operator to get framgnet pieces for a certain residue position (access only)

Definition at line 214 of file TorsionFragment.hh.

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

Definition at line 240 of file TorsionFragment.cc.

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.

Definition at line 79 of file TorsionFragment.cc.

References protocols::frags::SingleResidueTorsionFragmentLibrary::append_fragment(), and protocols::TR().

void protocols::frags::TorsionFragmentLibrary::resize ( Size const  new_size)
inline

change the size of fragment library

Definition at line 221 of file TorsionFragment.hh.

References fragments_.

Referenced by TorsionFragmentLibrary().

Size protocols::frags::TorsionFragmentLibrary::size ( ) const
inline

number of residues

Definition at line 201 of file TorsionFragment.hh.

References fragments_.

Member Data Documentation

utility::vector1< SingleResidueTorsionFragmentLibraryOP > protocols::frags::TorsionFragmentLibrary::fragments_
private

a collection of SingleResidueTorsionFragmentLibrary owning pointers

Definition at line 244 of file TorsionFragment.hh.

Referenced by operator[](), resize(), and size().


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