Rosetta
Public Member Functions | Private Member Functions | Private Attributes | List of all members
core::chemical::ResidueTypeFinder Class Reference

#include <ResidueTypeFinder.hh>

Inheritance diagram for core::chemical::ResidueTypeFinder:
Inheritance graph
[legend]

Public Member Functions

 ResidueTypeFinder (core::chemical::ResidueTypeSet const &residue_type_set)
 
 ~ResidueTypeFinder () override
 
void set_no_CCD_on_name3_match (bool setting)
 Don't consider CCD components if we already have a Rosetta type with the same three letter code, even if the two residue types have completely different chemical structure. Note we already have a mechanism (the exclude_pdb_component_list.txt file in the database) to exclude CCD components which chemically match the Rosetta type (and this exclusion is always on). More...
 
ResidueTypeCOP get_representative_type (bool const metapatches=true) const
 Find a residue which matches all the requirement criteria. Typically this will be the "simplest" type that does so, though that's not guaranteed. Will ignore preferences/discouragements. More...
 
ResidueTypeCOPs get_all_possible_residue_types (bool const allow_extra_variants=false) const
 Find all residues which match the requirement criteria Will apply preferences/discouragements. More...
 
ResidueTypeCOPs get_possible_base_residue_types (bool const include_unpatchable=true, bool const apply_all_filters=false) const
 Find all base residue types which match the relevant requirement criteria. More...
 
ResidueTypeCOPs get_possible_unpatchable_residue_types () const
 Find all unpatchable residue types which match the relevant requirement criteria. More...
 
ResidueTypeCOPs get_possible_base_unpatchable_residue_types () const
 Get the unpatchable residue types where the any ResidueType with a non-self "base residue type" (as annotated in the ResidueType itself) filtered out. More...
 
ResidueTypeCOP get_best_match_residue_type_for_atom_names (utility::vector1< std::string > const &atom_names)
 
ResidueTypeFinderaa (core::chemical::AA const &setting)
 
ResidueTypeFindername1 (char const &setting)
 
ResidueTypeFindername3 (std::string const &setting)
 
ResidueTypeFinderresidue_base_name (std::string const &setting)
 
ResidueTypeFinderdisable_metapatches ()
 Disable metapatches and do not consider them while patching. More...
 
bool no_metapatches () const
 Have metapatched ResidueTypes been disabled (true)? Or are they to be considered (false)? More...
 
ResidueTypeFinderbase_type (ResidueTypeCOP const &basetype)
 Allow a base type to be specified rigidly. Since any ResidueType's base type COP can now be accessed easily, this is a far more efficient way to prune the set of possible ResidueTypes. More...
 
ResidueTypeFinderinterchangeability_group (std::string const &setting)
 
ResidueTypeFinderbase_property (ResidueProperty const setting)
 
ResidueTypeFinderatom_names_soft (utility::vector1< std::string > const &setting)
 
ResidueTypeFindervariants_in_sets (utility::vector1< utility::vector1< VariantType > > const &setting)
 
ResidueTypeFindervariants (utility::vector1< VariantType > const &setting, bool const clear_existing=true)
 Add a set of VariantTypes, all of which matching ResidueTypes MUST have. More...
 
ResidueTypeFindervariants (utility::vector1< std::string > const &setting)
 set function for variants More...
 
ResidueTypeFindervariants (utility::vector1< VariantType > const &std_variants, utility::vector1< std::string > const &custom_variants, bool const clear_existing=true)
 Specify a list of standard variant types (by enum) and custom variant types (by string). More...
 
ResidueTypeFinderdisallow_variants (utility::vector1< VariantType > const &setting, bool const clear_existing=true)
 Provide a list of VariantTypes that a matched ResidueType must NOT have. More...
 
ResidueTypeFindervariant_exceptions (utility::vector1< std::string > const &setting, bool const clear_existing=true)
 Variant exceptions are variants which are excluded from consideration during the allow_extra_variants = false filtering. More...
 
ResidueTypeFindervariant_exceptions (utility::vector1< VariantType > const &setting, bool const clear_existing=true)
 Provide a list of VariantTypes that will be ignored when matching. More...
 
ResidueTypeFinderproperties (utility::vector1< ResidueProperty > const &setting)
 
ResidueTypeFinderdisallow_properties (utility::vector1< ResidueProperty > const &setting)
 
ResidueTypeFinderpreferred_properties (utility::vector1< ResidueProperty > const &setting)
 
ResidueTypeFinderdiscouraged_properties (utility::vector1< ResidueProperty > const &setting)
 
ResidueTypeFinderpatch_names (utility::vector1< std::string > const &setting)
 
