libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
psmfilescanprocessandcopy.h
Go to the documentation of this file.
1/**
2 * \file pappsomspp/processing/cbor/psm/psmfilescanprocessandcopy.h
3 * \date 15/07/2025
4 * \author Olivier Langella
5 * \brief PSM file reader designed to parallelize scan process and then copy the results in PSM cbor
6 * output stream
7 */
8
9/*******************************************************************************
10 * Copyright (c) 2025 Olivier Langella <Olivier.Langella@universite-paris-saclay.fr>.
11 *
12 * This file is part of PAPPSOms-tools.
13 *
14 * PAPPSOms-tools 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 * PAPPSOms-tools 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 PAPPSOms-tools. If not, see <http://www.gnu.org/licenses/>.
26 *
27 ******************************************************************************/
28#pragma once
29
30#include "psmfilescanprocess.h"
31#include "../cborstreamwriter.h"
32
33
34namespace pappso
35{
36namespace cbor
37{
38namespace psm
39{
40
41/**
42 * @brief Basic PSM file reader to process scan (parallelized scan processing) and write a new
43 * resulting PSM file
44 */
46{
47 public:
48 /**
49 * Default constructor
50 */
51 PsmFileScanProcessAndCopy(std::size_t buffer_scan_size,
52 CborStreamWriter *cbor_output_p,
53 const QString &operation);
54
55 /**
56 * Destructor
57 */
59
60 void close() override;
61
62
63 protected:
64 void informationsReady(pappso::UiMonitorInterface &monitor) override;
65 void logReady(pappso::UiMonitorInterface &monitor) override;
66 void parameterMapReady(pappso::UiMonitorInterface &monitor) override;
67 void fastaFilesReady(pappso::UiMonitorInterface &monitor) override;
68 void proteinMapReady(pappso::UiMonitorInterface &monitor) override;
69
71
72 void sampleStarted(pappso::UiMonitorInterface &monitor) override;
73
74 void sampleFinished(pappso::UiMonitorInterface &monitor) override;
75
76
77 void sampleListStarted(pappso::UiMonitorInterface &monitor) override;
78 void sampleListFinished(pappso::UiMonitorInterface &monitor) override;
79
80 protected:
82 QString m_operation;
83};
84
85} // namespace psm
86} // namespace cbor
87} // namespace pappso
void sampleStarted(pappso::UiMonitorInterface &monitor) override
void fastaFilesReady(pappso::UiMonitorInterface &monitor) override
void sampleFinished(pappso::UiMonitorInterface &monitor) override
PsmFileScanProcessAndCopy(std::size_t buffer_scan_size, CborStreamWriter *cbor_output_p, const QString &operation)
void sampleListStarted(pappso::UiMonitorInterface &monitor) override
void sampleListFinished(pappso::UiMonitorInterface &monitor) override
void proteinMapReady(pappso::UiMonitorInterface &monitor) override
void informationsReady(pappso::UiMonitorInterface &monitor) override
void processBufferScanDone(pappso::UiMonitorInterface &monitor) override
void parameterMapReady(pappso::UiMonitorInterface &monitor) override
void logReady(pappso::UiMonitorInterface &monitor) override
PsmFileScanProcess(std::size_t buffer_scan_size)
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39