|
The PkaPhPiDataParser class provides a file reader for the pKa, pH, pI data XML file.. More...
Header: | #include <PkaPhPiDataParser.hpp> |
PkaPhPiDataParser(const libXpertMass::PolChemDefCstSPtr pol_chem_def_csp, QString file_path = QString()) | |
~PkaPhPiDataParser() | |
const QString & | filePath() |
bool | renderXmlFile(QList<libXpertMass::Monomer *> *monomer_list_p, QList<libXpertMass::Modif *> *modif_list_p) |
void | setFilePath(const QString &file_path) |
QString | m_filePath |
libXpertMass::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
monomer_list_p: the list of Monomer instances documented in the file. modif_list_p: the list of Modif instances documented in the file.
Returns true upon success, false otherwise.
Sets the file_path.
See also filePath().
This variable holds the path the file that contains all the specifications for chemical groups and chemical rules.
This variable holds the polymer chemistry definition.