ResidueTypeFinderconnect_atoms (utility::vector1< std::string > const &setting)
 Attempt to find ResidueTypes with connection points on the given atoms. More...
 
ResidueTypeFinderignore_atom_named_H (bool const setting)
 
ResidueTypeFindercheck_nucleic_acid_virtual_phosphates (bool const setting)
 

Private Member Functions

void apply_basic_filters (ResidueTypeCOPs &rsd_types) const
 
void apply_filters_after_patches (ResidueTypeCOPs &rsd_types, bool const allow_extra_variants=false) const
 
ResidueTypeCOPs apply_preferences_and_discouragements (ResidueTypeCOPs const &rsd_types) const
 
ResidueTypeCOPs prioritize_rosetta_types_over_pdb_components (ResidueTypeCOPs const &rsd_types) const
 
void initialize_relevant_pdb_components () const
 
utility::vector1< ResidueTypeCOPget_patched_types (utility::vector1< ResidueTypeCOP > const &rsd_types, bool const get_first_totally_ok_residue_type=false) const
 Attempt to apply patches to the residue types in rsd_types, returning the new types. (Existing residue types in rsd_types are not returned) get_first_totally_ok_residue_type is true, only the first residue type in the vector will be returned. This function will take care of multiply-patching the results. More...
 
utility::vector1< ResidueTypeCOPget_singly_metapatched_types (utility::vector1< ResidueTypeCOP > const &rsd_types, bool const get_first_totally_ok_residue_type=false) const
 Attempt to apply metapatches to the residue types in rsd_types, returning the new types. (Existing residue types in rsd_types are not returned) get_first_totally_ok_residue_type is true, only the first residue type in the vector will be returned. This function only gets types with a single metapatch applied. If the caller wants multiply-patched types, it's responsible for re-calling this function itself. More...
 
void filter_by_name1 (ResidueTypeCOPs &rsd_types) const
 
void filter_by_name3 (ResidueTypeCOPs &rsd_types, bool const keep_if_base_type_generates_aa) const
 
void filter_by_aa (ResidueTypeCOPs &rsd_types) const
 
void filter_by_residue_type_base_name (ResidueTypeCOPs &rsd_types) const
 
void filter_by_interchangeability_group (ResidueTypeCOPs &rsd_types, bool const keep_if_base_type_generates_interchangeability_group) const
 
void filter_by_base_property (ResidueTypeCOPs &base_rsd_types) const
 
void filter_for_all_variant_sets (ResidueTypeCOPs &rsd_types) const
 
void filter_variant_sets_have_all_candidate_variants (ResidueTypeCOPs &rsd_types) const
 
void filter_all_variants_matched (ResidueTypeCOPs &rsd_types, bool const allow_extra_variants=false) const
 
void filter_disallow_variants (ResidueTypeCOPs &rsd_types) const
 
void filter_all_patch_names (ResidueTypeCOPs &rsd_types) const
 
void filter_all_properties (ResidueTypeCOPs &rsd_types) const
 
void filter_disallow_properties (ResidueTypeCOPs &rsd_types) const
 
void filter_connections (ResidueTypeCOPs &rsd_types) const
 
void filter_special_cases (ResidueTypeCOPs &rsd_types) const
 
bool has_disallowed_variant (PatchCOP patch) const
 
bool adds_any_variant (PatchCOP patch) const
 
bool fixes_name3 (PatchCOP patch, ResidueTypeCOP rsd_type) const
 
bool fixes_interchangeability_group (PatchCOP patch, ResidueTypeCOP rsd_type) const
 
bool fixes_connects (PatchCOP patch, ResidueTypeCOP rsd_type) const
 
bool adds_any_property (PatchCOP patch, ResidueTypeCOP rsd_type) const
 Returns true if this patch adds any of the properties that the ResidueTypeFinder is seeking. More...
 
bool deletes_any_property (PatchCOP patch, ResidueTypeCOP rsd_type) const
 Returns true if this patch deletes any of the properties that the ResidueTypeFinder is seeking. More...
 
bool deletes_any_variant (PatchCOP patch, ResidueTypeCOP rsd_type) const
 
bool changes_to_wrong_aa (PatchCOP patch, ResidueTypeCOP rsd_type) const
 
bool matches_any_patch_name (PatchCOP patch) const
 
bool matches_any_atom_name (PatchCOP patch, ResidueTypeCOP rsd_type) const
 
ResidueTypeFindervariants (utility::vector1< VariantType > const &setting) const
 

Private Attributes

core::chemical::ResidueTypeSet const & residue_type_set_
 
core::chemical::AA aa_ = aa_none
 
char name1_ = '?'
 
std::string name3_ = ""
 
