![]() |
Rosetta Core
2014.35
|
#include <ResidueDatabaseIO.hh>
Public Member Functions | |
ResidueDatabaseIO () | |
virtual | ~ResidueDatabaseIO () |
void | write_schema_to_db (utility::sql_database::sessionOP db_session) const |
generate the table schemas and write them to the database More... | |
void | initialize (utility::sql_database::sessionOP db_session) |
write the schema More... | |
core::Real | get_version () |
void | write_residuetype_to_database (std::string const &residue_type_set_name, core::chemical::ResidueType const &res_type, utility::sql_database::sessionOP db_session) |
core::chemical::ResidueTypeOP | read_residuetype_from_database (chemical::AtomTypeSetCAP atom_types, chemical::ElementSetCAP elements, chemical::MMAtomTypeSetCAP mm_atom_types, chemical::orbitals::OrbitalTypeSetCAP orbital_atom_types, std::string const &residue_type_set_name, std::string const &residue_type_name, utility::sql_database::sessionOP db_session) |
utility::vector1< std::string > | get_all_residues_in_database (utility::sql_database::sessionOP db_session) |
Private Member Functions | |
void | write_residue_type_table_schema (utility::sql_database::sessionOP db_session) const |
generate the residue_type table schema More... | |
void | write_residue_type_atom_table_schema (utility::sql_database::sessionOP db_session) const |
generate the residue_type_atom table schema More... | |
void | write_residue_type_bond_table_schema (utility::sql_database::sessionOP db_session) const |
generate the residue_type_bond table schema More... | |
void | write_residue_type_cut_bond_table_schema (utility::sql_database::sessionOP db_session) const |
generate the residue_type_cut_bond table schema More... | |
void | write_residue_type_chi_table_schema (utility::sql_database::sessionOP db_session) const |
generate the residue_type_chi table schema More... | |
void | write_residue_type_chi_rotamer_table_schema (utility::sql_database::sessionOP db_session) const |
generate the residue_type_chi_rotamer table schema More... | |
void | write_residue_type_proton_chi_table_schema (utility::sql_database::sessionOP db_session) const |
generate the residue_type_proton_chi table schema More... | |
void | write_residue_type_property_table_schema (utility::sql_database::sessionOP db_session) const |
generate the residue_type_property table schema More... | |
void | write_residue_type_variant_type_table_schema (utility::sql_database::sessionOP db_session) const |
generate the residue_type_variant_type table schema More... | |
void | write_residue_type_icoor_table_schema (utility::sql_database::sessionOP db_session) const |
generate the residue_type_icoor table schema More... | |
std::string | get_atom_name_from_database_atom_index (std::string residue_name, core::Size atom_index, utility::sql_database::sessionOP db_session) |
void | report_residue_type (std::string const &residue_type_set_name, core::chemical::ResidueType const &res_type, utility::sql_database::sessionOP db_session) |
void | read_residue_type (std::string const &residue_type_set_name, std::string const &residue_type_name, core::chemical::ResidueType &res_type, utility::sql_database::sessionOP db_session) |
void | report_residue_type_atom (std::string const &residue_type_set_name, core::chemical::ResidueType const &res_type, utility::sql_database::sessionOP db_session) |
void | read_residue_type_atom (std::string const &residue_type_set_name, std::string const &residue_type_name, core::chemical::ResidueType &res_type, utility::sql_database::sessionOP db_session) |
void | report_residue_type_bond (std::string const &residue_type_set_name, core::chemical::ResidueType const &res_type, utility::sql_database::sessionOP db_session) |
void | read_residue_type_bond (std::string const &residue_type_set_name, std::string const &residue_type_name, core::chemical::ResidueType &res_type, utility::sql_database::sessionOP db_session) |
void | report_residue_type_cut_bond (std::string const &residue_type_set_name, core::chemical::ResidueType const &res_type, utility::sql_database::sessionOP db_session) |
void | read_residue_type_cut_bond (std::string const &residue_type_set_name, std::string const &residue_type_name, core::chemical::ResidueType &res_type, utility::sql_database::sessionOP db_session) |
void | report_residue_type_chi (std::string const &residue_type_set_name, core::chemical::ResidueType const &res_type, utility::sql_database::sessionOP db_session) |
void | read_residue_type_chi (std::string const &residue_type_set_name, std::string const &residue_type_name, core::chemical::ResidueType &res_type, utility::sql_database::sessionOP db_session) |
void | report_residue_type_chi_rotamer (std::string const &residue_type_set_name, core::chemical::ResidueType const &res_type, utility::sql_database::sessionOP db_session) |
void | read_residue_type_chi_rotamer (std::string const &residue_type_set_name, std::string const &residue_type_name, core::chemical::ResidueType &res_type, utility::sql_database::sessionOP db_session) |
void | report_residue_type_proton_chi (std::string const &residue_type_set_name, core::chemical::ResidueType const &res_type, utility::sql_database::sessionOP db_session) |
void | read_residue_type_proton_chi (std::string const &residue_type_set_name, std::string const &residue_type_name, core::chemical::ResidueType &res_type, utility::sql_database::sessionOP db_session) |
void | report_residue_type_properties (std::string const &residue_type_set_name, core::chemical::ResidueType const &res_type, utility::sql_database::sessionOP db_session) |
void | read_residue_type_properties (std::string const &residue_type_set_name, std::string const &residue_type_name, core::chemical::ResidueType &res_type, utility::sql_database::sessionOP db_session) |
void | report_residue_type_variant (std::string const &residue_type_set_name, core::chemical::ResidueType const &res_type, utility::sql_database::sessionOP db_session) |
void | read_residue_type_variant (std::string const &residue_type_set_name, std::string const &residue_type_name, core::chemical::ResidueType &res_type, utility::sql_database::sessionOP db_session) |
void | report_residue_type_icoor (std::string const &residue_type_set_name, core::chemical::ResidueType const &res_type, utility::sql_database::sessionOP db_session) |
void | read_residue_type_icoor (std::string const &residue_type_set_name, std::string const &residue_type_name, core::chemical::ResidueType &res_type, utility::sql_database::sessionOP db_session) |
Private Attributes | |
core::Real | version_ |
std::map< std::pair < std::string, core::Size > , std::string > | atom_name_id_cache_ |
core::chemical::ResidueDatabaseIO::ResidueDatabaseIO | ( | ) |
|
virtual |
utility::vector1< std::string > core::chemical::ResidueDatabaseIO::get_all_residues_in_database | ( | utility::sql_database::sessionOP | db_session | ) |
|
private |
core::Real core::chemical::ResidueDatabaseIO::get_version | ( | ) |
References version_.
void core::chemical::ResidueDatabaseIO::initialize | ( | utility::sql_database::sessionOP | db_session | ) |
write the schema
References write_schema_to_db().
|
private |
this needs to get called after read_residue_type_atom
References core::chemical::ResidueType::aa(), get_atom_name_from_database_atom_index(), core::chemical::ResidueType::name(), core::chemical::ResidueType::name1(), core::chemical::ResidueType::name3(), core::chemical::name_from_aa(), core::chemical::ResidueType::nbr_atom(), core::chemical::ResidueType::nbr_radius(), basic::database::safely_prepare_statement(), basic::database::safely_read_from_database(), core::chemical::ResidueType::set_lower_connect_atom(), core::chemical::ResidueType::set_RotamerLibraryName(), core::chemical::ResidueType::set_upper_connect_atom(), utility_exit_with_message, version, and version_.
Referenced by read_residuetype_from_database().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
References core::kinematics::distance(), core::chemical::fill_ideal_xyz_from_icoor(), core::chemical::ResidueType::graph(), basic::database::safely_prepare_statement(), basic::database::safely_read_from_database(), and core::chemical::ResidueType::set_icoor().
Referenced by read_residuetype_from_database().
|
private |
|
private |
|
private |
core::chemical::ResidueTypeOP core::chemical::ResidueDatabaseIO::read_residuetype_from_database | ( | chemical::AtomTypeSetCAP | atom_types, |
chemical::ElementSetCAP | elements, | ||
chemical::MMAtomTypeSetCAP | mm_atom_types, | ||
chemical::orbitals::OrbitalTypeSetCAP | orbital_atom_types, | ||
std::string const & | residue_type_set_name, | ||
std::string const & | residue_type_name, | ||
utility::sql_database::sessionOP | db_session | ||
) |
References read_residue_type(), read_residue_type_atom(), read_residue_type_bond(), read_residue_type_chi(), read_residue_type_chi_rotamer(), read_residue_type_cut_bond(), read_residue_type_icoor(), read_residue_type_properties(), and read_residue_type_variant().
Referenced by core::chemical::ChemicalManager::create_residue_type_set().
|
private |
References core::chemical::ResidueType::aa(), core::chemical::ResidueType::get_RotamerLibraryName(), core::chemical::ResidueType::is_lower_terminus(), core::chemical::ResidueType::is_polymer(), core::chemical::ResidueType::is_upper_terminus(), core::chemical::ResidueType::lower_connect_atom(), core::chemical::ResidueType::name(), core::chemical::ResidueType::name1(), core::chemical::ResidueType::name3(), core::chemical::ResidueType::nbr_atom(), core::chemical::ResidueType::nbr_radius(), basic::database::safely_prepare_statement(), basic::database::safely_write_to_database(), core::chemical::ResidueType::upper_connect_atom(), and version_.
Referenced by write_residuetype_to_database().
|
private |
References core::chemical::ResidueType::atom(), core::chemical::ResidueType::atom_is_backbone(), core::chemical::ResidueType::atom_name(), core::chemical::ResidueType::atom_type(), core::chemical::AtomType::atom_type_name(), core::chemical::Atom::charge(), core::chemical::Atom::mm_name(), core::chemical::ResidueType::name(), core::chemical::ResidueType::natoms(), basic::database::safely_prepare_statement(), and basic::database::safely_write_to_database().
Referenced by write_residuetype_to_database().
|
private |
References core::chemical::ResidueType::bonded_neighbor(), core::chemical::ResidueType::bonded_neighbor_types(), core::chemical::ResidueType::name(), core::chemical::ResidueType::natoms(), neighbors, basic::database::safely_prepare_statement(), and basic::database::safely_write_to_database().
Referenced by write_residuetype_to_database().
|
private |
|
private |
|
private |
|
private |
References core::chemical::ResidueType::atom_name(), core::chemical::ICoorAtomID::CONNECT, core::chemical::ResidueType::icoor(), core::chemical::ICoorAtomID::INTERNAL, core::chemical::ResidueType::name(), core::chemical::ResidueType::natoms(), core::chemical::ICoorAtomID::POLYMER_LOWER, basic::database::safely_prepare_statement(), and basic::database::safely_write_to_database().
Referenced by write_residuetype_to_database().
|
private |
|
private |
References core::chemical::ResidueType::n_proton_chi(), core::chemical::ResidueType::name(), core::chemical::ResidueType::proton_chi_2_chi(), core::chemical::ResidueType::proton_chi_extra_samples(), core::chemical::ResidueType::proton_chi_samples(), basic::database::safely_prepare_statement(), and basic::database::safely_write_to_database().
Referenced by write_residuetype_to_database().
|
private |
|
private |
generate the residue_type_atom table schema
References basic::database::schema_generator::Schema::add_column(), basic::database::schema_generator::Schema::add_foreign_key(), basic::database::schema_generator::Schema::add_index(), table, and basic::database::schema_generator::Schema::write().
Referenced by write_schema_to_db().
|
private |
generate the residue_type_bond table schema
References basic::database::schema_generator::Schema::add_column(), basic::database::schema_generator::Schema::add_foreign_key(), table, and basic::database::schema_generator::Schema::write().
Referenced by write_schema_to_db().
|
private |
generate the residue_type_chi_rotamer table schema
References basic::database::schema_generator::Schema::add_foreign_key(), mean, table, and basic::database::schema_generator::Schema::write().
Referenced by write_schema_to_db().
|
private |
generate the residue_type_chi table schema
References basic::database::schema_generator::Schema::add_column(), basic::database::schema_generator::Schema::add_foreign_key(), table, and basic::database::schema_generator::Schema::write().
Referenced by write_schema_to_db().
|
private |
generate the residue_type_cut_bond table schema
References basic::database::schema_generator::Schema::add_foreign_key(), table, and basic::database::schema_generator::Schema::write().
Referenced by write_schema_to_db().
|
private |
generate the residue_type_icoor table schema
References basic::database::schema_generator::Schema::add_column(), basic::database::schema_generator::Schema::add_foreign_key(), core::kinematics::distance(), table, and basic::database::schema_generator::Schema::write().
Referenced by write_schema_to_db().
|
private |
generate the residue_type_property table schema
References basic::database::schema_generator::Schema::add_foreign_key(), table, and basic::database::schema_generator::Schema::write().
Referenced by write_schema_to_db().
|
private |
generate the residue_type_proton_chi table schema
References basic::database::schema_generator::Schema::add_column(), basic::database::schema_generator::Schema::add_foreign_key(), table, and basic::database::schema_generator::Schema::write().
Referenced by write_schema_to_db().
|
private |
generate the residue_type table schema
References basic::database::schema_generator::Schema::add_column(), table, version, and basic::database::schema_generator::Schema::write().
Referenced by write_schema_to_db().
|
private |
generate the residue_type_variant_type table schema
References basic::database::schema_generator::Schema::add_foreign_key(), table, and basic::database::schema_generator::Schema::write().
Referenced by write_schema_to_db().
void core::chemical::ResidueDatabaseIO::write_residuetype_to_database | ( | std::string const & | residue_type_set_name, |
core::chemical::ResidueType const & | res_type, | ||
utility::sql_database::sessionOP | db_session | ||
) |
References core::chemical::ResidueType::name(), report_residue_type(), report_residue_type_atom(), report_residue_type_bond(), report_residue_type_chi(), report_residue_type_chi_rotamer(), report_residue_type_cut_bond(), report_residue_type_icoor(), report_residue_type_properties(), report_residue_type_proton_chi(), report_residue_type_variant(), basic::database::safely_prepare_statement(), and basic::database::safely_read_from_database().
void core::chemical::ResidueDatabaseIO::write_schema_to_db | ( | utility::sql_database::sessionOP | db_session | ) | const |
generate the table schemas and write them to the database
References write_residue_type_atom_table_schema(), write_residue_type_bond_table_schema(), write_residue_type_chi_rotamer_table_schema(), write_residue_type_chi_table_schema(), write_residue_type_cut_bond_table_schema(), write_residue_type_icoor_table_schema(), write_residue_type_property_table_schema(), write_residue_type_proton_chi_table_schema(), write_residue_type_table_schema(), and write_residue_type_variant_type_table_schema().
Referenced by initialize().
|
private |
Referenced by get_atom_name_from_database_atom_index().
|
private |
Referenced by get_version(), read_residue_type(), and report_residue_type().