112{
  113  
  114  if(!keys().contains("id"))
  115    {
  116      throw pappso::PappsoException(QObject::tr("missing scan id"));
  117    }
  118  if(keys().contains("psm_list"))
  119    {
  121 
  122 
  124        *(qualified_mass_spectrum.get()->getMassSpectrumSPtr().get()));
  125 
  126      QCborArray new_psm_arr;
  127      for(QCborValue cbor_psm : value("psm_list").toArray())
  128        {
  129          QCborMap cbor_psm_map = cbor_psm.toMap();
  130 
  131          if(!cbor_psm_map.keys().contains("proforma"))
  132            {
  133              throw pappso::PappsoException(
  134                QObject::tr("missing proforma in psm %1").arg(cbor_psm_map.keys().size()));
  135            }
  136          QCborMap cbor_psm_eval_specglob;
  139 
  140 
  142            std::make_shared<pappso::specpeptidoms::SpOMSSpectrum>(
  143              *qualified_mass_spectrum.get(),
  146          
  147
  148
  149 
  150
  151 
  152 
  153
  154
  155 
  156 
  157
  158
  159
  160
  161 
  162
  163
  164 
  165 
  166
  167
  168
  169 
  170
  171
  172 
  173
  174
  175
  176 
  177
  178
  179 
  180 
  181
  182
  183
  184
  185
  186 
  187
  188
  189        }
  190 
  191      
  192      remove(QString("psm_list"));
  193      insert(QString("psm_list"), new_psm_arr);
  194    }
  195}
pappso::QualifiedMassSpectrumSPtr getCurrentQualifiedMassSpectrumSPtr() const
 
std::shared_ptr< const SpOMSSpectrum > SpOMSSpectrumCsp
 
std::shared_ptr< QualifiedMassSpectrum > QualifiedMassSpectrumSPtr
 
std::shared_ptr< const Peptide > PeptideSp