std::string residue_type_base_name_ = ""
 
ResidueTypeCOP base_type_ = nullptr
 
std::string interchangeability_group_ = ""
 
utility::vector1< std::string > atom_names_soft_
 
utility::vector1< utility::vector1< VariantType > > variants_in_sets_
 
utility::vector1< std::string > custom_variants_
 
utility::vector1< VariantTypedisallow_variants_
 
utility::vector1< VariantTypevariant_exceptions_
 
utility::vector1< ResiduePropertyproperties_
 
utility::vector1< ResiduePropertydisallow_properties_
 
utility::vector1< ResiduePropertypreferred_properties_
 
utility::vector1< ResiduePropertydiscouraged_properties_
 
utility::vector1< std::string > patch_names_
 
utility::vector1< std::string > connect_atoms_
 
ResidueProperty base_property_ = NO_PROPERTY
 
bool ignore_atom_named_H_ = false
 
bool disallow_carboxyl_conjugation_at_glu_asp_
 
bool check_nucleic_acid_virtual_phosphates_ = false
 
bool no_metapatches_ = false
 Disable consideration of metapatched variants (relevant for speed). More...
 
bool no_CCD_on_name3_match_ = false
 Don't consider CCD components if we already have a Rosetta type with the same three letter code. More...
 

Constructor & Destructor Documentation

◆ ResidueTypeFinder()

core::chemical::ResidueTypeFinder::ResidueTypeFinder ( core::chemical::ResidueTypeSet const &  residue_type_set)

◆ ~ResidueTypeFinder()

core::chemical::ResidueTypeFinder::~ResidueTypeFinder ( )
overridedefault

Member Function Documentation

◆ aa()

ResidueTypeFinder& core::chemical::ResidueTypeFinder::aa ( core::chemical::AA const &  setting)
inline

◆ adds_any_property()

bool core::chemical::ResidueTypeFinder::adds_any_property ( PatchCOP  patch,
ResidueTypeCOP  rsd_type 
) const
private

Returns true if this patch adds any of the properties that the ResidueTypeFinder is seeking.

ONLY works for canonical properties (not on-the-fly properties) at present. Modified on 24 Aug 2016 by VKM to remove string parsing.

References preferred_properties_, and properties_.

Referenced by get_patched_types(), and get_singly_metapatched_types().

◆ adds_any_variant()

bool core::chemical::ResidueTypeFinder::adds_any_variant ( PatchCOP  patch) const
private

◆ apply_basic_filters()

void core::chemical::ResidueTypeFinder::apply_basic_filters ( ResidueTypeCOPs rsd_types) const
private

◆ apply_filters_after_patches()

void core::chemical::ResidueTypeFinder::apply_filters_after_patches ( ResidueTypeCOPs rsd_types,
bool const  allow_extra_variants = false 
) const
private

◆ apply_preferences_and_discouragements()

ResidueTypeCOPs core::chemical::ResidueTypeFinder::apply_preferences_and_discouragements ( ResidueTypeCOPs const &  rsd_types) const
private

◆ atom_names_soft()

ResidueTypeFinder& core::chemical::ResidueTypeFinder::atom_names_soft ( utility::vector1< std::string > const &  setting)
inline

References atom_names_soft_.

◆ base_property()

ResidueTypeFinder& core::chemical::ResidueTypeFinder::base_property ( ResidueProperty const  setting)
inline

◆ base_type()

ResidueTypeFinder& core::chemical::ResidueTypeFinder::base_type ( ResidueTypeCOP const &  basetype)
inline

◆ changes_to_wrong_aa()

bool core::chemical::ResidueTypeFinder::changes_to_wrong_aa ( PatchCOP  patch,
ResidueTypeCOP  rsd_type 
) const
private

◆ check_nucleic_acid_virtual_phosphates()

ResidueTypeFinder& core::chemical::ResidueTypeFinder::check_nucleic_acid_virtual_phosphates ( bool const  setting)
inline

◆ connect_atoms()

ResidueTypeFinder& core::chemical::ResidueTypeFinder::connect_atoms ( utility::vector1< std::string > const &  setting)
inline

◆ deletes_any_property()

bool core::chemical::ResidueTypeFinder::deletes_any_property ( PatchCOP  patch,
ResidueTypeCOP  rsd_type 
) const
private

Returns true if this patch deletes any of the properties that the ResidueTypeFinder is seeking.

ONLY works for canonical properties (not on-the-fly properties) at present. Modified on 25 Aug 2016 by VKM to remove string parsing.

References properties_.

Referenced by get_patched_types(), and get_singly_metapatched_types().

◆ deletes_any_variant()

