| | |
The PkaPhPiDataParser class provides a file reader for the pKa, pH, pI data XML file. More...
| Header: | #include <PkaPhPiDataParser.hpp> |
| PkaPhPiDataParser(const MsXpS::libXpertMassCore::PolChemDefCstSPtr &pol_chem_def_csp, const QString &file_path = QString()) | |
| ~PkaPhPiDataParser() | |
| const QString & | filePath() |
| bool | renderXmlFile(std::vector<MsXpS::libXpertMassCore::MonomerSPtr> &monomers, std::vector<MsXpS::libXpertMassCore::ModifSPtr> &modifs) |
| void | setFilePath(const QString &file_path) |
| QString | m_filePath |
| MsXpS::libXpertMassCore::PolChemDefCstSPtr | mcsp_polChemDef |
The format is the following:
<pkaphpidata> <monomers> <monomer> <code>A</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> </monomer> [...] <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> </monomers> <modifs> <modif> <name>Phosphorylation</name> <mdfchemgroup> <name>none_set</name> <pka>1.2</pka> <acidcharged>FALSE</acidcharged> </mdfchemgroup> <mdfchemgroup> <name>none_set</name> <pka>6.5</pka> <acidcharged>FALSE</acidcharged> </mdfchemgroup> </modif> </modifs> </pkaphpidata>
Constructs a PkaPhPiDataParser instance.
[noexcept] PkaPhPiDataParser::~PkaPhPiDataParser()Destructs this PkaPhPiDataParser instance
Returns the file path.
See also setFilePath().
Parses the file and fills-in the monomers and the modifs containers.
The two container hold specific Monomer and Modif instances as desribed in the loaded file.
Returns true upon success, false otherwise.
Sets the file_path.
See also filePath().
This variable holds the path of the file that contains all the specifications for chemical groups and chemical rules.
This variable holds the polymer chemistry definition context in which this PkaPhPiDataParser instance exists.