| 
    libpappsomspp
    
   Library for mass spectrometry 
   | 
 
#include <jsoninput.h>
Public Member Functions | |
| JsonInput (pappso::UiMonitorInterface &ui_monitor, const QString &tmp_dir_name, const QJsonDocument &json_doc) | |
| ~JsonInput () | |
| void | action (CborOutputStream &cbor_output) | 
Private Member Functions | |
| const QJsonValue | documentFind (const QString &key1, const QString &key2) const | 
| void | readMzDataFiles () | 
| void | readAlignmentMethodSp () | 
| void | readQuantificationMethodSp () | 
| void | readProjectParameters () | 
| void | read_protein_list () | 
| void | read_peptide_list () | 
| void | read_msrun_peptide_observations () | 
| void | readAction (CborOutputStream &cbor_output) | 
| void | computeIsotopologues (double ni_ratio) | 
Private Attributes | |
| const QJsonDocument & | m_jsonDocument | 
| const QString & | m_tmpDirName | 
| pappso::UiMonitorInterface & | m_uiMonitor | 
| std::map< QString, MsRunPeptideListSp > | m_msfileList | 
| AlignmentMethodSp | msp_alignmentMethod | 
| QuantificationMethodSp | msp_quantificationMethod | 
| std::map< QString, ProteinSp > | m_proteinMap | 
| std::vector< PeptideSp > | m_peptideStore | 
| std::map< QString, PeptideSp > | m_peptideMap | 
| std::map< QString, MsRunGroupSp > | m_msRunGroupSpList | 
| std::shared_ptr< pappso::IonMobilityGrid > | msp_ionMobilityGrid | 
| pappso::ProjectParameters | m_projectParameters | 
| bool | m_isMatchBetweenRun = true | 
Definition at line 46 of file jsoninput.h.
| pappso::masschroq::JsonInput::JsonInput | ( | pappso::UiMonitorInterface & | ui_monitor, | 
| const QString & | tmp_dir_name, | ||
| const QJsonDocument & | json_doc ) | 
Default constructor
Definition at line 42 of file jsoninput.cpp.
References m_jsonDocument, m_tmpDirName, and m_uiMonitor.
| pappso::masschroq::JsonInput::~JsonInput | ( | ) | 
| void pappso::masschroq::JsonInput::action | ( | CborOutputStream & | cbor_output | ) | 
Definition at line 54 of file jsoninput.cpp.
References documentFind(), pappso::masschroq::CborOutputStream::getCborStreamWriter(), pappso::masschroq::Utils::getVersion(), m_isMatchBetweenRun, m_jsonDocument, m_projectParameters, msp_alignmentMethod, msp_quantificationMethod, pappso::ProjectParam::name, pappso::quantification, read_msrun_peptide_observations(), read_peptide_list(), read_protein_list(), readAction(), readAlignmentMethodSp(), readMzDataFiles(), readProjectParameters(), readQuantificationMethodSp(), pappso::masschroq::CborOutputStream::writeActionBegin(), pappso::masschroq::CborOutputStream::writeJsonObject(), and pappso::masschroq::CborOutputStream::writeProjectParameters().
      
  | 
  private | 
Definition at line 469 of file jsoninput.cpp.
References m_peptideStore, and m_uiMonitor.
Referenced by readAction().
      
  | 
  private | 
Definition at line 111 of file jsoninput.cpp.
References m_jsonDocument.
Referenced by action(), read_msrun_peptide_observations(), read_peptide_list(), read_protein_list(), readAction(), readAlignmentMethodSp(), readMzDataFiles(), and readQuantificationMethodSp().
      
  | 
  private | 
Definition at line 372 of file jsoninput.cpp.
References pappso::masschroq::Peptide::addObservedChargeState(), pappso::masschroq::Peptide::addObservedInMsRunSp(), pappso::masschroq::MsRunPeptideList::addPeptideScanNumberObservation(), pappso::masschroq::MsRunPeptideList::addPeptideSpectrumIndexObservation(), documentFind(), pappso::masschroq::MsRunPeptideList::getMsRunSp(), pappso::masschroq::Peptide::getPeptideLabelPtr(), m_msfileList, m_peptideMap, msp_ionMobilityGrid, pappso::masschroq::Peptide::populateIonMobilityGrid(), and pappso::PappsoException::qwhat().
Referenced by action().
      
  | 
  private | 