bool core::chemical::ResidueTypeFinder::deletes_any_variant ( PatchCOP  patch,
ResidueTypeCOP  rsd_type 
) const
private

◆ disable_metapatches()

ResidueTypeFinder& core::chemical::ResidueTypeFinder::disable_metapatches ( )
inline

Disable metapatches and do not consider them while patching.

By default, metapatched ResidueTypes will be considered. This disables that.

Author
Vikram K. Mulligan (vmull.nosp@m.ig@u.nosp@m.w.edu).

References no_metapatches_.

Referenced by core::chemical::ResidueTypeSet::get_all_types_with_variants_by_basetype().

◆ disallow_properties()

ResidueTypeFinder& core::chemical::ResidueTypeFinder::disallow_properties ( utility::vector1< ResidueProperty > const &  setting)
inline

References disallow_properties_.

◆ disallow_variants()

ResidueTypeFinder & core::chemical::ResidueTypeFinder::disallow_variants ( utility::vector1< VariantType > const &  setting,
bool const  clear_existing = true 
)

Provide a list of VariantTypes that a matched ResidueType must NOT have.

By default, this overwrites the existing list. To append to the existing list, set clear_existing to false.

Referenced by core::pack::palette::PackerPalette::get_residue_type_cop_with_variant_removed(), and core::io::pose_from_sfr::PoseFromSFRBuilder::get_rsd_type().

◆ discouraged_properties()

ResidueTypeFinder& core::chemical::ResidueTypeFinder::discouraged_properties ( utility::vector1< ResidueProperty > const &  setting)
inline

◆ filter_all_patch_names()

void core::chemical::ResidueTypeFinder::filter_all_patch_names ( ResidueTypeCOPs rsd_types) const
private

◆ filter_all_properties()

void core::chemical::ResidueTypeFinder::filter_all_properties ( ResidueTypeCOPs rsd_types) const
private

◆ filter_all_variants_matched()

void core::chemical::ResidueTypeFinder::filter_all_variants_matched ( ResidueTypeCOPs rsd_types,
bool const  allow_extra_variants = false 
) const
private

◆ filter_by_aa()

void core::chemical::ResidueTypeFinder::filter_by_aa ( ResidueTypeCOPs rsd_types) const
private

◆ filter_by_base_property()

void core::chemical::ResidueTypeFinder::filter_by_base_property ( ResidueTypeCOPs base_rsd_types) const
private

◆ filter_by_interchangeability_group()

void core::chemical::ResidueTypeFinder::filter_by_interchangeability_group ( ResidueTypeCOPs rsd_types,
bool const  keep_if_base_type_generates_interchangeability_group 
) const
private

◆ filter_by_name1()

void core::chemical::ResidueTypeFinder::filter_by_name1 ( ResidueTypeCOPs rsd_types) const
private

References name1_, and core::chemical::TR().

Referenced by apply_basic_filters().

◆ filter_by_name3()

void core::chemical::ResidueTypeFinder::filter_by_name3 ( ResidueTypeCOPs rsd_types,
bool const  keep_if_base_type_generates_aa 
) const
private

◆ filter_by_residue_type_base_name()

void core::chemical::ResidueTypeFinder::filter_by_residue_type_base_name ( ResidueTypeCOPs rsd_types) const
private

◆ filter_connections()

void core::chemical::ResidueTypeFinder::filter_connections ( ResidueTypeCOPs rsd_types) const
private

◆ filter_disallow_properties()

void core::chemical::ResidueTypeFinder::filter_disallow_properties ( ResidueTypeCOPs rsd_types) const
private

◆ filter_disallow_variants()

void core::chemical::ResidueTypeFinder::filter_disallow_variants ( ResidueTypeCOPs rsd_types) const
private

◆ filter_for_all_variant_sets()

void core::chemical::ResidueTypeFinder::filter_for_all_variant_sets ( ResidueTypeCOPs rsd_types) const
private

References custom_variants_.

Referenced by filter_all_variants_matched().

◆ filter_special_cases()

void core::chemical::ResidueTypeFinder::filter_special_cases ( ResidueTypeCOPs rsd_types) const
private

◆ filter_variant_sets_have_all_candidate_variants()

void core::chemical::ResidueTypeFinder::filter_variant_sets_have_all_candidate_variants ( ResidueTypeCOPs rsd_types) const
private

◆ fixes_connects()

bool core::chemical::ResidueTypeFinder::fixes_connects ( PatchCOP  patch,
ResidueTypeCOP  rsd_type 
) const
private

Does the patch any desired property or any soft desired property

References connect_atoms_.

Referenced by get_patched_types().

◆ fixes_interchangeability_group()

