69const std::vector<qint64> &
75const std::map<QString, std::size_t> &
86 bool ms_run_to_read =
false;
96 ms_run_to_read =
true;
130 std::size_t spectrum_list_size = 0;
144 qDebug() <<
"spectrum count=" << spectrum_list_size;
153 std::size_t index_count = 0;
184 std::size_t given_index = 0;
185 std::map<QString, CvParam> spectrum_parameters;
186 std::map<QString, CvParam> scan_parameters;
205 qDebug() << given_index;
void initCborReader(QFile *pcborfile)
CborStreamReader * mpa_cborReader
void readSpectrumListAndLeave()
only the spectrum list of targeted msrun, then stop parsing
MsRunIdCstSPtr mcsp_msRunId
std::vector< qint64 > m_spectrumIndexPositionInFile
std::map< QString, std::size_t > m_nativeId2SpectrumIndexMap
virtual ~MzcborBuildIndexReader()
const std::vector< qint64 > & getSpectrumIndexPositionInFile() const
virtual void readMsrun() override
read only the targeted msrun
virtual void readCbor(QFile *cborp, pappso::UiMonitorInterface &monitor) override
read mzCBOR file
const std::map< QString, std::size_t > & getNativeId2SpectrumIndexMap() const
MzcborBuildIndexReader(const MsRunIdCstSPtr &msrun_id)
void readSpectrum(qint64 position_of_spectrum_in_file, std::size_t index_count)
read each spectrum in the targeted msrun (msrunId)
void readRoot(pappso::UiMonitorInterface &monitor)
read mzcbor to build an index
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
std::shared_ptr< const MsRunId > MsRunIdCstSPtr