Rosetta  2021.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
protocols::denovo_design::connection::ConnectionArchitect Class Reference

Architect for covalently joining two segments of a pose. More...

#include <ConnectionArchitect.hh>

Inheritance diagram for protocols::denovo_design::connection::ConnectionArchitect:
Inheritance graph
[legend]

Public Types

typedef std::pair< std::string,
std::string > 
SegmentPair
 
typedef utility::vector1
< SegmentPair
SegmentPairs
 
typedef std::set< core::SizeLengthSet
 
typedef architects::Lengths Lengths
 

Public Member Functions

 ConnectionArchitect (std::string const &id_value)
 
 ~ConnectionArchitect () override
 
std::string type () const override
 simply returns the name of this type of architect More...
 
virtual ConnectionArchitectOP clone () const
 
void apply (components::StructureData &sd) const
 does the work of modifying the StructureData More...
 
void apply (components::StructureData &sd, core::Real &random) const
 applies with a specific random number More...
 
MotifOPs compute_connection_candidates (components::StructureData const &sd) const
 computes a list of possible motifs More...
 
SegmentNames const & segment1_ids () const
 returns list of allowed segment 1 ids More...
 
void set_segment1_ids (std::string const &segment1_str)
 sets list of segment1 ids from string More...
 
void set_segment1_ids (SegmentNames const &segments)
 sets list of segment1 ids from list More...
 
SegmentNames const & segment2_ids () const
 returns list of allowed segment2 ids More...
 
void set_segment2_ids (std::string const &segment2_str)
 sets list of segment2 ids from string More...
 
void set_segment2_ids (SegmentNames const &segments)
 sets list of segment1 ids from list More...
 
core::Size user_chain1 () const
 gets user-specified chain number for the lower chain to be connected. 0 if not specified More...
 
void set_user_chain1 (core::Size const chain)
 sets user-specified chain number for the lower chain to be connected. 0 if unspecified More...
 
core::Size user_chain2 () const
 gets user-specified chain number for the upper chain to be connected. 0 if not specified More...
 
void set_user_chain2 (core::Size const chain)
 sets user-specified chain number for the upper chain to be connected. 0 if unspecified More...
 
void set_motifs (std::string const &motif_str, std::string const &cutpoints_str)
 sets motifs using a motif string and a string of cutpoints More...
 
void set_motifs (MotifCOPs const &motifs)
 sets motifs via a vector More...
 
void set_ideal_abego (bool const use_ideal_abego, std::string const &extend_ss)
 sets whether to use "ideal abego" loops according to Koga papers More...
 
void set_use_hh_abego_rules (bool const use_rules)
 sets whether or not to use the newer HH rules (https://doi.org/10.1101/2021.03.10.434454) More...
 
void set_bridge (bool const bridge)
 sets whether to always try to bridge. If true, a random cutpoint will be selected in the connection if the chains to be connected have different movable groups More...
 
- Public Member Functions inherited from protocols::denovo_design::architects::StructureArchitect
 StructureArchitect (std::string const &id)
 
 ~StructureArchitect () override
 
void parse_my_tag (utility::tag::TagCOP tag, basic::datacache::DataMap &data)
 
std::string const & id () const
 
void set_id (std::string const &new_id)
 

Static Public Member Functions

static std::string class_name ()
 
static void attributes_for_parse_my_tag (utility::tag::AttributeList &attlist)
 
- Static Public Member Functions inherited from protocols::denovo_design::architects::StructureArchitect
static void attributes_for_parse_my_tag (utility::tag::AttributeList &attlist)
 

Static Public Attributes

static std::string const DATA_MAP_NAME = "ConnectionArchitects"
 

Protected Member Functions

void parse_tag (utility::tag::TagCOP tag, basic::datacache::DataMap &data) override
 companion function: attributes_for_parse_my_tag More...
 

Private Member Functions

MotifOPs compute_connection_candidates (components::StructureData const &sd, AreConnectablePredicate const &connectable) const
 Get list of segment pairs allowed to be connected. More...
 
SegmentPairs segment_pairs (components::StructureData const &sd) const
 
SegmentPairs combine_segment_names (SegmentNames const &seg1s, SegmentNames const &seg2s) const
 
MotifOP choose_motif (MotifOPs const &motifs, core::Real &random) const
 
void connect (components::StructureData &sd, Motif &motif) const
 creates StructureData from given Motif More...
 
LengthSet lengths () const
 
LengthSet cutpoints () const
 returns a set of valid loop index cutpoints More...
 
MotifOPs motifs_for_pair (SegmentPair const &pair, components::StructureData const &sd, LengthSet const &length_set, LengthSet const &cutpoint_set) const
 
MotifCOPs parse_motif_string (std::string const &motifs) const
 
SegmentNames available_upper_termini (components::StructureData const &sd) const
 
SegmentNames available_lower_termini (components::StructureData const &sd) const
 finds usable/available upper termini (i.e. those for comp1) More...
 

Private Attributes

bool bridge_
 
components::IdealAbegoGeneratorOP ideal_abego_
 
MotifCOPs motifs_
 
SegmentNames segment1_ids_
 
SegmentNames segment2_ids_
 
core::Size chain1_
 
core::Size chain2_
 

Detailed Description

Architect for covalently joining two segments of a pose.

Member Typedef Documentation

typedef std::pair< std::string, std::string > protocols::denovo_design::connection::ConnectionArchitect::SegmentPair

Constructor & Destructor Documentation

protocols::denovo_design::connection::ConnectionArchitect::ConnectionArchitect ( std::string const &  id_value)
protocols::denovo_design::connection::ConnectionArchitect::~ConnectionArchitect ( )
overridedefault

Member Function Documentation

void protocols::denovo_design::connection::ConnectionArchitect::apply ( components::StructureData sd) const

does the work of modifying the StructureData

References protocols::rigid::random, and core::scoring::rg.

void protocols::denovo_design::connection::ConnectionArchitect::apply ( components::StructureData sd,
core::Real random 
) const
void protocols::denovo_design::connection::ConnectionArchitect::attributes_for_parse_my_tag ( utility::tag::AttributeList &  attlist)
static
SegmentNames protocols::denovo_design::connection::ConnectionArchitect::available_lower_termini ( components::StructureData const &  sd) const
private
SegmentNames protocols::denovo_design::connection::ConnectionArchitect::available_upper_termini ( components::StructureData const &  sd) const
private
MotifOP protocols::denovo_design::connection::ConnectionArchitect::choose_motif ( MotifOPs const &  motifs,
core::Real random 
) const
private
static std::string protocols::denovo_design::connection::ConnectionArchitect::class_name ( )
inlinestatic

Referenced by type().

ConnectionArchitectOP protocols::denovo_design::connection::ConnectionArchitect::clone ( ) const
virtual
ConnectionArchitect::SegmentPairs protocols::denovo_design::connection::ConnectionArchitect::combine_segment_names ( SegmentNames const &  seg1s,
SegmentNames const &  seg2s 
) const
private

Referenced by segment_pairs().

MotifOPs protocols::denovo_design::connection::ConnectionArchitect::compute_connection_candidates ( components::StructureData const &  sd) const

computes a list of possible motifs

Referenced by apply().

MotifOPs protocols::denovo_design::connection::ConnectionArchitect::compute_connection_candidates ( components::StructureData const &  sd,
AreConnectablePredicate const &  connectable 
) const
private

Get list of segment pairs allowed to be connected.

References cutpoints(), lengths(), motifs_for_pair(), segment_pairs(), and protocols::TR().

void protocols::denovo_design::connection::ConnectionArchitect::connect ( components::StructureData sd,
Motif motif 
) const
private
ConnectionArchitect::LengthSet protocols::denovo_design::connection::ConnectionArchitect::cutpoints ( ) const
private

returns a set of valid loop index cutpoints

References motifs_.

Referenced by compute_connection_candidates(), and set_motifs().

ConnectionArchitect::LengthSet protocols::denovo_design::connection::ConnectionArchitect::lengths ( ) const
private

References motifs_.

Referenced by compute_connection_candidates().

MotifOPs protocols::denovo_design::connection::ConnectionArchitect::motifs_for_pair ( SegmentPair const &  pair,
components::StructureData const &  sd,
LengthSet const &  length_set,
LengthSet const &  cutpoint_set 
) const
private
MotifCOPs protocols::denovo_design::connection::ConnectionArchitect::parse_motif_string ( std::string const &  motifs) const
private

Referenced by set_motifs().

void protocols::denovo_design::connection::ConnectionArchitect::parse_tag ( utility::tag::TagCOP  tag,
basic::datacache::DataMap &  data 
)
overrideprotectedvirtual
SegmentNames const & protocols::denovo_design::connection::ConnectionArchitect::segment1_ids ( ) const

returns list of allowed segment 1 ids

References segment1_ids_.

SegmentNames const & protocols::denovo_design::connection::ConnectionArchitect::segment2_ids ( ) const

returns list of allowed segment2 ids

References segment2_ids_.

ConnectionArchitect::SegmentPairs protocols::denovo_design::connection::ConnectionArchitect::segment_pairs ( components::StructureData const &  sd) const
private
void protocols::denovo_design::connection::ConnectionArchitect::set_bridge ( bool const  bridge)

sets whether to always try to bridge. If true, a random cutpoint will be selected in the connection if the chains to be connected have different movable groups

References bridge_.

Referenced by set_motifs().

void protocols::denovo_design::connection::ConnectionArchitect::set_ideal_abego ( bool const  use_ideal_abego,
std::string const &  extend_ss 
)

sets whether to use "ideal abego" loops according to Koga papers

References ideal_abego_.

Referenced by parse_tag().

void protocols::denovo_design::connection::ConnectionArchitect::set_motifs ( std::string const &  motif_str,
std::string const &  cutpoints_str 
)

sets motifs using a motif string and a string of cutpoints

References bridge_, cutpoints(), motifs_, parse_motif_string(), set_bridge(), and protocols::TR().

Referenced by parse_tag().

void protocols::denovo_design::connection::ConnectionArchitect::set_motifs ( MotifCOPs const &  motifs)

sets motifs via a vector

References motifs_.

void protocols::denovo_design::connection::ConnectionArchitect::set_segment1_ids ( std::string const &  segment1_str)
void protocols::denovo_design::connection::ConnectionArchitect::set_segment1_ids ( SegmentNames const &  segments)

sets list of segment1 ids from list

References segment1_ids_.

void protocols::denovo_design::connection::ConnectionArchitect::set_segment2_ids ( std::string const &  segment2_str)
void protocols::denovo_design::connection::ConnectionArchitect::set_segment2_ids ( SegmentNames const &  segments)

sets list of segment1 ids from list

References segment2_ids_.

void protocols::denovo_design::connection::ConnectionArchitect::set_use_hh_abego_rules ( bool const  use_rules)

sets whether or not to use the newer HH rules (https://doi.org/10.1101/2021.03.10.434454)

References ideal_abego_.

Referenced by parse_tag().

void protocols::denovo_design::connection::ConnectionArchitect::set_user_chain1 ( core::Size const  chain)

sets user-specified chain number for the lower chain to be connected. 0 if unspecified

References chain1_.

Referenced by parse_tag().

void protocols::denovo_design::connection::ConnectionArchitect::set_user_chain2 ( core::Size const  chain)

sets user-specified chain number for the upper chain to be connected. 0 if unspecified

References chain2_.

Referenced by parse_tag().

std::string protocols::denovo_design::connection::ConnectionArchitect::type ( ) const
overridevirtual

simply returns the name of this type of architect

Implements protocols::denovo_design::architects::StructureArchitect.

References class_name().

core::Size protocols::denovo_design::connection::ConnectionArchitect::user_chain1 ( ) const

gets user-specified chain number for the lower chain to be connected. 0 if not specified

References chain1_.

Referenced by parse_tag().

core::Size protocols::denovo_design::connection::ConnectionArchitect::user_chain2 ( ) const

gets user-specified chain number for the upper chain to be connected. 0 if not specified

References chain2_.

Referenced by parse_tag().

Member Data Documentation

bool protocols::denovo_design::connection::ConnectionArchitect::bridge_
private

Referenced by set_bridge(), and set_motifs().

core::Size protocols::denovo_design::connection::ConnectionArchitect::chain1_
private
core::Size protocols::denovo_design::connection::ConnectionArchitect::chain2_
private
std::string const protocols::denovo_design::connection::ConnectionArchitect::DATA_MAP_NAME = "ConnectionArchitects"
static
components::IdealAbegoGeneratorOP protocols::denovo_design::connection::ConnectionArchitect::ideal_abego_
private
MotifCOPs protocols::denovo_design::connection::ConnectionArchitect::motifs_
private
SegmentNames protocols::denovo_design::connection::ConnectionArchitect::segment1_ids_
private
SegmentNames protocols::denovo_design::connection::ConnectionArchitect::segment2_ids_
private

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