bool core::chemical::ResidueTypeFinder::fixes_interchangeability_group ( PatchCOP  patch,
ResidueTypeCOP  rsd_type 
) const
private

◆ fixes_name3()

bool core::chemical::ResidueTypeFinder::fixes_name3 ( PatchCOP  patch,
ResidueTypeCOP  rsd_type 
) const
private

◆ get_all_possible_residue_types()

ResidueTypeCOPs core::chemical::ResidueTypeFinder::get_all_possible_residue_types ( bool const  allow_extra_variants = false) const

◆ get_best_match_residue_type_for_atom_names()

ResidueTypeCOP core::chemical::ResidueTypeFinder::get_best_match_residue_type_for_atom_names ( utility::vector1< std::string > const &  atom_names)

◆ get_patched_types()

utility::vector1< ResidueTypeCOP > core::chemical::ResidueTypeFinder::get_patched_types ( utility::vector1< ResidueTypeCOP > const &  rsd_types,
bool const  get_first_totally_ok_residue_type = false 
) const
private

Attempt to apply patches to the residue types in rsd_types, returning the new types. (Existing residue types in rsd_types are not returned) get_first_totally_ok_residue_type is true, only the first residue type in the vector will be returned. This function will take care of multiply-patching the results.

This does not call the filters on the returned types – that's for the caller to handle.

References adds_any_property(), adds_any_variant(), apply_filters_after_patches(), changes_to_wrong_aa(), deletes_any_property(), deletes_any_variant(), fixes_connects(), fixes_interchangeability_group(), fixes_name3(), has_disallowed_variant(), matches_any_atom_name(), matches_any_patch_name(), core::chemical::ResidueTypeSet::name_mapOP(), core::chemical::ResidueTypeSet::patches(), residue_type_set_, and core::chemical::TR().

Referenced by get_all_possible_residue_types(), and get_representative_type().

◆ get_possible_base_residue_types()

ResidueTypeCOPs core::chemical::ResidueTypeFinder::get_possible_base_residue_types ( bool const  include_unpatchable = true,
bool const  apply_all_filters = false 
) const

◆ get_possible_base_unpatchable_residue_types()

ResidueTypeCOPs core::chemical::ResidueTypeFinder::get_possible_base_unpatchable_residue_types ( ) const

Get the unpatchable residue types where the any ResidueType with a non-self "base residue type" (as annotated in the ResidueType itself) filtered out.

References core::chemical::residue_type_base_name(), residue_type_set_, and core::chemical::ResidueTypeSet::unpatchable_residue_types().

Referenced by get_possible_base_residue_types().

◆ get_possible_unpatchable_residue_types()

ResidueTypeCOPs core::chemical::ResidueTypeFinder::get_possible_unpatchable_residue_types ( ) const

Find all unpatchable residue types which match the relevant requirement criteria.

References apply_basic_filters(), residue_type_set_, and core::chemical::ResidueTypeSet::unpatchable_residue_types().

Referenced by get_all_possible_residue_types(), and get_representative_type().

◆ get_representative_type()

ResidueTypeCOP core::chemical::ResidueTypeFinder::get_representative_type ( bool const  metapatches = true) const

Find a residue which matches all the requirement criteria. Typically this will be the "simplest" type that does so, though that's not guaranteed. Will ignore preferences/discouragements.

References apply_filters_after_patches(), get_patched_types(), get_possible_base_residue_types(), get_possible_unpatchable_residue_types(), get_singly_metapatched_types(), and no_metapatches().

Referenced by protocols::farnesyl::InstallFarnesylMover::apply(), protocols::simple_moves::a3b_hbs::A3BHbsPatcher::apply(), protocols::simple_moves::hbs::HbsPatcher::apply(), protocols::cyclic_peptide::RamaMutationSelector::apply(), protocols::stepwise::monte_carlo::submotif::SubMotifLibrary::create_new_submotif(), core::io::pose_from_sfr::PoseFromSFRBuilder::d_l_threeletter_codes_are_same_for_aa(), protocols::simple_moves::SimpleThreadingMover::determine_mutations_comma_separated(), core::chemical::ResidueTypeSet::get_d_equivalent(), core::chemical::ResidueTypeSet::get_l_equivalent(), protocols::cyclic_peptide_predict::SimpleCycpepPredictApplication::get_nc_name_codes(), core::chemical::ResidueTypeSet::get_representative_type_aa(), core::chemical::ResidueTypeSet::get_representative_type_base_name(), core::chemical::ResidueTypeSet::get_representative_type_name1(), core::chemical::ResidueTypeSet::get_representative_type_name3(), core::conformation::get_residue_from_name1(), core::pack::palette::PackerPalette::get_residue_type_cop_with_variant_removed(), core::chemical::ResidueTypeSet::get_residue_type_with_custom_variant_added(), core::chemical::ResidueTypeSet::get_residue_type_with_variant_added(), core::chemical::ResidueTypeSet::get_residue_type_with_variant_removed(), core::pose::get_rsd_type_from_aa(), core::chemical::ResidueTypeSet::has_interchangeability_group(), core::io::pose_from_sfr::PoseFromSFRBuilder::is_residue_type_recognized(), core::pose::rna::mutate_position(), core::io::pose_from_sfr::PoseFromSFRBuilder::pass_2_quick_and_dirty_resolve_residue_types(), protocols::mainchain_potential::GenerateMainchainPotential::patches_can_apply(), core::io::pose_from_sfr::PoseFromSFRBuilder::setup(), core::util::switch_to_residue_type_set(), and core::pose::Pose::virtual_to_real().

