| | |
The PkaPhPi class provides a model for specifying the acido-basic properties of a chemical entity. More...
| Header: | #include <PkaPhPi.hpp> |
| Inherits: | MsXpS::libXpertMassCore::PropListHolder |
| PkaPhPi(MsXpS::libXpertMassCore::PolChemDefCstSPtr pol_chem_def_csp, MsXpS::libXpertMassCore::PolymerCstQSPtr polymer_cqsp, const MsXpS::libXpertMassCore::CalcOptions &calc_options) | |
| virtual | ~PkaPhPi() |
| int | accountMonomerModif(const MsXpS::libXpertMassCore::Monomer &monomer, MsXpS::libXpertMassCore::ChemicalGroup &chemical_group) |
| int | accountPolymerEndModif(MsXpS::libXpertMassCore::Enums::ChemicalEntity polymer_chem_ent, const MsXpS::libXpertMassCore::ChemicalGroup &chemical_group) |
| double | calculateChargeRatio(double pka, bool is_acid_charged) |
| int | calculateCharges() |
| int | calculatePi() |
| const std::vector<MsXpS::libXpertMassCore::ModifCstSPtr> & | getModifs() const |
| const std::vector<MsXpS::libXpertMassCore::MonomerCstSPtr> & | getMonomersCstRef() const |
| MsXpS::libXpertMassCore::PolChemDefCstSPtr | getPolChemDefCstSPtr() const |
| double | negativeCharges() |
| double | ph() |
| double | pi() |
| double | positiveCharges() |
| void | setCalcOptions(const MsXpS::libXpertMassCore::CalcOptions &calc_options) |
| void | setModifs(std::vector<MsXpS::libXpertMassCore::ModifCstSPtr> &modifs) |
| void | setModifs(std::vector<MsXpS::libXpertMassCore::ModifCstSPtr> &&modifs) |
| void | setModifs(std::vector<MsXpS::libXpertMassCore::ModifSPtr> &&modifs) |
| void | setMonomers(std::vector<MsXpS::libXpertMassCore::MonomerCstSPtr> &monomers) |
| void | setMonomers(std::vector<MsXpS::libXpertMassCore::MonomerCstSPtr> &&monomers) |
| void | setMonomers(std::vector<MsXpS::libXpertMassCore::MonomerSPtr> &&monomers) |
| void | setPh(double ph) |
| void | setPolChemDefCstSPtr(MsXpS::libXpertMassCore::PolChemDefCstSPtr pol_chem_def_csp) |
| MsXpS::libXpertMassCore::CalcOptions | m_calcOptions |
| std::vector<MsXpS::libXpertMassCore::ModifCstSPtr> | m_modifs |
| std::vector<MsXpS::libXpertMassCore::MonomerCstSPtr> | m_monomers |
| double | m_negativeCharges |
| double | m_ph |
| double | m_pi |
| double | m_positiveCharges |
| MsXpS::libXpertMassCore::PolChemDefCstSPtr | mcsp_polChemDef |
| MsXpS::libXpertMassCore::PolymerCstQSPtr | mcsp_polymer |
Constructs a PkaPhPi instance with a number of parameters.
[virtual noexcept] PkaPhPi::~PkaPhPi()Destructs this PkaPhPi instance.
Accounts for the chemical_group in the context of the monomer.
A chemical group is described as follows:
<monomer> <code>C</code> <mnmchemgroup> <name>N-term NH2</name> <pka>9.6</pka> <acidcharged>TRUE</acidcharged> <polrule>left_trapped</polrule> <chemgrouprule> <entity>LE_PLM_MODIF</entity> <name>Acetylation</name> <outcome>LOST</outcome> </chemgrouprule> </mnmchemgroup> <mnmchemgroup> <name>C-term COOH</name> <pka>2.35</pka> <acidcharged>FALSE</acidcharged> <polrule>right_trapped</polrule> </mnmchemgroup> <mnmchemgroup> <name>Lateral SH2</name> <pka>8.3</pka> <acidcharged>FALSE</acidcharged> <polrule>never_trapped</polrule> </mnmchemgroup> </monomer>
Returns the count of rules that were accounted for, or -1 if none was.
Accounts for the chemical_group according the the polymer chemical entities defined in polymer_chem_ent.
A chemical group is described as follows:
<monomer> <code>C</code> <mnmchemgroup> <name>N-term NH2</name> <pka>9.6</pka> <acidcharged>TRUE</acidcharged> <polrule>left_trapped</polrule> <chemgrouprule> <entity>LE_PLM_MODIF</entity> <name>Acetylation</name> <outcome>LOST</outcome> </chemgrouprule> </mnmchemgroup> <mnmchemgroup> <name>C-term COOH</name> <pka>2.35</pka> <acidcharged>FALSE</acidcharged> <polrule>right_trapped</polrule> </mnmchemgroup> <mnmchemgroup> <name>Lateral SH2</name> <pka>8.3</pka> <acidcharged>FALSE</acidcharged> <polrule>never_trapped</polrule> </mnmchemgroup> </monomer>
Returns the count of rules that were accounted for, or -1 if none was.
Returns the ratio between the charged and the uncharged forms of the chemical entity using pka and is_acid_charged. If the charge is negative, the returned ratio is negative, positive otherwise.
The charged and uncharged species are the AH an A- species of the acido-basic theory.
The calculation is based on the use of the m_ph member variable value.
Calculates the charges (positive and negative).
The general scheme is :
Get the list of the iter_index_range of the different Polymer region selections. For each first monomer and end monomer of a given region selection, check if the the region is an oligomer or a residual chain (m_selectionType of libXpertMassCore::CalcOptions); act accordingly. Also, check for each selection region if it encompasses the polymer left/right end. If the left/right end modifications are to be taken into account, act accordingly.
The positive and negative charges are stored in the member m_positiveCharges and m_negativeCharges variables.
Returns the count of chemical groups that have been processed.
See also calculatePi().
Calculates the isoelectric point.
The isoelectric point is the pH at which a given analyte will have a net charge of 0, that is, when the count of negative charges will be equal to the count of positive charges.
The pI will be stored in the m_pi member variable.
Returns the count of chemical groups that have been processed.
See also calculateCharges().
Returns a const reference to the container of Modif instances.
Returns a const reference to the container of Monomer instances.
Returns the PolChemDef.
Returns the negative charges.
Returns the pH.
See also setPh().
Returns the pI.
Returns the positive charges.
Sets the calculation options to calc_options.
Copies the Modif instances in modifs to the member container.
This is a shallow copy with only the pointers being copied.
Moves the Modif instances from modifs to the member container.
Moves the Modif instances from modifs to the member container.
Copies the Monomer instances in monomers to the member container.
This is a shallow copy with only the pointers being copied.
Moves the Monomer instances from monomers to the member container.
Moves the Monomer instances from monomers to the member container.
Sets the pH to ph.
See also ph().
Sets the PolChemDef to pol_chem_def_csp.
This variable holds the CalcOptions that configure the way the computations are to be carried out.
This variable holds the container of Modif instances as read from the pka_ph_pi.xml file.
This variable holds the container of Monomer instances as read from the pka_ph_pi.xml file.
This variable holds the count of negative charges.
This variable holds the pH of the environment.
This pH value is required to compute the number of charges of a given chemical entity (a Polymer) sequence, for example.
This variable holds the pI of the chemical entity.
This variable holds the count of positive charges.
This variable holds the polymer chemistry definition.
This variable holds the polymer of which the acidobasic properties are computed.