Rosetta
2019.12
|
#include <Atom.hh>
Public Member Functions | |
Atom () | |
Construct a new atom type with its name and element. More... | |
Atom (std::string const &name_in, std::string const &mm_name, Size const mm_atom_type_index, ElementCOP element, Real const charge, Vector const &ideal_xyz) | |
Construct a new atom with the name, mm type, element, charge and position. More... | |
Atom (Atom const &src) | |
Copy constructor. More... | |
~Atom () | |
bool | operator== (Atom const &atom) const |
Atom & | operator= (Atom const &atom) |
void | show (std::ostream &out=std::cout) const |
Generate string representation of chemical::Atom for debugging purposes. More... | |
std::string const & | name () const |
std::string const & | mm_name () const |
Size const & | atom_type_index () const |
Size const & | mm_atom_type_index () const |
ElementCOP | element_type () const |
core::chemical::element::Elements | element () const |
Convenience function to go directly to the element enum. More... | |
gasteiger::GasteigerAtomTypeDataCOP | gasteiger_atom_type () const |
int const & | formal_charge () const |
Real const & | charge () const |
Vector const & | ideal_xyz () const |
utility::vector1< Size > const & | bonded_orbitals () const |
utility::vector1< Size > & | bonded_orbitals () |
AtomProperties & | properties () const |
Access the collection of properties for this Atom. More... | |
bool | has_property (std::string const &property) const |
Generic property access. More... | |
bool | has_property (AtomProperty const property) const |
bool | heavyatom_has_polar_hydrogens () const |
Get whether or not this heavy atom is a hydrogen-bond donor. More... | |
bool | is_acceptor () const |
Get whether or not this heavy atom is a hydrogen-bond acceptor. More... | |
bool | is_hydrogen () const |
bool | is_polar_hydrogen () const |
Get whether or not this hydrogen atom is polar. More... | |
bool | is_haro () const |
Get whether or not this hydrogen atom is bonded to an aromatic ring. More... | |
bool | is_virtual () const |
Get whether or not this atom is virtual. More... | |
bool | has_orbitals () const |
char | absolute_stereochemistry () const |
Return the absolute stereochemistry (R/S designation) of this stereocenter. More... | |
GreekDistance | greek_distance () const |
How far (in Greek letters) is this atom from the primary functional group of the molecule? More... | |
void | name (std::string const &name) |
void | mm_name (std::string const &name) |
void | atom_type_index (Size const &atom_type_index) |
void | mm_atom_type_index (Size const &mm_atom_type_index) |
void | element_type (ElementCOP element) |
void | gasteiger_atom_type (core::chemical::gasteiger::GasteigerAtomTypeDataCOP gasteiger_atom_type) |
void | formal_charge (int charge) |
void | charge (Real const &charge) |
void | ideal_xyz (Vector const &ideal_xyz) |
void | set_property (std::string const &property, bool const setting) |
Generic property setting. More... | |
void | set_property (AtomProperty const property, bool const setting) |
void | heavyatom_has_polar_hydrogens (bool setting) |
Set whether or not this heavy atom is a hydrogen-bond donor. More... | |
void | is_acceptor (bool setting) |
Set whether or not this heavy atom is a hydrogen-bond acceptor. More... | |
void | is_hydrogen (bool setting) |
void | is_polar_hydrogen (bool setting) |
Set whether or not this hydrogen atom is polar. More... | |
void | is_haro (bool setting) |
Set whether or not this hydrogen atom is bonded to an aromatic ring. More... | |
void | is_virtual (bool setting) |
Set whether or not this atom is virtual. More... | |
void | has_orbitals (bool orbitals) |
void | set_absolute_stereochemistry (char const setting) |
Set the absolute stereochemistry (R/S designation) of this stereocenter. More... | |
void | greek_distance (GreekDistance const setting) |
Set how far (in Greek letters) this atom is from the primary functional group of the molecule. More... | |
bool | is_fake () const |
Return true if this represents a fake/mock atom. More... | |
Private Attributes | |
std::string | name_ |
std::string | mm_name_ |
Size | atom_type_index_ |
Size | mm_atom_type_index_ |
ElementCOP | element_ |
gasteiger::GasteigerAtomTypeDataCOP | gasteiger_atom_type_ |
Gasteiger atom-type. More... | |
int | formal_charge_ |
The formal (integral) charge on the atom. More... | |
Real | charge_ |
Vector | ideal_xyz_ |
AtomPropertiesOP | properties_ |
bool | is_hydrogen_ |
is an atom a hydrogen? Derived from Rosetta Atom type, set in add_atom() More... | |
bool | has_orbitals_ |
doe an atom have orbitals? Derived from Rosetta Atom type, set in add_atom() More... | |
utility::vector1< Size > | bonded_orbitals_ |
char | abs_stereochem_ |
GreekDistance | greek_d_ |
This class contains the "chemical" information for atoms. This does not contain the actual xyz coordinates of the atom, (which are found in core/conformation/Atom.hh). The atom_type properties are assigned by the class AtomSet, which is initiated from the ChemicalManager. AtomType properties are currently read in from the file chemical/atom_type_sets/fa_standard/atom_properties.txt. These properties contain the the properties of LJ_RADIUS, LJ_WDEPTH, LK_DGRFREE, LK_LAMBDA, and LK_VOLUME and are used in the scoring methods fa_atr, fa_rep, and fa_sol, which are located in the Etable (core/scoring/etable/Etable.hh). Additional parameters are acceptor/donor, hybridization, and orbital paramaters. This class should not have information associated with the Conformation or ResidueType; it represents an atom divorced from a particular conformation or residue but not from things that affect it chemically. It is distinct from an Element, in that it can have a particular hybridization state, charge, etc. It is distinct from conformation::Atom in that it does not have coordinates. Everything stored here should be concerning the atom. Conformation information goes in core::conformation, while data for ResidueType is cached there.
core::chemical::Atom::Atom | ( | ) |
Construct a new atom type with its name and element.
All its properties are un-set by default.
core::chemical::Atom::Atom | ( | std::string const & | name_in, |
std::string const & | mm_name, | ||
Size const | mm_atom_type_index, | ||
ElementCOP | element, | ||
Real const | charge, | ||
Vector const & | ideal_xyz | ||
) |
Construct a new atom with the name, mm type, element, charge and position.
Rosetta AtomTypes should be set through the ResidueType to ensure data consistency.
core::chemical::Atom::Atom | ( | Atom const & | src | ) |
Copy constructor.
|
default |
|
inline |
Return the absolute stereochemistry (R/S designation) of this stereocenter.
References abs_stereochem_.
|
inline |
References atom_type_index_.
Referenced by protocols::match::bump_grid_to_enclose_pose(), core::chemical::AutomorphismIterator::can_pair(), core::chemical::make_centroid(), core::chemical::HeavyAtomWithPolarHydrogensFilter::operator()(), core::chemical::HeavyAtomWithHydrogensFilter::operator()(), core::conformation::Residue::Residue(), core::chemical::rosetta_retype_fullatom(), core::chemical::ResidueType::set_atom_type(), and core::chemical::ResidueType::update_derived_data().
|
inline |
You probably don't want to use this directly. Use ResidueType::set_atom_type() which correctly updates the internal state of the residuetype/atom
References atom_type_index(), and atom_type_index_.
Referenced by atom_type_index().
|
inline |
References bonded_orbitals_.
|
inline |
References bonded_orbitals_.
|
inline |
References charge_.
Referenced by core::chemical::SetAtomicCharge::apply(), core::chemical::SetAtomType::apply(), core::chemical::ConnectSulfurAndMakeVirtualProton::apply(), core::chemical::VirtualizeAll::apply(), core::chemical::VirtualizeSidechain::apply(), core::conformation::Residue::atomic_charge(), core::scoring::sasa::SasaCalc::calc_per_res_sasas(), core::chemical::sdf::MolWriter::compose_atoms(), formal_charge(), core::scoring::PQR::PQR(), core::chemical::ResidueType::real_to_virtual(), core::chemical::ResidueDatabaseIO::report_residue_type_atom(), core::chemical::rosetta_recharge_fullatom(), core::scoring::PoissonBoltzmannPotential::write_pqr(), and core::chemical::write_topology_file().
|
inline |
core::chemical::element::Elements core::chemical::Atom::element | ( | ) | const |
Convenience function to go directly to the element enum.
References element_, and core::chemical::element::UnknownElement.
Referenced by core::pack::guidance_scoreterms::buried_unsat_penalty::graph::BuriedUnsatPenaltyGraphHbondDonorAcceptorGroup::determine_max_accepted_hbond_count(), and element_type().
|
inline |
References element_.
Referenced by core::chemical::AutomorphismIterator::can_pair(), core::chemical::sdf::MolFileIOMolecule::create_dummy_atom(), protocols::md::CartesianMD::do_initialize(), core::chemical::find_chi_bonds(), core::chemical::find_nbr_dist(), core::scoring::methods::IdealParametersDatabase::generate_impropers_map_res(), core::chemical::RigidDistanceVisitor::is_nub(), core::chemical::rename_atoms(), core::chemical::retype_is_aromatic(), core::chemical::rosetta_retype_fullatom(), core::io::pose_from_sfr::score_mapping(), and core::chemical::ResidueType::set_atom_type().
|
inline |
|
inline |
|
inline |
References charge(), and formal_charge_.
gasteiger::GasteigerAtomTypeDataCOP core::chemical::Atom::gasteiger_atom_type | ( | ) | const |
void core::chemical::Atom::gasteiger_atom_type | ( | core::chemical::gasteiger::GasteigerAtomTypeDataCOP | gasteiger_atom_type | ) |
References gasteiger_atom_type(), and gasteiger_atom_type_.
|
inline |
How far (in Greek letters) is this atom from the primary functional group of the molecule?
References greek_d_.
void core::chemical::Atom::greek_distance | ( | GreekDistance const | setting | ) |
Set how far (in Greek letters) this atom is from the primary functional group of the molecule.
References greek_d_.
|
inline |
References has_orbitals_.
Referenced by core::chemical::ResidueType::set_atom_type(), and core::chemical::ResidueType::update_derived_data().
|
inline |
References has_orbitals_.
|
inline |
Generic property access.
References properties_.
Referenced by heavyatom_has_polar_hydrogens(), is_acceptor(), is_haro(), is_polar_hydrogen(), is_virtual(), and core::chemical::Metapatch::meets_requirements().
|
inline |
References properties_.
|
inline |
Get whether or not this heavy atom is a hydrogen-bond donor.
References core::chemical::H_DONOR, and has_property().
Referenced by show().
|
inline |
Set whether or not this heavy atom is a hydrogen-bond donor.
References core::chemical::H_DONOR, and set_property().
|
inline |
References ideal_xyz_.
Referenced by core::io::pose_from_sfr::check_and_correct_sister_atom_based_on_chirality(), core::io::pose_from_sfr::check_and_correct_sister_atom_based_on_outgroup(), core::chemical::ResidueType::debug_dump_icoor(), core::chemical::RigidDistanceVisitor::examine_edge(), core::chemical::RigidDistanceVisitor::examine_vertex(), core::scoring::mm::MMBondAngleResidueTypeParam::init(), protocols::match::upstream::UpstreamResTypeGeometry::initialize_from_residue_type(), core::chemical::RerootRestypeVisitor::initialize_vertex(), core::conformation::Residue::Residue(), core::io::pose_from_sfr::score_mapping(), core::chemical::ResidueType::set_ideal_xyz(), core::chemical::ResidueTypeKinWriter::write_restype(), and core::chemical::ICoorAtomID::xyz().
|
inline |
References ideal_xyz(), and ideal_xyz_.
Referenced by ideal_xyz().
|
inline |
Get whether or not this heavy atom is a hydrogen-bond acceptor.
References core::chemical::H_ACCEPTOR, and has_property().
Referenced by protocols::cyclic_peptide::OversaturatedHbondAcceptorFilter::max_allowed_hbonds(), core::chemical::ResidueType::set_atom_type(), show(), and core::chemical::ResidueType::update_derived_data().
|
inline |
Set whether or not this heavy atom is a hydrogen-bond acceptor.
References core::chemical::H_ACCEPTOR, and set_property().
bool core::chemical::Atom::is_fake | ( | ) | const |
Return true if this represents a fake/mock atom.
References element_, is_virtual(), name(), and core::chemical::TR().
Referenced by core::chemical::gasteiger::assign_gasteiger_atom_types().
|
inline |
Get whether or not this hydrogen atom is bonded to an aromatic ring.
References core::chemical::AROMATIC_HYDROGEN, and has_property().
Referenced by core::chemical::ReplaceProtonWithTrifluoromethyl::apply(), core::chemical::ReplaceProtonWithMethyl::apply(), core::chemical::ReplaceProtonWithMethoxy::apply(), core::chemical::ReplaceProtonWithEthyl::apply(), core::chemical::ReplaceProtonWithChlorine::apply(), core::chemical::ReplaceProtonWithFluorine::apply(), core::chemical::ReplaceProtonWithBromine::apply(), core::chemical::ReplaceProtonWithIodine::apply(), core::chemical::ReplaceProtonWithHydroxyl::apply(), core::chemical::ResidueType::set_atom_type(), show(), and core::chemical::ResidueType::update_derived_data().
|
inline |
Set whether or not this hydrogen atom is bonded to an aromatic ring.
References core::chemical::AROMATIC_HYDROGEN, and set_property().
|
inline |
References is_hydrogen_.
Referenced by core::chemical::AddConnectDeleteChildProton::apply(), core::chemical::AddConnectDeleteChildProton::changes_connections_on(), core::chemical::RerootEdgeSorter::operator()(), core::chemical::ResidueType::set_atom_type(), and core::chemical::ResidueType::update_derived_data().
|
inline |
References is_hydrogen_.
|
inline |
Get whether or not this hydrogen atom is polar.
References has_property(), and core::chemical::POLAR_HYDROGEN.
Referenced by core::chemical::ResidueType::set_atom_type(), show(), and core::chemical::ResidueType::update_derived_data().
|
inline |
Set whether or not this hydrogen atom is polar.
References core::chemical::POLAR_HYDROGEN, and set_property().
|
inline |
Get whether or not this atom is virtual.
References has_property(), and core::chemical::VIRTUAL_ATOM.
Referenced by core::chemical::SetAtomType::apply(), core::chemical::ConnectSulfurAndMakeVirtualProton::apply(), core::chemical::VirtualizeAll::apply(), core::chemical::VirtualizeSidechain::apply(), is_fake(), core::chemical::RerootEdgeSorter::operator()(), core::chemical::ResidueType::real_to_virtual(), core::chemical::ResidueType::set_atom_type(), show(), and core::chemical::ResidueType::update_derived_data().
|
inline |
Set whether or not this atom is virtual.
References set_property(), and core::chemical::VIRTUAL_ATOM.
|
inline |
References mm_atom_type_index_.
Referenced by core::scoring::methods::MMBondLengthEnergy::eval_atom_derivative(), core::scoring::methods::MMBondAngleEnergy::eval_atom_derivative(), core::scoring::methods::MMTorsionEnergy::eval_atom_derivative(), core::scoring::methods::MMBondLengthEnergy::eval_intrares_energy(), core::scoring::methods::MMTorsionEnergy::eval_intrares_energy(), core::scoring::methods::MMBondAngleEnergy::eval_intrares_energy(), core::conformation::Residue::Residue(), core::scoring::methods::MMBondLengthEnergy::residue_pair_energy(), core::scoring::methods::MMTorsionEnergy::residue_pair_energy(), core::scoring::methods::MMBondAngleEnergy::residue_pair_energy(), and core::chemical::ResidueType::set_mm_atom_type().
|
inline |
References mm_atom_type_index(), and mm_atom_type_index_.
Referenced by mm_atom_type_index().
|
inline |
References mm_name_.
Referenced by core::chemical::ReplaceProtonWithTrifluoromethyl::apply(), core::chemical::ReplaceProtonWithMethyl::apply(), core::chemical::ReplaceProtonWithMethoxy::apply(), core::chemical::ReplaceProtonWithEthyl::apply(), core::chemical::ReplaceProtonWithChlorine::apply(), core::chemical::ReplaceProtonWithFluorine::apply(), core::chemical::ReplaceProtonWithBromine::apply(), core::chemical::ReplaceProtonWithIodine::apply(), core::chemical::ReplaceProtonWithHydroxyl::apply(), core::scoring::SplitUnfoldedTwoBodyPotential::calculate_residue_emap(), core::scoring::methods::MMBondLengthEnergy::eval_intrares_energy(), core::scoring::methods::MMTorsionEnergy::eval_intrares_energy(), core::scoring::methods::MMBondAngleEnergy::eval_intrares_energy(), core::conformation::Residue::mm_atom_name(), core::chemical::ResidueDatabaseIO::report_residue_type_atom(), core::scoring::methods::MMBondLengthEnergy::residue_pair_energy(), core::scoring::methods::MMTorsionEnergy::residue_pair_energy(), core::scoring::methods::MMBondAngleEnergy::residue_pair_energy(), and core::chemical::ResidueType::set_mm_atom_type().
|
inline |
|
inline |
References name_.
Referenced by core::chemical::ResidueType::add_atom(), core::chemical::ChiralFlipAtoms::apply(), core::chemical::sdf::MolFileIOMolecule::convert_to_ResidueType(), core::simple_metrics::per_residue_metrics::PerResidueRMSDMetric::create_atom_id_map(), is_fake(), mm_name(), core::chemical::RerootEdgeSorter::operator()(), core::chemical::ResidueType::operator=(), core::chemical::rename_atoms(), core::chemical::sdf::MolFileIOMolecule::set_from_extra_data(), core::chemical::ResidueType::show_all_atom_names(), and core::chemical::ResidueTypeKinWriter::write_restype().
|
inline |
|
inline |
Access the collection of properties for this Atom.
References properties_.
void core::chemical::Atom::set_absolute_stereochemistry | ( | char const | setting | ) |
Set the absolute stereochemistry (R/S designation) of this stereocenter.
References abs_stereochem_.
|
inline |
Generic property setting.
References properties_.
Referenced by core::chemical::ReplaceProtonWithTrifluoromethyl::apply(), core::chemical::ReplaceProtonWithMethyl::apply(), core::chemical::ReplaceProtonWithMethoxy::apply(), core::chemical::ReplaceProtonWithEthyl::apply(), core::chemical::ReplaceProtonWithChlorine::apply(), core::chemical::ReplaceProtonWithFluorine::apply(), core::chemical::ReplaceProtonWithBromine::apply(), core::chemical::ReplaceProtonWithIodine::apply(), core::chemical::ReplaceProtonWithHydroxyl::apply(), heavyatom_has_polar_hydrogens(), is_acceptor(), is_haro(), is_polar_hydrogen(), is_virtual(), and core::chemical::ResidueType::update_derived_data().
|
inline |
References properties_.
void core::chemical::Atom::show | ( | std::ostream & | out = std::cout | ) | const |
Generate string representation of chemical::Atom for debugging purposes.
References atom_type_index_, charge_, element_, formal_charge_, gasteiger_atom_type(), gasteiger_atom_type_, heavyatom_has_polar_hydrogens(), is_acceptor(), is_haro(), is_hydrogen_, is_polar_hydrogen(), is_virtual(), mm_atom_type_index_, mm_name_, and name_.
Referenced by core::chemical::operator<<(), and core::chemical::ResidueType::show().
|
private |
Referenced by absolute_stereochemistry(), operator=(), operator==(), and set_absolute_stereochemistry().
|
private |
Referenced by atom_type_index(), operator=(), operator==(), and show().
|
private |
Referenced by bonded_orbitals(), operator=(), and operator==().
|
private |
Referenced by charge(), operator=(), operator==(), and show().
|
private |
Referenced by element(), element_type(), is_fake(), operator=(), operator==(), and show().
|
private |
The formal (integral) charge on the atom.
Referenced by formal_charge(), operator=(), operator==(), and show().
|
private |
Gasteiger atom-type.
Referenced by gasteiger_atom_type(), operator=(), operator==(), and show().
|
private |
Referenced by greek_distance(), operator=(), and operator==().
|
private |
doe an atom have orbitals? Derived from Rosetta Atom type, set in add_atom()
Referenced by has_orbitals(), operator=(), and operator==().
|
private |
Referenced by ideal_xyz(), operator=(), and operator==().
|
private |
is an atom a hydrogen? Derived from Rosetta Atom type, set in add_atom()
Referenced by is_hydrogen(), operator=(), operator==(), and show().
|
private |
Referenced by mm_atom_type_index(), operator=(), operator==(), and show().
|
private |
Referenced by mm_name(), operator=(), operator==(), and show().
|
private |
Referenced by name(), operator=(), operator==(), and show().
|
private |
Referenced by has_property(), operator=(), operator==(), properties(), and set_property().