◆ get_singly_metapatched_types()

utility::vector1< ResidueTypeCOP > core::chemical::ResidueTypeFinder::get_singly_metapatched_types ( utility::vector1< ResidueTypeCOP > const &  rsd_types,
bool const  get_first_totally_ok_residue_type = false 
) const
private

Attempt to apply metapatches to the residue types in rsd_types, returning the new types. (Existing residue types in rsd_types are not returned) get_first_totally_ok_residue_type is true, only the first residue type in the vector will be returned. This function only gets types with a single metapatch applied. If the caller wants multiply-patched types, it's responsible for re-calling this function itself.

This does not call the filters on the returned types – that's for the caller to handle.

References adds_any_property(), adds_any_variant(), apply_filters_after_patches(), changes_to_wrong_aa(), deletes_any_property(), deletes_any_variant(), fixes_interchangeability_group(), fixes_name3(), has_disallowed_variant(), matches_any_atom_name(), matches_any_patch_name(), core::chemical::ResidueTypeSet::metapatches(), core::chemical::ResidueTypeSet::name_mapOP(), no_metapatches(), and residue_type_set_.

Referenced by get_all_possible_residue_types(), and get_representative_type().

◆ has_disallowed_variant()

bool core::chemical::ResidueTypeFinder::has_disallowed_variant ( PatchCOP  patch) const
private

◆ ignore_atom_named_H()

ResidueTypeFinder& core::chemical::ResidueTypeFinder::ignore_atom_named_H ( bool const  setting)
inline

◆ initialize_relevant_pdb_components()

void core::chemical::ResidueTypeFinder::initialize_relevant_pdb_components ( ) const
private

◆ interchangeability_group()

ResidueTypeFinder& core::chemical::ResidueTypeFinder::interchangeability_group ( std::string const &  setting)
inline

◆ matches_any_atom_name()

bool core::chemical::ResidueTypeFinder::matches_any_atom_name ( PatchCOP  patch,
ResidueTypeCOP  rsd_type 
) const
private

◆ matches_any_patch_name()

bool core::chemical::ResidueTypeFinder::matches_any_patch_name ( PatchCOP  patch) const
private

◆ name1()

ResidueTypeFinder& core::chemical::ResidueTypeFinder::name1 ( char const &  setting)
inline

◆ name3()

ResidueTypeFinder& core::chemical::ResidueTypeFinder::name3 ( std::string const &  setting)
inline

◆ no_metapatches()

bool core::chemical::ResidueTypeFinder::no_metapatches ( ) const
inline

Have metapatched ResidueTypes been disabled (true)? Or are they to be considered (false)?

Author
Vikram K. Mulligan (vmullig.uw.edu).

References no_metapatches_.

Referenced by get_all_possible_residue_types(), get_representative_type(), and get_singly_metapatched_types().

◆ patch_names()

ResidueTypeFinder& core::chemical::ResidueTypeFinder::patch_names ( utility::vector1< std::string > const &  setting)
inline

◆ preferred_properties()

ResidueTypeFinder& core::chemical::ResidueTypeFinder::preferred_properties ( utility::vector1< ResidueProperty > const &  setting)
inline

◆ prioritize_rosetta_types_over_pdb_components()

ResidueTypeCOPs core::chemical::ResidueTypeFinder::prioritize_rosetta_types_over_pdb_components ( ResidueTypeCOPs const &  rsd_types) const
private

◆ properties()

ResidueTypeFinder& core::chemical::ResidueTypeFinder::properties ( utility::vector1< ResidueProperty > const &  setting)
inline

◆ residue_base_name()

ResidueTypeFinder& core::chemical::ResidueTypeFinder::residue_base_name ( std::string const &  setting)
inline

