49                                                  const QFileInfo &sage_json_file)
 
   62      QDir::setCurrent(sage_json_file.absolutePath());
 
   71        QObject::tr(
"reading Sage json file %1").arg(sage_json_file.absoluteFilePath()));
 
   97                                      .arg(other_err.
qwhat()));
 
 
  111  if(!mfile.open(QFile::ReadOnly))
 
  114        QObject::tr(
"Unable to read Sage JSON file %1").arg(
m_sageJsonFile.absoluteFilePath()));
 
  116  QByteArray iContents = mfile.readAll();
 
  118  QJsonParseError parseError;
 
  119  m_jsonData = QJsonDocument::fromJson(iContents, &parseError);
 
  120  if(parseError.error != QJsonParseError::NoError)
 
  124                                             .arg(parseError.offset)
 
  125                                             .arg(parseError.errorString()));
 
  128  QJsonValue mzml_value = 
m_jsonData.object().value(
"mzml_paths");
 
  130  if(mzml_value.isNull())
 
  133        QObject::tr(
"Sage JSON file %1 does not contain mzml_paths")
 
  136  for(
const QJsonValue &value : 
m_jsonData.object().value(
"mzml_paths").toArray())
 
  138      qDebug() << value.toString();
 
  142        {QFileInfo(value.toString()).fileName(), QFileInfo(value.toString()).absoluteFilePath()});
 
  149  QJsonObject sage_object = 
m_jsonData.object();
 
  152  QJsonObject database = sage_object.value(
"database").toObject();
 
  154  m_decoyTag      = database.value(
"decoy_tag").toString();
 
 
excetion to use when an item type is not recognized
 
virtual const QString & qwhat() const
 
virtual void setStatus(const QString &status)=0
current status of the process
 
static QString getVersion()
 
SageFileReader(pappso::UiMonitorInterface *p_monitor, pappso::cbor::CborStreamWriter *p_output, const QFileInfo &sage_json_file)
 
std::map< QString, QString > m_mapFilePath2MsRunSp
 
pappso::cbor::CborStreamWriter * mp_cborWriter
 
QStringList m_targetFastaFile
 
QString getMsRunSpWithFileName(const QString &msrun_filename) const
 
const QJsonDocument & getJsonDocument() const
 
virtual ~SageFileReader()
 
const QFileInfo m_sageJsonFile
 
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...