Rosetta 3.4
Public Member Functions | Static Public Member Functions
core::id::SequenceMapping Class Reference

#include <SequenceMapping.hh>

Inheritance diagram for core::id::SequenceMapping:
Inheritance graph
[legend]
Collaboration diagram for core::id::SequenceMapping:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SequenceMapping ()
 ctor
 SequenceMapping (Size const s1, Size const s2)
 ctor
 SequenceMapping (utility::vector1< Size > const &mapping)
 ctor
 SequenceMapping (conformation::signals::LengthEvent const &event)
 convenience constructor from LengthEvent
 ~SequenceMapping ()
 dtor
 SequenceMapping (SequenceMapping const &src)
 copy constructor
SequenceMappingoperator= (SequenceMapping const &src)
void resize (Size const s1, Size const s2)
 resize
void reverse ()
 go from an A->B mapping to a B->A mapping
void downstream_combine (core::id::SequenceMapping const &smap_to_add)
 Apply a B->C mapping to the current A->B mapping to get an A->C mapping i.e. smap[j] becomes smap_to_add[ smap[j] ].
void upstream_combine (core::id::SequenceMapping const &smap_to_add)
 Apply a C->A mapping to the current A->B mapping to get a C->B mapping i.e. smap[j] becomes smap[ smap_to_add[ j ] ].
Size size1 () const
 size of target sequence
Size size2 () const
 size of aligned sequence ???
void set_offset (int setting)
bool all_aligned () const
bool is_identity () const
bool is_identity_ignore_gaps () const
void size2 (Size const s2)
void push_back (Size const al)
void delete_source_residue (Size const pos1)
void show () const
void show (std::ostream &output) const
void insert_source_residue (Size const pos1)
void insert_aligned_residue (Size const pos1, Size const pos2)
void insert_aligned_residue_safe (Size const pos1, Size const pos2)
 same as insert_aligned_residue, but a couple of extra checks on size1 and size2.
void insert_target_residue (Size const pos)
void delete_target_residue (Size const pos)
void clear ()
Size operator[] (Size const pos1) const
Sizeoperator[] (Size const pos1)
bool operator== (SequenceMapping const &other) const
 Equality operator.
utility::vector1< core::Size >
const & 
mapping () const
void mapping (utility::vector1< core::Size > const &mapping)
std::string to_string () const

Static Public Member Functions

static SequenceMapping identity (Size const size)
 Construct an identity mapping, which means that for all positions, i in seq1 maps to i in seq2.

Constructor & Destructor Documentation

core::id::SequenceMapping::SequenceMapping ( ) [inline]

ctor

core::id::SequenceMapping::SequenceMapping ( Size const  s1,
Size const  s2 
) [inline]

ctor

core::id::SequenceMapping::SequenceMapping ( utility::vector1< Size > const &  mapping)

ctor

core::id::SequenceMapping::SequenceMapping ( conformation::signals::LengthEvent const &  event)
core::id::SequenceMapping::~SequenceMapping ( )

dtor

core::id::SequenceMapping::SequenceMapping ( SequenceMapping const &  src)

copy constructor


Member Function Documentation

bool core::id::SequenceMapping::all_aligned ( ) const
void core::id::SequenceMapping::clear ( )
void core::id::SequenceMapping::delete_source_residue ( Size const  pos1)
void core::id::SequenceMapping::delete_target_residue ( Size const  pos)

References size1().

void core::id::SequenceMapping::downstream_combine ( core::id::SequenceMapping const &  smap_to_add)

Apply a B->C mapping to the current A->B mapping to get an A->C mapping i.e. smap[j] becomes smap_to_add[ smap[j] ].

References size2().

Referenced by core::id::combine_sequence_mappings().

static SequenceMapping core::id::SequenceMapping::identity ( Size const  size) [inline, static]

Construct an identity mapping, which means that for all positions, i in seq1 maps to i in seq2.

References is_identity(), and size1().

Referenced by is_identity(), and is_identity_ignore_gaps().

void core::id::SequenceMapping::insert_aligned_residue ( Size const  pos1,
Size const  pos2 
)
void core::id::SequenceMapping::insert_aligned_residue_safe ( Size const  pos1,
Size const  pos2 
)

same as insert_aligned_residue, but a couple of extra checks on size1 and size2.

References size1(), and size2().

Referenced by core::sequence::simple_mapping_from_file().

void core::id::SequenceMapping::insert_source_residue ( Size const  pos1)
void core::id::SequenceMapping::insert_target_residue ( Size const  pos)
bool core::id::SequenceMapping::is_identity ( ) const
bool core::id::SequenceMapping::is_identity_ignore_gaps ( ) const

References identity(), and size1().

utility::vector1< core::Size > const& core::id::SequenceMapping::mapping ( ) const [inline]
void core::id::SequenceMapping::mapping ( utility::vector1< core::Size > const &  mapping) [inline]

References mapping().

SequenceMapping & core::id::SequenceMapping::operator= ( SequenceMapping const &  src)

References mapping(), and size2().

bool core::id::SequenceMapping::operator== ( SequenceMapping const &  other) const

Equality operator.

References size1().

Size core::id::SequenceMapping::operator[] ( Size const  pos1) const
Size & core::id::SequenceMapping::operator[] ( Size const  pos1)
void core::id::SequenceMapping::push_back ( Size const  al)
void core::id::SequenceMapping::resize ( Size const  s1,
Size const  s2 
)
void core::id::SequenceMapping::reverse ( )
void core::id::SequenceMapping::set_offset ( int  setting)

References size1().

void core::id::SequenceMapping::show ( std::ostream &  output) const

References size1().

void core::id::SequenceMapping::show ( ) const
Size core::id::SequenceMapping::size1 ( ) const
Size core::id::SequenceMapping::size2 ( ) const
void core::id::SequenceMapping::size2 ( Size const  s2)
std::string core::id::SequenceMapping::to_string ( ) const

References size1().

void core::id::SequenceMapping::upstream_combine ( core::id::SequenceMapping const &  smap_to_add)

Apply a C->A mapping to the current A->B mapping to get a C->B mapping i.e. smap[j] becomes smap[ smap_to_add[ j ] ].

References mapping().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines