![]() |
Rosetta Protocols
2014.16.56682
|
represents a single pool used by quota selector More...
#include <ABEGO_SS_Pool.hh>
Public Member Functions | |
| ABEGO_SS_Pool (Size, std::string, utility::vector1< std::pair< Size, Size > >, utility::vector1< Size >, utility::vector1< Real >, Real, Size, Size) | |
| Creates a pool of a given size and name. More... | |
| bool | accepts (char ss_type, char abego_type) |
| virtual | ~ABEGO_SS_Pool () |
| virtual Size | total_size () const |
| Says how many fragments (in total) may fit into this pool. More... | |
| virtual Size | current_size () const |
| Says how many fragments are currently in this pool. More... | |
| virtual Size | size_left () const |
| Says how many fragments can still be inserted into this pool. More... | |
| virtual bool | could_be_accepted (ScoredCandidate candidate) const |
| void | resize (Size new_size) |
| virtual void | set_fraction (Real new_fraction) |
| Sets the fraction of this quota pool in the entire population of fragments. More... | |
| virtual void | push (ScoredCandidate candidate) |
| Push a fragment candidate into the container. More... | |
| virtual bool | add (ScoredCandidate) |
| Insert a fragment candidate to the container. More... | |
| void | clear () |
| removes all candidates from the container More... | |
| Size | count_candidates (Size) const |
| Check how many candidates have been already collected for a given position. More... | |
| Size | count_candidates () const |
| Check how many candidates have been already collected for all positions. More... | |
| Size | query_length () const |
| Check the size of query sequence that this object knows. More... | |
| void | insert (Size, CandidatesCollectorOP collector) |
| Inserts candidates from another Collector for a give position in the query Candidates may or may not get inserted depending on the candidate. More... | |
| ScoredCandidatesVector1 & | get_candidates (Size) |
| Returns all the candidate in this pool. More... | |
| void | print_report (std::ostream &, scores::FragmentScoreManagerOP) const |
| Describes what has been collected. More... | |
| virtual Real | quota_score (ScoredCandidate candidate) const |
| provides the score for a candidate that was used to sort a quota pool More... | |
Public Member Functions inherited from protocols::frag_picker::quota::QuotaPool | |
| QuotaPool (std::string pool_name, Real quota_fraction) | |
| Creates a pool of a given size and name. More... | |
| virtual | ~QuotaPool () |
| std::string const & | get_pool_name () const |
| returns the name assigned to this quota pool More... | |
| virtual void | show_availability (std::ostream &where) const |
| prints information on which fragments can be accepted by this pool and how many of them More... | |
| Real | get_fraction () const |
| returns the fraction of this quota pool in the entire population of fragments More... | |
Static Private Attributes | |
| static char | all_abego_ [] |
| static char | all_ss_ [] |
represents a single pool used by quota selector
| protocols::frag_picker::quota::ABEGO_SS_Pool::ABEGO_SS_Pool | ( | Size | total_size, |
| std::string | pool_name, | ||
| utility::vector1< std::pair< Size, Size > > | ss_abego_types, | ||
| utility::vector1< Size > | which_components, | ||
| utility::vector1< Real > | weights, | ||
| Real | fraction, | ||
| Size | n_scores, | ||
| Size | buffer_factor = 5 |
||
| ) |
Creates a pool of a given size and name.
| size | - total number of fragments from all the pools at a given position |
| name | - name assigned to this pool. This in general may be any string that later allows one control pool's behavior from a flag file |
| abego_ss_pairs | - what types of secondary structure and ABEGO this pool is accepting |
| score_components_id | - which scores will be used to sort this pool |
| weights | - weights for the scores that in general may be different than these used for fragment picking |
| fraction | - fraction of this pool in the entire population |
| total_size | - how many fragments will be selected (in total in all pools) |
| name | - name assigned to this pool. This in general may be any string that later allows one control pool's behavior from a flag file |
| ss_type | - what is the type of secondary structur this pool is accepting |
| fraction | - fraction of the total number of fragments that goes into this pool |
References buffer_factor_, components_, ss_abego_types_, storage_, this_size_, total_size(), total_size_, protocols::frag_picker::quota::trABEGO_SS_Pool, and weights_.
|
virtual |
|
inline |
References ss_abego_types_.
|
virtual |
Insert a fragment candidate to the container.
Implements protocols::frag_picker::CandidatesCollector.
References could_be_accepted(), and storage_.
|
inlinevirtual |
removes all candidates from the container
Implements protocols::frag_picker::quota::QuotaPool.
References storage_.
|
virtual |
Implements protocols::frag_picker::quota::QuotaPool.
References ss_abego_types_, and protocols::frag_picker::quota::torsion2big_bin_id().
Referenced by add().
Check how many candidates have been already collected for a given position.
Implements protocols::frag_picker::CandidatesCollector.
References current_size().
|
inlinevirtual |
Check how many candidates have been already collected for all positions.
Implements protocols::frag_picker::quota::QuotaPool.
References current_size().
|
inlinevirtual |
Says how many fragments are currently in this pool.
Implements protocols::frag_picker::quota::QuotaPool.
References storage_.
Referenced by count_candidates(), print_report(), and size_left().
|
inlinevirtual |
Returns all the candidate in this pool.
Implements protocols::frag_picker::CandidatesCollector.
References storage_.
|
inlinevirtual |
Inserts candidates from another Collector for a give position in the query Candidates may or may not get inserted depending on the candidate.
Implements protocols::frag_picker::CandidatesCollector.
References c, l, storage_, and utility_exit_with_message.
|
virtual |
Describes what has been collected.
Implements protocols::frag_picker::CandidatesCollector.
References current_size(), and protocols::frag_picker::quota::QuotaPool::get_pool_name().
|
inlinevirtual |
Push a fragment candidate into the container.
Implements protocols::frag_picker::quota::QuotaPool.
References storage_.
|
inlinevirtual |
Check the size of query sequence that this object knows.
Implements protocols::frag_picker::CandidatesCollector.
|
inlinevirtual |
provides the score for a candidate that was used to sort a quota pool
Reimplemented from protocols::frag_picker::quota::QuotaPool.
References components_, and weights_.
|
inline |
References buffer_factor_, and storage_.
|
inlinevirtual |
Sets the fraction of this quota pool in the entire population of fragments.
Reimplemented from protocols::frag_picker::quota::QuotaPool.
References buffer_factor_, protocols::frag_picker::quota::QuotaPool::set_fraction(), storage_, this_size_, and total_size_.
|
inlinevirtual |
Says how many fragments can still be inserted into this pool.
Implements protocols::frag_picker::quota::QuotaPool.
References current_size(), and total_size().
|
inlinevirtual |
Says how many fragments (in total) may fit into this pool.
Implements protocols::frag_picker::quota::QuotaPool.
References storage_.
Referenced by ABEGO_SS_Pool(), and size_left().
|
staticprivate |
|
staticprivate |
|
private |
Referenced by ABEGO_SS_Pool(), resize(), and set_fraction().
|
private |
Referenced by ABEGO_SS_Pool(), and quota_score().
|
private |
Referenced by ABEGO_SS_Pool(), accepts(), and could_be_accepted().
|
private |
Referenced by ABEGO_SS_Pool(), add(), clear(), current_size(), get_candidates(), insert(), push(), resize(), set_fraction(), and total_size().
|
private |
Referenced by ABEGO_SS_Pool(), and set_fraction().
|
private |
Referenced by ABEGO_SS_Pool(), and set_fraction().
|
private |
Referenced by ABEGO_SS_Pool(), and quota_score().
1.8.7