Rosetta
|
The meat-and-potatoes for the helical_bundle_predict application, used to predict structures of helical bundles made from canonical or noncanonical building-blocks. More...
#include <HelicalBundlePredictApplication.hh>
Public Member Functions | |
HelicalBundlePredictApplication ()=delete | |
Delete the default constructor, and require an options constructor. More... | |
HelicalBundlePredictApplication (HelicalBundlePredictApplicationOptionsCOP options_in) | |
Options constructor. More... | |
HelicalBundlePredictApplication (HelicalBundlePredictApplicationOptionsCOP options_in, HBP_MoveGeneratorOP centroid_move_generator_in, core::scoring::ScoreFunctionOP centroid_sfxn_in, core::scoring::ScoreFunctionOP fullatom_sfxn_in) | |
Options + move generator constructor. More... | |
HelicalBundlePredictApplication (HelicalBundlePredictApplication const &src) | |
Copy constructor. More... | |
~HelicalBundlePredictApplication () override | |
Destructor. More... | |
HelicalBundlePredictApplicationOP | clone () const |
Clone operator: copy this object and return a smart pointer to the copy. More... | |
void | run () |
Actually run the application and produce output. More... | |
void | set_native (core::pose::PoseCOP native) |
Set the native pose. More... | |
core::Real | align_to_native_pose (core::pose::Pose &pose) const |
Given a pose, align it to the native pose. More... | |
HBP_MoveGeneratorOP | create_final_fullatom_refinement_move_generator () const |
Create the move generator used for the final fullatom refinement step. More... | |
void | set_nstruct (core::Size const nstruct_in) |
Set the number of repeats to try. More... | |
void | set_output_format (core::import_pose::FileType const type) |
Set the output format. (Automatically sets extension.) More... | |
void | set_silent_output () |
Indicate that we're using silent output. This overrides set_ouput_format(), and sets the extension automatically. More... | |
void | set_output_prefix_and_suffix (std::string const &prefix, std::string const &suffix) |
Set the prefix and suffix for output. More... | |
Static Public Member Functions | |
static HBP_MoveGeneratorOP | create_centroid_move_generator () |
Create a new move generator. Static, so this can be called from other classes (e.g. HelicalBundlePredictApplication_MPI.) More... | |
static core::scoring::ScoreFunctionOP | create_centroid_scorefunction () |
Create the scorefunction used during centroid mode. More... | |
static core::scoring::ScoreFunctionOP | create_fullatom_scorefunction () |
Create the scorefunction used during fullatom mode. More... | |
Private Member Functions | |
void | load_native_pose_from_disk () |
Read the native pose in from disk, based on the native_file_ set in the options_ object. More... | |
void | set_up_centroid_move_generator () |
Given the helix assignment file's contents, set up the HBP_HelixCoilMoveGenerator used in centroid mode.. More... | |
core::pose::PoseOP | make_pose_from_fasta_contents () const |
Construct a pose from the contents of a FASTA file. The conformation is set to linear at this point. More... | |
core::pose::PoseOP | make_pose_from_sequence_file_contents () const |
Construct a pose from the contents of a sequence file. The conformation is set to linear at this point. More... | |
void | do_a_simulated_annealing_round (core::pose::PoseOP &pose, core::Size num_steps, HBP_MoveGeneratorCOP move_generator, HBP_TemperatureScheduleGeneratorCOP temperature_generator, core::scoring::ScoreFunction const &sfxn) const |
Do a single simulated annealing round (a Monte Carlo trajectory with temperature ramping from high to low, once). More... | |
void | do_simulated_annealing (core::pose::PoseOP &pose, core::Size const num_rounds, core::Size const num_steps_per_round, HBP_MoveGeneratorOP move_generator, HBP_TemperatureScheduleGeneratorOP temperature_generator, core::scoring::ScoreFunction const &sfxn) const |
Entry point into the simulated annealing. More... | |
void | do_final_fullatom_refinement (core::pose::PoseOP &pose) const |
Carry out the final full-atom refinement steps. More... | |
bool | apply_metropolis_criterion (core::Real const &old_energy, core::Real const &new_energy, core::Real const &temperature) const |
Given the old energy, the new energy, and the temperature, apply the Metropolis criterion. More... | |
void | check_ignore_residues_reasonable (utility::vector1< core::Size > const &ignore_residues, core::pose::PoseCOP const &pose) const |
Check that the list of residues to ignore in calculating RMSD is reasonable. More... | |
Private Attributes | |
HelicalBundlePredictApplicationOptionsCOP | options_ |
Options for the application. More... | |
core::pose::PoseCOP | native_pose_ |
The native pose. Loaded from disk when run() is called unless provided separately. More... | |
core::pose::PoseOP | pose_ |
The pose that we're working on. More... | |
HBP_MoveGeneratorOP | centroid_move_generator_ |
Move generator for centroid-mode Monte Carlo. More... | |
HBP_TemperatureScheduleGeneratorOP | centroid_temperature_generator_ |
Temperature schedule generator for centroid-mode Monte Carlo. More... | |
core::scoring::ScoreFunctionOP | centroid_sfxn_ |
The scorefunction to use in centroid mode. More... | |
core::scoring::ScoreFunctionOP | fullatom_sfxn_ |
The scoring function to use for fullatom refinement steps. More... | |
HBP_MoveGeneratorOP | final_fullatom_refinement_move_generator_ |
Move generator for the full-atom refinement move at the end. More... | |
core::Size | nstruct_ |
Number of repeats to attempt. More... | |
std::string | outfile_prefix_ = "result_" |
The output prefix. More... | |
std::string | outfile_suffix_ = "" |
The output suffix. More... | |
std::string | outfile_extension_ = "pdb" |
The output extension. More... | |
core::import_pose::FileType | output_filetype_ = core::import_pose::PDB_file |
The output format. More... | |
bool | silent_output_ = false |
Are we doing silent output? More... | |
The meat-and-potatoes for the helical_bundle_predict application, used to predict structures of helical bundles made from canonical or noncanonical building-blocks.
|
delete |
Delete the default constructor, and require an options constructor.
protocols::helical_bundle_predict::HelicalBundlePredictApplication::HelicalBundlePredictApplication | ( | HelicalBundlePredictApplicationOptionsCOP | options_in | ) |
Options constructor.
Stores input options directly; doesn't clone.
References options_, and set_up_centroid_move_generator().
protocols::helical_bundle_predict::HelicalBundlePredictApplication::HelicalBundlePredictApplication | ( | HelicalBundlePredictApplicationOptionsCOP | options_in, |
HBP_MoveGeneratorOP | centroid_move_generator_in, | ||
core::scoring::ScoreFunctionOP | centroid_sfxn_in, | ||
core::scoring::ScoreFunctionOP | fullatom_sfxn_in | ||
) |
Options + move generator constructor.
Stores input options directly; doesn't clone.
References centroid_move_generator_, centroid_sfxn_, and fullatom_sfxn_.
protocols::helical_bundle_predict::HelicalBundlePredictApplication::HelicalBundlePredictApplication | ( | HelicalBundlePredictApplication const & | src | ) |
Copy constructor.
References centroid_move_generator_, centroid_sfxn_, and fullatom_sfxn_.
|
override |
Destructor.
core::Real protocols::helical_bundle_predict::HelicalBundlePredictApplication::align_to_native_pose | ( | core::pose::Pose & | pose | ) | const |
Given a pose, align it to the native pose.
Throws an error if there's a mismatch between the pose lengths or mainchain atom counts.
References core::chemical::ResidueType::atom_is_hydrogen(), core::id::AtomID::BOGUS_ATOM_ID(), core::pose::initialize_atomid_map(), core::chemical::ResidueTypeBase::is_polymer(), core::chemical::ResidueType::mainchain_atoms(), core::chemical::ResidueTypeBase::name3(), native_pose_, options_, core::pose::Pose::residue_type(), core::scoring::superimpose_pose(), core::id::to_string(), core::pose::Pose::total_residue(), and protocols::TR().
Referenced by run().
|
private |
Given the old energy, the new energy, and the temperature, apply the Metropolis criterion.
Referenced by do_a_simulated_annealing_round().
|
private |
Check that the list of residues to ignore in calculating RMSD is reasonable.
Throws if residues are outside the size of the posem or if residues are provided but there's no pose.
References core::id::to_string().
Referenced by run().
HelicalBundlePredictApplicationOP protocols::helical_bundle_predict::HelicalBundlePredictApplication::clone | ( | ) | const |
Clone operator: copy this object and return a smart pointer to the copy.
|
static |
Create a new move generator. Static, so this can be called from other classes (e.g. HelicalBundlePredictApplication_MPI.)
Triggers read from disk!
|
static |
Create the scorefunction used during centroid mode.
Reads from disk! Do not use repeatedly! Store the result rather than regenerating it!
References core::scoring::ScoreFunctionFactory::create_score_function().
HBP_MoveGeneratorOP protocols::helical_bundle_predict::HelicalBundlePredictApplication::create_final_fullatom_refinement_move_generator | ( | ) | const |
Create the move generator used for the final fullatom refinement step.
Not static, since it depends on the options_ object.
References fullatom_sfxn_, and options_.
|
static |
Create the scorefunction used during fullatom mode.
Reads from disk! Do not use repeatedly! Store the result rather than regenerating it!
References core::scoring::get_score_function().
|
private |
Do a single simulated annealing round (a Monte Carlo trajectory with temperature ramping from high to low, once).
References core::io::pdb::add_to_multimodel_pdb(), apply_metropolis_criterion(), protocols::moves::MS_SUCCESS, and protocols::TR().
Referenced by do_simulated_annealing().
|
private |
Carry out the final full-atom refinement steps.
This is a single step, not a Monte Carlo trajectory.
References final_fullatom_refinement_move_generator_.
Referenced by run().
|
private |
Entry point into the simulated annealing.
Does multiple rounds of simulated annealing.
References do_a_simulated_annealing_round().
Referenced by run().
|
private |
Read the native pose in from disk, based on the native_file_ set in the options_ object.
READS FROM DISK! This can be avoided by passing in a pointer to the native pose.
References native_pose_, options_, core::import_pose::pose_from_file(), and protocols::TR().
Referenced by run().
|
private |
Construct a pose from the contents of a FASTA file. The conformation is set to linear at this point.
References core::id::BB, core::chemical::CENTROID, core::pose::make_pose_from_sequence(), and options_.
Referenced by run().
|
private |
Construct a pose from the contents of a sequence file. The conformation is set to linear at this point.
References core::pose::add_lower_terminus_type_to_pose_residue(), protocols::cyclic_peptide::PeptideStubMover::add_residue(), core::pose::add_upper_terminus_type_to_pose_residue(), protocols::cyclic_peptide::PeptideStubMover::apply(), core::id::BB, core::chemical::CENTROID_t, options_, protocols::cyclic_peptide::PeptideStubMover::set_reset_mode(), and core::util::switch_to_residue_type_set().
Referenced by run().
void protocols::helical_bundle_predict::HelicalBundlePredictApplication::run | ( | ) |
Actually run the application and produce output.
References align_to_native_pose(), centroid_move_generator_, centroid_sfxn_, centroid_temperature_generator_, check_ignore_residues_reasonable(), do_final_fullatom_refinement(), do_simulated_annealing(), core::chemical::FULL_ATOM_t, load_native_pose_from_disk(), make_pose_from_fasta_contents(), make_pose_from_sequence_file_contents(), native_pose_, nstruct_, options_, outfile_extension_, outfile_prefix_, outfile_suffix_, pose_, silent_output_, core::util::switch_to_residue_type_set(), and protocols::TR().
void protocols::helical_bundle_predict::HelicalBundlePredictApplication::set_native | ( | core::pose::PoseCOP | native | ) |
Set the native pose.
Does not clone the input; sets owning pointer directly.
References native_pose_.
|
inline |
Set the number of repeats to try.
References nstruct_.
void protocols::helical_bundle_predict::HelicalBundlePredictApplication::set_output_format | ( | core::import_pose::FileType const | type | ) |
Set the output format. (Automatically sets extension.)
This one sets silent output to false.
References core::import_pose::end_of_filetype_list, core::import_pose::extension_from_filetype(), outfile_extension_, output_filetype_, silent_output_, and core::import_pose::SRLZ_file.
void protocols::helical_bundle_predict::HelicalBundlePredictApplication::set_output_prefix_and_suffix | ( | std::string const & | prefix, |
std::string const & | suffix | ||
) |
Set the prefix and suffix for output.
References outfile_prefix_, and outfile_suffix_.
void protocols::helical_bundle_predict::HelicalBundlePredictApplication::set_silent_output | ( | ) |
Indicate that we're using silent output. This overrides set_ouput_format(), and sets the extension automatically.
References outfile_extension_, and silent_output_.
|
private |
Given the helix assignment file's contents, set up the HBP_HelixCoilMoveGenerator used in centroid mode..
The helix_assignment_file_content_ variable must be populated first!
References centroid_move_generator_, and options_.
Referenced by HelicalBundlePredictApplication().
|
private |
Move generator for centroid-mode Monte Carlo.
Referenced by HelicalBundlePredictApplication(), run(), and set_up_centroid_move_generator().
|
private |
The scorefunction to use in centroid mode.
Referenced by HelicalBundlePredictApplication(), and run().
|
private |
Temperature schedule generator for centroid-mode Monte Carlo.
Referenced by run().
|
private |
Move generator for the full-atom refinement move at the end.
Referenced by do_final_fullatom_refinement().
|
private |
The scoring function to use for fullatom refinement steps.
Referenced by create_final_fullatom_refinement_move_generator(), and HelicalBundlePredictApplication().
|
private |
The native pose. Loaded from disk when run() is called unless provided separately.
Referenced by align_to_native_pose(), load_native_pose_from_disk(), run(), and set_native().
|
private |
Number of repeats to attempt.
Referenced by run(), and set_nstruct().
|
private |
Options for the application.
Referenced by align_to_native_pose(), create_final_fullatom_refinement_move_generator(), HelicalBundlePredictApplication(), load_native_pose_from_disk(), make_pose_from_fasta_contents(), make_pose_from_sequence_file_contents(), run(), and set_up_centroid_move_generator().
|
private |
The output extension.
Not used in MPI build.
Referenced by run(), set_output_format(), and set_silent_output().
|
private |
|
private |
|
private |
|
private |
The pose that we're working on.
Referenced by run().
|
private |
Are we doing silent output?
Not used in MPI build.
Referenced by run(), set_output_format(), and set_silent_output().