Rosetta
|
Main interface to sasa calculations outside of pose metrics. Virt atms are skipped as radii=0. More...
#include <SasaCalc.hh>
Public Member Functions | |
SasaCalc () | |
SasaCalc (SasaMethodEnum method) | |
~SasaCalc () override | |
Real | calculate (const pose::Pose &pose) |
Calculate Sasa. Atoms not calculated have -1 sasa in AtomID_Map. This is carried over for compatability purposes. More... | |
Real | calculate (const pose::Pose &pose, id::AtomID_Map< Real > &atom_sasa) |
Real | calculate (const pose::Pose &pose, utility::vector1< Real > &rsd_sasa, utility::vector1< Real > &rsd_hsasa) |
Real | calculate (const pose::Pose &pose, id::AtomID_Map< Real > &atom_sasa, utility::vector1< Real > &rsd_sasa, utility::vector1< Real > &rsd_hsasa) |
Real | calculate (const pose::Pose &pose, id::AtomID_Map< Real > &atom_sasa, utility::vector1< Real > &rsd_sasa, utility::vector1< Real > &rsd_hsasa, utility::vector1< Real > &rsd_rel_hsasa) |
id::AtomID_Map< Real > | get_atom_sasa () const |
void | fill_data (Real &total_hsasa, Real &total_rel_hsasa, id::AtomID_Map< Real > &atom_sasa, utility::vector1< Real > &rsd_sasa, utility::vector1< Real > &rsd_hsasa, utility::vector1< Real > &rel_hsasa) |
Convenience function to fill most commonly used data. More... | |
utility::vector1< Real > | get_residue_sasa () const |
utility::vector1< Real > | get_residue_sasa_bb () const |
utility::vector1< Real > | get_residue_sasa_sc () const |
utility::vector1< Real > | get_residue_hsasa () const |
utility::vector1< Real > | get_residue_hsasa_bb () const |
utility::vector1< Real > | get_residue_hsasa_sc () const |
utility::vector1< Real > | get_rel_hphobic_sasa_by_charge () const |
Real | get_total_sasa () const |
Real | get_total_sasa_sc () const |
Real | get_total_sasa_bb () const |
Real | get_total_hsasa () const |
Real | get_total_hsasa_sc () const |
Real | get_total_hsasa_bb () const |
Real | get_total_rel_hsasa () const |
void | set_defaults () |
void | set_sasa_method_hp_mode (SasaMethodHPMode const mode_in) |
Set whether we're counting all SASA (default), polar SASA, or hydrophobic SASA. More... | |
SasaMethodHPMode | sasa_method_hp_mode () const |
Get whether we're counting all SASA (default), polar SASA, or hydrophobic SASA. More... | |
void | set_calculation_method (SasaMethodEnum method) |
void | set_include_hydrogens_explicitly (bool include_hydrogens) |
Include hydrogens explicitly. More... | |
void | set_probe_radius (Real probe_radius) |
Probe radius of 1.4 (water) is typically used. More... | |
void | set_include_probe_radius_in_atom_radii (bool include_probe_radius) |
This is typically done. Disabling it is more akin to obtaining the Surface Area than the SASA. More... | |
void | set_include_carbon_sulfer_only_in_hydrophobic_calc (bool include_c_s_only) |
Typically, only carbon or sulfers are included in the calculation. If you are using ligands - this may not be good enough. More... | |
void | set_exclude_polar_atoms_by_charge (bool exclude_polar_all) |
Polar carbons and other atoms should not be included in hydrophobic hSASA - though historically they were. .4 is a relative number. This makes sure that carbonyl and carboxyl carbons are marked as polar, while others (protein-based) are non-polar. More... | |
void | set_polar_charge_cutoff (Real cutoff) |
void | set_implicit_hydrogen_included_radii_set (SasaRadii radii_set) |
Radii set to use when not including hydrogens (naccess/chothia, legacy) Do not use legacy unless you know what you are doing and why. More... | |
void | set_explicit_hydrogen_included_radii_set (SasaRadii radii_set) |
Radii set to use when including hydrogens (LJ/reduce) More... | |
void | set_use_big_polar_hydrogen (bool big_polar_h) |
Not for general use. Used to calculate unsatisfied buried polars with legacy radii (which implicitly had included hydrogens.) More... | |
Private Member Functions | |
void | init (const pose::Pose &pose) |
void | setup_sasa_method (SasaRadii radii_set) |
Creates and sets up the sasa method before calculate is called on the instance. More... | |
void | calc_per_res_sasas (const pose::Pose &pose) |
Private Attributes | |
SasaMethodEnum | method_type_ |
SasaMethodOP | method_ |
SasaMethodHPMode | sasa_method_hp_mode_ = SasaMethodHPMode::ALL_SASA |
Are we counting all SASA, hydrophobic only, or hydrophilic only? More... | |
SasaRadii | implicit_radii_set_ |
SasaRadii | explicit_radii_set_ |
bool | include_hydrogens_ |
Real | probe_radius_ |
bool | include_c_s_only_in_hsasa_ |
bool | exclude_polar_all_in_hsasa_ |
Real | polar_charge_cutoff_ |
bool | include_probe_radius_ |
bool | big_polar_h_ |
id::AtomID_Map< bool > | atom_subset_ |
id::AtomID_Map< Real > | atom_sasa_ |
utility::vector1< Real > | rsd_sasa_ |
utility::vector1< Real > | rsd_sasa_sc_ |
utility::vector1< Real > | rsd_hsasa_ |
utility::vector1< Real > | rsd_hsasa_sc_ |
utility::vector1< Real > | rel_hydrophobic_sasa_by_charge_ |
Real | total_sasa_ |
Real | total_sasa_sc_ |
Real | total_hsasa_ |
Real | total_hsasa_sc_ |
Real | total_rel_hsasa_ |
Main interface to sasa calculations outside of pose metrics. Virt atms are skipped as radii=0.
core::scoring::sasa::SasaCalc::SasaCalc | ( | ) |
References core::scoring::sasa::LeGrand, method_type_, and set_defaults().
core::scoring::sasa::SasaCalc::SasaCalc | ( | SasaMethodEnum | method | ) |
References method_type_, and set_defaults().
|
overridedefault |
|
private |
References core::chemical::ResidueType::atom_charge(), core::conformation::Residue::atom_is_backbone(), atom_sasa_, atom_subset_, core::conformation::Residue::atom_type(), core::chemical::ResidueType::bonded_neighbor(), core::chemical::AtomType::element(), exclude_polar_all_in_hsasa_, include_c_s_only_in_hsasa_, include_hydrogens_, core::scoring::atomic_depth::nb, polar_charge_cutoff_, rel_hydrophobic_sasa_by_charge_, core::pose::Pose::residue(), rsd_hsasa_, rsd_hsasa_sc_, rsd_sasa_, rsd_sasa_sc_, core::pose::Pose::size(), total_hsasa_, total_hsasa_sc_, total_rel_hsasa_, total_sasa_sc_, and core::conformation::Residue::type().
Referenced by calculate().
Real core::scoring::sasa::SasaCalc::calculate | ( | const pose::Pose & | pose | ) |
Calculate Sasa. Atoms not calculated have -1 sasa in AtomID_Map. This is carried over for compatability purposes.
References atom_sasa_, atom_subset_, calc_per_res_sasas(), explicit_radii_set_, implicit_radii_set_, include_hydrogens_, init(), method_, rsd_sasa_, setup_sasa_method(), and total_sasa_.
Referenced by calculate(), core::simple_metrics::per_residue_metrics::PerResidueSasaMetric::calculate(), and core::scoring::sasa::per_res_sc_sasa().
Real core::scoring::sasa::SasaCalc::calculate | ( | const pose::Pose & | pose, |
id::AtomID_Map< Real > & | atom_sasa | ||
) |
References atom_sasa_, and calculate().
Real core::scoring::sasa::SasaCalc::calculate | ( | const pose::Pose & | pose, |
id::AtomID_Map< Real > & | atom_sasa, | ||
utility::vector1< Real > & | rsd_sasa, | ||
utility::vector1< Real > & | rsd_hsasa | ||
) |
Real core::scoring::sasa::SasaCalc::calculate | ( | const pose::Pose & | pose, |
id::AtomID_Map< Real > & | atom_sasa, | ||
utility::vector1< Real > & | rsd_sasa, | ||
utility::vector1< Real > & | rsd_hsasa, | ||
utility::vector1< Real > & | rsd_rel_hsasa | ||
) |
Real core::scoring::sasa::SasaCalc::calculate | ( | const pose::Pose & | pose, |
utility::vector1< Real > & | rsd_sasa, | ||
utility::vector1< Real > & | rsd_hsasa | ||
) |
void core::scoring::sasa::SasaCalc::fill_data | ( | Real & | total_hsasa, |
Real & | total_rel_hsasa, | ||
id::AtomID_Map< Real > & | atom_sasa, | ||
utility::vector1< Real > & | rsd_sasa, | ||
utility::vector1< Real > & | rsd_hsasa, | ||
utility::vector1< Real > & | rel_hsasa | ||
) |
Convenience function to fill most commonly used data.
References atom_sasa_, rel_hydrophobic_sasa_by_charge_, rsd_hsasa_, rsd_sasa_, total_hsasa_, and total_rel_hsasa_.
|
inline |
Data Access
References atom_sasa_.
|
inline |
References rel_hydrophobic_sasa_by_charge_.
|
inline |
References rsd_hsasa_.
vector1< Real > core::scoring::sasa::SasaCalc::get_residue_hsasa_bb | ( | ) | const |
References rsd_hsasa_, and rsd_hsasa_sc_.
|
inline |
References rsd_hsasa_sc_.
|
inline |
vector1< Real > core::scoring::sasa::SasaCalc::get_residue_sasa_bb | ( | ) | const |
References rsd_sasa_, and rsd_sasa_sc_.
|
inline |
References rsd_sasa_sc_.
Referenced by core::scoring::sasa::per_res_sc_sasa().
|
inline |
References total_hsasa_.
|
inline |
References total_hsasa_, and total_hsasa_sc_.
|
inline |
References total_hsasa_sc_.
|
inline |
References total_rel_hsasa_.
|
inline |
References total_sasa_.
|
inline |
References total_sasa_, and total_sasa_sc_.
|
inline |
References total_sasa_sc_.
|
private |
References atom_sasa_, atom_subset_, core::id::AtomID_Map< T >::clear(), include_hydrogens_, core::pose::initialize_atomid_map(), rel_hydrophobic_sasa_by_charge_, core::pose::Pose::residue(), rsd_hsasa_, rsd_hsasa_sc_, rsd_sasa_, rsd_sasa_sc_, core::pose::Pose::size(), total_hsasa_, total_hsasa_sc_, total_rel_hsasa_, total_sasa_, and total_sasa_sc_.
Referenced by calculate().
|
inline |
Get whether we're counting all SASA (default), polar SASA, or hydrophobic SASA.
References sasa_method_hp_mode_.
void core::scoring::sasa::SasaCalc::set_calculation_method | ( | SasaMethodEnum | method | ) |
References method_type_.
Referenced by set_defaults().
void core::scoring::sasa::SasaCalc::set_defaults | ( | ) |
Options
References core::scoring::sasa::ALL_SASA, core::scoring::sasa::get_sasa_method_from_string(), core::scoring::sasa::get_sasa_radii_set_from_string(), set_calculation_method(), set_exclude_polar_atoms_by_charge(), set_explicit_hydrogen_included_radii_set(), set_implicit_hydrogen_included_radii_set(), set_include_carbon_sulfer_only_in_hydrophobic_calc(), set_include_hydrogens_explicitly(), set_include_probe_radius_in_atom_radii(), set_polar_charge_cutoff(), set_probe_radius(), set_sasa_method_hp_mode(), and set_use_big_polar_hydrogen().
Referenced by SasaCalc().
void core::scoring::sasa::SasaCalc::set_exclude_polar_atoms_by_charge | ( | bool | exclude_polar_all | ) |
Polar carbons and other atoms should not be included in hydrophobic hSASA - though historically they were. .4 is a relative number. This makes sure that carbonyl and carboxyl carbons are marked as polar, while others (protein-based) are non-polar.
References exclude_polar_all_in_hsasa_.
Referenced by set_defaults().
void core::scoring::sasa::SasaCalc::set_explicit_hydrogen_included_radii_set | ( | SasaRadii | radii_set | ) |
Radii set to use when including hydrogens (LJ/reduce)
References explicit_radii_set_.
Referenced by set_defaults().
void core::scoring::sasa::SasaCalc::set_implicit_hydrogen_included_radii_set | ( | SasaRadii | radii_set | ) |
Radii set to use when not including hydrogens (naccess/chothia, legacy) Do not use legacy unless you know what you are doing and why.
References implicit_radii_set_.
Referenced by set_defaults().
void core::scoring::sasa::SasaCalc::set_include_carbon_sulfer_only_in_hydrophobic_calc | ( | bool | include_c_s_only | ) |
Typically, only carbon or sulfers are included in the calculation. If you are using ligands - this may not be good enough.
References include_c_s_only_in_hsasa_.
Referenced by set_defaults().
void core::scoring::sasa::SasaCalc::set_include_hydrogens_explicitly | ( | bool | include_hydrogens | ) |
void core::scoring::sasa::SasaCalc::set_include_probe_radius_in_atom_radii | ( | bool | include_probe_radius | ) |
This is typically done. Disabling it is more akin to obtaining the Surface Area than the SASA.
References include_probe_radius_.
Referenced by set_defaults().
void core::scoring::sasa::SasaCalc::set_polar_charge_cutoff | ( | core::Real | cutoff | ) |
References polar_charge_cutoff_.
Referenced by set_defaults().
void core::scoring::sasa::SasaCalc::set_probe_radius | ( | core::Real | probe_radius | ) |
Probe radius of 1.4 (water) is typically used.
References probe_radius_.
Referenced by set_defaults().
void core::scoring::sasa::SasaCalc::set_sasa_method_hp_mode | ( | SasaMethodHPMode const | mode_in | ) |
Set whether we're counting all SASA (default), polar SASA, or hydrophobic SASA.
References core::scoring::sasa::END_OF_LIST, method_, and sasa_method_hp_mode_.
Referenced by core::simple_metrics::per_residue_metrics::PerResidueSasaMetric::calculate(), and set_defaults().
void core::scoring::sasa::SasaCalc::set_use_big_polar_hydrogen | ( | bool | big_polar_h | ) |
Not for general use. Used to calculate unsatisfied buried polars with legacy radii (which implicitly had included hydrogens.)
Legacy Options
References big_polar_h_.
Referenced by set_defaults().
|
private |
Creates and sets up the sasa method before calculate is called on the instance.
References big_polar_h_, core::scoring::sasa::create_sasa_method(), include_probe_radius_, method_, method_type_, probe_radius_, and sasa_method_hp_mode_.
Referenced by calculate().
|
private |
Referenced by calc_per_res_sasas(), calculate(), fill_data(), get_atom_sasa(), and init().
|
private |
Referenced by calc_per_res_sasas(), calculate(), and init().
|
private |
Referenced by set_use_big_polar_hydrogen(), and setup_sasa_method().
|
private |
Referenced by calc_per_res_sasas(), and set_exclude_polar_atoms_by_charge().
|
private |
Referenced by calculate(), and set_explicit_hydrogen_included_radii_set().
|
private |
Referenced by calculate(), and set_implicit_hydrogen_included_radii_set().
|
private |
Referenced by calc_per_res_sasas(), and set_include_carbon_sulfer_only_in_hydrophobic_calc().
|
private |
Referenced by calc_per_res_sasas(), calculate(), init(), and set_include_hydrogens_explicitly().
|
private |
Referenced by set_include_probe_radius_in_atom_radii(), and setup_sasa_method().
|
private |
Referenced by calculate(), set_sasa_method_hp_mode(), and setup_sasa_method().
|
private |
Referenced by SasaCalc(), set_calculation_method(), and setup_sasa_method().
|
private |
Referenced by calc_per_res_sasas(), and set_polar_charge_cutoff().
|
private |
Referenced by set_probe_radius(), and setup_sasa_method().
|
private |
Referenced by calc_per_res_sasas(), fill_data(), get_rel_hphobic_sasa_by_charge(), and init().
|
private |
Referenced by calc_per_res_sasas(), fill_data(), get_residue_hsasa(), get_residue_hsasa_bb(), and init().
|
private |
Referenced by calc_per_res_sasas(), get_residue_hsasa_bb(), get_residue_hsasa_sc(), and init().
|
private |
Referenced by calc_per_res_sasas(), calculate(), fill_data(), get_residue_sasa(), get_residue_sasa_bb(), and init().
|
private |
Referenced by calc_per_res_sasas(), get_residue_sasa_bb(), get_residue_sasa_sc(), and init().
|
private |
Are we counting all SASA, hydrophobic only, or hydrophilic only?
Defaults to all.
Referenced by sasa_method_hp_mode(), set_sasa_method_hp_mode(), and setup_sasa_method().
|
private |
Referenced by calc_per_res_sasas(), fill_data(), get_total_hsasa(), get_total_hsasa_bb(), and init().
|
private |
Referenced by calc_per_res_sasas(), get_total_hsasa_bb(), get_total_hsasa_sc(), and init().
|
private |
Referenced by calc_per_res_sasas(), fill_data(), get_total_rel_hsasa(), and init().
|
private |
Referenced by calculate(), get_total_sasa(), get_total_sasa_bb(), and init().
|
private |
Referenced by calc_per_res_sasas(), get_total_sasa_bb(), get_total_sasa_sc(), and init().