create a new peptide object and set its description
Definition at line 305 of file jsoninput.cpp.
References documentFind(), pappso::masschroq::Peptide::getId(), m_peptideMap, m_peptideStore, m_proteinMap, pappso::PeptideProFormaParser::parseString(), pappso::masschroq::Peptide::setJsonLabelList(), and pappso::masschroq::Peptide::setMods().
Referenced by action().
      
  | 
  private | 
create a new Protein object and set its description
add this protein to _p_proteins (: map<id, Protein *>)
Definition at line 272 of file jsoninput.cpp.
References documentFind(), pappso::masschroq::Protein::getId(), and m_proteinMap.
Referenced by action().
      
  | 
  private | 
Definition at line 494 of file jsoninput.cpp.
References computeIsotopologues(), documentFind(), pappso::masschroq::CborOutputStream::getCborStreamWriter(), m_msfileList, m_msRunGroupSpList, m_peptideStore, m_tmpDirName, m_uiMonitor, msp_alignmentMethod, msp_ionMobilityGrid, and msp_quantificationMethod.
Referenced by action().
      
  | 
  private | 
Definition at line 239 of file jsoninput.cpp.
References documentFind(), and msp_alignmentMethod.
Referenced by action().
      
  | 
  private | 
Definition at line 137 of file jsoninput.cpp.
References pappso::Enums::brukerTims, documentFind(), pappso::MsFileAccessor::getFileFormat(), pappso::MsFileAccessor::getMsRunIds(), pappso::MsFileAccessor::getMsRunReaderSPtrByRunId(), m_msfileList, m_uiMonitor, msp_ionMobilityGrid, pappso::MsFileAccessor::setPreferredFileReaderType(), pappso::UiMonitorInterface::setStatus(), pappso::Enums::tims_ms2, and pappso::Enums::unknown.
Referenced by action().
      
  | 
  private | 
Definition at line 594 of file jsoninput.cpp.
References m_jsonDocument, and m_projectParameters.
Referenced by action().
      
  | 
  private | 
Definition at line 248 of file jsoninput.cpp.
References documentFind(), and msp_quantificationMethod.
Referenced by action().
      
  | 
  private | 
Definition at line 94 of file jsoninput.h.
Referenced by action().
      
  | 
  private | 
Definition at line 77 of file jsoninput.h.
Referenced by JsonInput(), action(), documentFind(), and readProjectParameters().
      
  | 
  private | 
Definition at line 82 of file jsoninput.h.
Referenced by read_msrun_peptide_observations(), readAction(), and readMzDataFiles().
      
  | 
  private | 
Definition at line 88 of file jsoninput.h.
Referenced by readAction().
      
  | 
  private | 
Definition at line 87 of file jsoninput.h.
Referenced by read_msrun_peptide_observations(), and read_peptide_list().
      
  | 
  private | 
Definition at line 86 of file jsoninput.h.
Referenced by computeIsotopologues(), read_peptide_list(), and readAction().
      
  | 
  private | 
Definition at line 92 of file jsoninput.h.
Referenced by action(), and readProjectParameters().
      
  | 
  private | 
Definition at line 85 of file jsoninput.h.
Referenced by read_peptide_list(), and read_protein_list().
      
  | 
  private | 
Definition at line 78 of file jsoninput.h.
Referenced by JsonInput(), and readAction().
      
  | 
  private | 
Definition at line 79 of file jsoninput.h.
Referenced by JsonInput(), computeIsotopologues(), readAction(), and readMzDataFiles().
      
  | 
  private | 
Definition at line 83 of file jsoninput.h.
Referenced by action(), readAction(), and readAlignmentMethodSp().
      
  | 
  private | 
Definition at line 90 of file jsoninput.h.
Referenced by read_msrun_peptide_observations(), readAction(), and readMzDataFiles().
      
  | 
  private | 
Definition at line 84 of file jsoninput.h.
Referenced by action(), readAction(), and readQuantificationMethodSp().