◆ set_no_CCD_on_name3_match()

void core::chemical::ResidueTypeFinder::set_no_CCD_on_name3_match ( bool  setting)
inline

Don't consider CCD components if we already have a Rosetta type with the same three letter code, even if the two residue types have completely different chemical structure. Note we already have a mechanism (the exclude_pdb_component_list.txt file in the database) to exclude CCD components which chemically match the Rosetta type (and this exclusion is always on).

References no_CCD_on_name3_match_.

◆ variant_exceptions() [1/2]

ResidueTypeFinder & core::chemical::ResidueTypeFinder::variant_exceptions ( utility::vector1< std::string > const &  setting,
bool const  clear_existing = true 
)

Variant exceptions are variants which are excluded from consideration during the allow_extra_variants = false filtering.

set function for variant exceptions

References core::chemical::NO_VARIANT.

Referenced by core::pack::palette::PackerPalette::decide_what_to_do_with_existing_type(), core::chemical::ResidueTypeSet::get_all_types_with_variants_aa(), core::chemical::ResidueTypeSet::get_all_types_with_variants_by_basetype(), and core::chemical::GlobalResidueTypeSet::place_adducts().

◆ variant_exceptions() [2/2]

ResidueTypeFinder & core::chemical::ResidueTypeFinder::variant_exceptions ( utility::vector1< VariantType > const &  setting,
bool const  clear_existing = true 
)

Provide a list of VariantTypes that will be ignored when matching.

By default, this overwritest the existing list. To append to the existing list, set clear_existing=false.

Note
Variant exceptions are variants which are excluded from consideration during the allow_extra_variants = false filtering

By default, this overwritest the existing list. To append to the existing list, set clear_existing=false.

◆ variants() [1/4]

ResidueTypeFinder & core::chemical::ResidueTypeFinder::variants ( utility::vector1< std::string > const &  setting)

set function for variants

actually updates variants_in_sets_.

References core::chemical::NO_VARIANT, and update_ResidueType_enum_files::variants.

◆ variants() [2/4]

ResidueTypeFinder& core::chemical::ResidueTypeFinder::variants ( utility::vector1< VariantType > const &  setting) const
private

◆ variants() [3/4]

ResidueTypeFinder & core::chemical::ResidueTypeFinder::variants ( utility::vector1< VariantType > const &  setting,
bool const  clear_existing = true 
)

Add a set of VariantTypes, all of which matching ResidueTypes MUST have.

set function for variants

By default, clears old required VariantType list. To append to list, set clear_existing=false.

actually updates variants_in_sets_.

Referenced by protocols::simple_moves::a3b_hbs::A3BHbsPatcher::apply(), protocols::simple_moves::hbs::HbsPatcher::apply(), protocols::cyclic_peptide::RamaMutationSelector::apply(), core::pack::palette::PackerPalette::decide_what_to_do_with_existing_type(), core::chemical::ResidueTypeSet::get_all_types_with_variants_aa(), core::chemical::ResidueTypeSet::get_all_types_with_variants_by_basetype(), core::chemical::ResidueTypeSet::get_all_types_with_variants_name1(), core::chemical::ResidueTypeSet::get_all_types_with_variants_name3(), core::chemical::ResidueTypeSet::get_d_equivalent(), core::chemical::ResidueTypeSet::get_l_equivalent(), core::chemical::ResidueTypeSet::get_representative_type_aa(), core::chemical::ResidueTypeSet::get_representative_type_name1(), core::chemical::ResidueTypeSet::get_representative_type_name3(), core::conformation::get_residue_from_name1(), core::pack::palette::PackerPalette::get_residue_type_cop_with_variant_removed(), core::chemical::ResidueTypeSet::get_residue_type_with_custom_variant_added(), core::chemical::ResidueTypeSet::get_residue_type_with_variant_added(), core::chemical::ResidueTypeSet::get_residue_type_with_variant_removed(), core::io::pose_from_sfr::PoseFromSFRBuilder::get_rsd_type(), core::pose::get_rsd_type_from_aa(), core::pose::rna::mutate_position(), core::io::pose_from_sfr::PoseFromSFRBuilder::pass_2_quick_and_dirty_resolve_residue_types(), protocols::mainchain_potential::GenerateMainchainPotential::patches_can_apply(), and core::pose::Pose::virtual_to_real().

◆ variants() [4/4]

ResidueTypeFinder & core::chemical::ResidueTypeFinder::variants ( utility::vector1< VariantType > const &  std_variants,
utility::vector1< std::string > const &  custom_variants,
bool const  clear_existing = true 
)

Specify a list of standard variant types (by enum) and custom variant types (by string).

