#include <peptidestrparser.h>
Definition at line 52 of file peptidestrparser.h.
◆ parseNoConstString()
NoConstPeptideSp pappso::PeptideStrParser::parseNoConstString |
( |
const QString & |
pepstr | ) |
|
|
static |
◆ parseString()
PeptideSp pappso::PeptideStrParser::parseString |
( |
const QString & |
pepstr | ) |
|
|
static |
◆ parseStringToPeptide()
void pappso::PeptideStrParser::parseStringToPeptide |
( |
const QString & |
pepstr, |
|
|
Peptide & |
peptide |
|
) |
| |
|
staticprivate |
Definition at line 60 of file peptidestrparser.cpp.
61 qDebug() <<
"PeptideStrParser::parseString mod " << mod;
62 if(rx_psimod.exactMatch(mod))
64 qDebug() <<
"PeptideStrParser::parseString pos-1 "
65 << (pos - 1 - matched_length_cumul);
67 pos - 1 - matched_length_cumul);
69 else if(mod.startsWith(
"internal:Nter_"))
71 peptide.setInternalNterModification(
74 else if(mod.startsWith(
"internal:Cter_"))
76 peptide.setInternalCterModification(
79 else if(rx_modmass.exactMatch(mod))
82 if(!mod.contains(
"."))
85 mod =
"MOD:0000" + mod;
88 mod = mod.replace(4, 1,
"");
91 pos - 1 - matched_length_cumul);
95 peptide.addAaModification(
97 pos - 1 - matched_length_cumul);
102 FilterOboPsiModSink term_list;
103 FilterOboPsiModTermLabel filter_label(term_list, mod);
105 OboPsiMod psimod(filter_label);
107 peptide.addAaModification(
109 pos - 1 - matched_length_cumul);
112 matched_length_cumul += mod_parser.matchedLength();
113 pos += mod_parser.matchedLength();
122 Peptide peptide(QString(pepstr).replace(
_mod_parser,
""));
125 return (peptide.makePeptideSp());
133 Peptide peptide(QString(pepstr).replace(
_mod_parser,
""));
136 return (peptide.makeNoConstPeptideSp());
References pappso::FilterOboPsiModSink::getFirst(), pappso::AaModification::getInstance(), and pappso::AaModification::getInstanceCustomizedMod().
◆ _mod_parser
QRegExp pappso::PeptideStrParser::_mod_parser |
|
staticprivate |
◆ _rx_modmass
QRegExp pappso::PeptideStrParser::_rx_modmass |
|
staticprivate |
◆ _rx_psimod
QRegExp pappso::PeptideStrParser::_rx_psimod |
|
staticprivate |
The documentation for this class was generated from the following files: