libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
sagefilereader.h
Go to the documentation of this file.
1
/**
2
* \file input/sage/sagefilereader.h
3
* \date 11/10/2024
4
* \author Olivier Langella
5
* \brief read data files from Sage output containin multiple samples
6
*/
7
8
/*******************************************************************************
9
* Copyright (c) 2024 Olivier Langella
10
*<Olivier.Langella@universite-paris-saclay.fr>.
11
*
12
* This file is part of i2MassChroQ.
13
*
14
* i2MassChroQ is free software: you can redistribute it and/or modify
15
* it under the terms of the GNU General Public License as published by
16
* the Free Software Foundation, either version 3 of the License, or
17
* (at your option) any later version.
18
*
19
* i2MassChroQ is distributed in the hope that it will be useful,
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
* GNU General Public License for more details.
23
*
24
* You should have received a copy of the GNU General Public License
25
* along with i2MassChroQ. If not, see <http://www.gnu.org/licenses/>.
26
*
27
******************************************************************************/
28
29
#pragma once
30
#include "
pappsomspp/core/fasta/fastahandlerinterface.h
"
31
#include "
pappsomspp/core/processing/uimonitor/uimonitorinterface.h
"
32
#include <QJsonDocument>
33
#include "
pappsomspp/core/processing/cbor/cborstreamwriter.h
"
34
#include <QFileInfo>
35
36
namespace
pappso
37
{
38
namespace
cbor
39
{
40
namespace
psm
41
{
42
43
/**
44
* @todo write docs
45
*/
46
class
SageFileReader
47
{
48
public
:
49
/**
50
* Default constructor
51
*/
52
SageFileReader
(
pappso::UiMonitorInterface
*p_monitor,
53
pappso::cbor::CborStreamWriter
*p_output,
54
const
QFileInfo &sage_json_file);
55
56
/**
57
* Destructor
58
*/
59
virtual
~SageFileReader
();
60
61
const
QJsonDocument &
getJsonDocument
()
const
;
62
QString
getMsRunSpWithFileName
(
const
QString &msrun_filename)
const
;
63
64
private
:
65
void
readJson
();
66
67
private
:
68
const
QFileInfo
m_sageJsonFile
;
69
QJsonDocument
m_jsonData
;
70
71
std::map<QString, QString>
m_mapFilePath2MsRunSp
;
72
QString
m_sageVersion
;
73
pappso::cbor::CborStreamWriter
*
mp_cborWriter
;
74
QString
m_decoyTag
;
75
bool
m_generateDecoy
=
false
;
76
QStringList
m_targetFastaFile
;
77
};
78
79
}
// namespace psm
80
}
// namespace cbor
81
}
// namespace pappso
cborstreamwriter.h
pappso::UiMonitorInterface
Definition
uimonitorinterface.h:50
pappso::cbor::CborStreamWriter
Definition
cborstreamwriter.h:41
pappso::cbor::psm::SageFileReader
Definition
sagefilereader.h:47
pappso::cbor::psm::SageFileReader::m_mapFilePath2MsRunSp
std::map< QString, QString > m_mapFilePath2MsRunSp
Definition
sagefilereader.h:71
pappso::cbor::psm::SageFileReader::mp_cborWriter
pappso::cbor::CborStreamWriter * mp_cborWriter
Definition
sagefilereader.h:73
pappso::cbor::psm::SageFileReader::m_targetFastaFile
QStringList m_targetFastaFile
Definition
sagefilereader.h:76
pappso::cbor::psm::SageFileReader::m_generateDecoy
bool m_generateDecoy
Definition
sagefilereader.h:75
pappso::cbor::psm::SageFileReader::readJson
void readJson()
Definition
sagefilereader.cpp:108
pappso::cbor::psm::SageFileReader::m_sageVersion
QString m_sageVersion
Definition
sagefilereader.h:72
pappso::cbor::psm::SageFileReader::m_jsonData
QJsonDocument m_jsonData
Definition
sagefilereader.h:69
pappso::cbor::psm::SageFileReader::m_decoyTag
QString m_decoyTag
Definition
sagefilereader.h:74
pappso::cbor::psm::SageFileReader::getMsRunSpWithFileName
QString getMsRunSpWithFileName(const QString &msrun_filename) const
Definition
sagefilereader.cpp:167
pappso::cbor::psm::SageFileReader::getJsonDocument
const QJsonDocument & getJsonDocument() const
Definition
sagefilereader.cpp:160
pappso::cbor::psm::SageFileReader::~SageFileReader
virtual ~SageFileReader()
Definition
sagefilereader.cpp:102
pappso::cbor::psm::SageFileReader::m_sageJsonFile
const QFileInfo m_sageJsonFile
Definition
sagefilereader.h:68
fastahandlerinterface.h
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
uimonitorinterface.h
pappsomspp
core
processing
cbor
psm
sage
sagefilereader.h
Generated on Thu Nov 6 2025 12:27:26 for libpappsomspp by
1.9.8