This is the most efficient way to handle variants, since it minimizes the string handling. Everything that can be handled by enum is handled by enum.

Parameters
[in]std_variantsA vector of enums of standard variants that the ResidueTypeFinder should match.
[in]custom_variantsA vector of strings of custom variant types that the ResidueTypeFinder should match. Note that standard types should NOT be included in this list. There is no check for this!
[in]clear_existingIf true (default), the existing VariantType lists are cleared. If false, this just appends to those lists.
Author
Vikram K. Mulligan (vmull.nosp@m.ig@u.nosp@m.w.edu).

References update_ResidueType_enum_files::variants.

◆ variants_in_sets()

ResidueTypeFinder& core::chemical::ResidueTypeFinder::variants_in_sets ( utility::vector1< utility::vector1< VariantType > > const &  setting)
inline

References variants_in_sets_.

Member Data Documentation

◆ aa_

core::chemical::AA core::chemical::ResidueTypeFinder::aa_ = aa_none
private

◆ atom_names_soft_

utility::vector1< std::string > core::chemical::ResidueTypeFinder::atom_names_soft_
private

◆ base_property_

ResidueProperty core::chemical::ResidueTypeFinder::base_property_ = NO_PROPERTY
private

◆ base_type_

ResidueTypeCOP core::chemical::ResidueTypeFinder::base_type_ = nullptr
private

◆ check_nucleic_acid_virtual_phosphates_

bool core::chemical::ResidueTypeFinder::check_nucleic_acid_virtual_phosphates_ = false
private

◆ connect_atoms_

utility::vector1< std::string > core::chemical::ResidueTypeFinder::connect_atoms_
private

Referenced by connect_atoms(), and fixes_connects().

◆ custom_variants_

utility::vector1< std::string > core::chemical::ResidueTypeFinder::custom_variants_
private

◆ disallow_carboxyl_conjugation_at_glu_asp_

bool core::chemical::ResidueTypeFinder::disallow_carboxyl_conjugation_at_glu_asp_
private

◆ disallow_properties_

utility::vector1< ResidueProperty > core::chemical::ResidueTypeFinder::disallow_properties_
private

Referenced by disallow_properties().

◆ disallow_variants_

utility::vector1< VariantType > core::chemical::ResidueTypeFinder::disallow_variants_
private

Referenced by has_disallowed_variant().

◆ discouraged_properties_

utility::vector1< ResidueProperty > core::chemical::ResidueTypeFinder::discouraged_properties_
private

◆ ignore_atom_named_H_

bool core::chemical::ResidueTypeFinder::ignore_atom_named_H_ = false
private

◆ interchangeability_group_

std::string core::chemical::ResidueTypeFinder::interchangeability_group_ = ""
private

◆ name1_

char core::chemical::ResidueTypeFinder::name1_ = '?'
private

Referenced by filter_by_name1(), and name1().

◆ name3_

std::string core::chemical::ResidueTypeFinder::name3_ = ""
private

◆ no_CCD_on_name3_match_

bool core::chemical::ResidueTypeFinder::no_CCD_on_name3_match_ = false
private

Don't consider CCD components if we already have a Rosetta type with the same three letter code.

Referenced by apply_preferences_and_discouragements(), initialize_relevant_pdb_components(), prioritize_rosetta_types_over_pdb_components(), and set_no_CCD_on_name3_match().

◆ no_metapatches_

bool core::chemical::ResidueTypeFinder::no_metapatches_ = false
private

Disable consideration of metapatched variants (relevant for speed).

False by default (considers metapatches); if true, metapatches are disabled.

Author
Vikram K. Mulligan (vmull.nosp@m.ig@u.nosp@m.w.edu).

Referenced by disable_metapatches(), and no_metapatches().

◆ patch_names_

utility::vector1< std::string > core::chemical::ResidueTypeFinder::patch_names_
private

◆ preferred_properties_

utility::vector1< ResidueProperty > core::chemical::ResidueTypeFinder::preferred_properties_
private

◆ properties_

utility::vector1< ResidueProperty > core::chemical::ResidueTypeFinder::properties_
private

◆ residue_type_base_name_

std::string core::chemical::ResidueTypeFinder::residue_type_base_name_ = ""
private

◆ residue_type_set_

core::chemical::ResidueTypeSet const& core::chemical::ResidueTypeFinder::residue_type_set_
private

◆ variant_exceptions_

utility::vector1< VariantType > core::chemical::ResidueTypeFinder::variant_exceptions_
private

Referenced by adds_any_variant().

◆ variants_in_sets_

utility::vector1< utility::vector1< VariantType > > core::chemical::ResidueTypeFinder::variants_in_sets_
private

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