114 if(match_line.hasMatch())
116 QStringList pline = match_line.capturedTexts();
123 else if(pline[1] ==
"name")
125 m_name = pline[2].trimmed();
128 else if(pline[1] ==
"is_a")
130 m_isA << pline[2].section(
" ", 0, 0);
133 else if(pline[1] ==
"xref")
137 QRegularExpressionMatch match_subline =
m_firstParse.match(pline[2]);
142 if(match_subline.hasMatch())
144 QStringList psecond = match_subline.capturedTexts();
145 if(psecond[1] ==
"DiffMono")
147 m_diffMono = psecond[2].replace(
"\"",
"").toDouble();
151 else if(psecond[1] ==
"delta_mono_mass")
154 m_diffMono = psecond[2].replace(
"\"",
"").toDouble();
158 else if(psecond[1] ==
"DiffFormula")
165 else if(psecond[1] ==
"delta_composition")
174 else if(psecond[1] ==
"Formula")
177 m_formula = psecond[2].trimmed().replace(
"\"",
"");
181 else if(psecond[1] ==
"Origin")
183 m_origin = psecond[2].trimmed().replace(
"\"",
"").replace(
",",
"");
189 else if(psecond[1] ==
"MassMono")
192 double mass_mono = psecond[2].replace(
"\"",
"").toDouble(&is_ok);
202 else if(pline[1] ==
"synonym")
206 if(match_exact_psimod.hasMatch())
208 m_psiModLabel = match_exact_psimod.captured(1).trimmed().replace(
"\"",
"");
215 if(match_related_psims.hasMatch())
217 m_psiMsLabel = match_related_psims.captured(1).trimmed().replace(
"\"",
"");
223 else if(pline[1] ==
"def")
230 if(match_subline.hasMatch())
232 QStringList psecond = match_subline.capturedTexts();