libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
sagetsvhandler.cpp
Go to the documentation of this file.
1/**
2 * \file input/sage/sagereader.h
3 * \date 21/08/2024
4 * \author Olivier Langella
5 * \brief read data files from Sage output
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
30#include "sagetsvhandler.h"
38
39
40namespace pappso
41{
42namespace cbor
43{
44namespace psm
45{
46
48 const SageReader &sage_reader,
49 PsmProteinMap &psm_protein_map)
50 : m_sageReader(sage_reader), m_psmProteinMap(psm_protein_map)
51{
52 mp_monitor = p_monitor;
55 m_decoyTag = sage_reader.getDecoyTag();
56}
57
61
62void
64{
65 for(auto it_sample_map : m_sampleMap)
66 {
67 writeSample(it_sample_map.second);
68 }
69}
70
71void
73{
74 if(m_line.charge != 0)
75 recordLine();
77}
78
79void
83
84void
85SageTsvHandler::setCell(const OdsCell &cell)
86{
87 if(m_lineNumber == 0)
88 {
89 // header
90 QString tag = cell.getStringValue();
91 if(tag == "psm_id")
92 {
94 }
95 else if(tag == "peptide")
96 {
98 }
99 else if(tag == "proteins")
100 {
102 }
103 else if(tag == "num_proteins")
104 {
106 }
107 else if(tag == "filename")
108 {
110 }
111 else if(tag == "scannr")
112 {
114 }
115 else if(tag == "rank")
116 {
118 }
119 else if(tag == "label")
120 {
122 }
123 else if(tag == "expmass")
124 {
126 }
127
128 else if(tag == "calcmass")
129 {
131 }
132 else if(tag == "charge")
133 {
135 }
136 else if(tag == "peptide_len")
137 {
139 }
140 else if(tag == "missed_cleavages")
141 {
143 }
144 else if(tag == "semi_enzymatic")
145 {
147 }
148 else if(tag == "isotope_error")
149 {
151 }
152 else if(tag == "precursor_ppm")
153 {
155 }
156 else if(tag == "fragment_ppm")
157 {
159 }
160 else if(tag == "hyperscore")
161 {
163 }
164 else if(tag == "delta_next")
165 {
167 }
168 else if(tag == "delta_best")
169 {
171 }
172 else if(tag == "rt")
173 {
174 m_columnTypeList.push_back(Columns::rt);
175 }
176 else if(tag == "aligned_rt")
177 {
179 }
180 else if(tag == "predicted_rt")
181 {
183 }
184 else if(tag == "delta_rt_model")
185 {
187 }
188 else if(tag == "ion_mobility")
189 {
191 }
192 else if(tag == "predicted_mobility")
193 {
195 }
196 else if(tag == "delta_mobility")
197 {
199 }
200 else if(tag == "matched_peaks")
201 {
203 }
204 else if(tag == "longest_b")
205 {
207 }
208 else if(tag == "longest_y")
209 {
211 }
212 else if(tag == "longest_y_pct")
213 {
215 }
216 else if(tag == "matched_intensity_pct")
217 {
219 }
220 else if(tag == "scored_candidates")
221 {
223 }
224 else if(tag == "poisson")
225 {
227 }
228 else if(tag == "sage_discriminant_score")
229 {
231 }
232 else if(tag == "posterior_error")
233 {
235 }
236 else if(tag == "spectrum_q")
237 {
239 }
240 else if(tag == "peptide_q")
241 {
243 }
244 else if(tag == "protein_q")
245 {
247 }
248 else if(tag == "ms2_intensity")
249 {
251 }
252 else
253 {
254 throw pappso::ExceptionNotPossible(QObject::tr("column \"%1\" not defined").arg(tag));
255 }
256 }
257 else
258 {
259 if(m_columnNumber >= m_columnTypeList.size())
260 {
262 QObject::tr("the value %1 is out of range").arg(cell.getStringValue()));
263 }
265 switch(column_type)
266 {
267 case Columns::psm_id:
268 break;
269 case Columns::peptide:
270 parsePeptide(cell.toString());
271 break;
273 parseProteins(cell.toString());
274 break;
276 if((std::size_t)cell.getDoubleValue() != (std::size_t)m_proteinList.size())
277 {
279 QObject::tr("column \"num_proteins\"!=%1").arg(m_proteinList.size()));
280 }
281 break;
283 parseMsRunFilename(cell.toString());
284 break;
285 case Columns::scannr:
286 parseSpectrumStringId(cell.toString());
287 break;
288 case Columns::rank:
289 m_line.rank = cell.getDoubleValue();
290 break;
291 case Columns::label:
292 m_line.label = cell.getDoubleValue();
293 break;
294 case Columns::expmass:
295 m_line.expmass = cell.getDoubleValue();
296 break;
298 m_line.calcmass = cell.getDoubleValue();
299 break;
300 case Columns::charge:
301 m_line.charge = cell.getDoubleValue();
302 break;
304 m_line.peptide_len = cell.getDoubleValue();
305 break;
307 m_line.missed_cleavages = cell.getDoubleValue();
308 break;
310 m_line.semi_enzymatic = cell.getDoubleValue();
311 break;
313 m_line.isotope_error = cell.getDoubleValue();
314 break;
315
317 m_line.precursor_ppm = cell.getDoubleValue();
318 break;
320 m_line.fragment_ppm = cell.getDoubleValue();
321 break;
323 m_line.hyperscore = cell.getDoubleValue();
324 break;
326 m_line.delta_next = cell.getDoubleValue();
327 break;
329 m_line.delta_best = cell.getDoubleValue();
330 break;
331 case Columns::rt:
332 m_line.rt = cell.getDoubleValue() * 60; // to convert retention time in seconds
333 break;
335 m_line.aligned_rt = cell.getDoubleValue();
336 break;
338 m_line.predicted_rt = cell.getDoubleValue();
339 break;
341 m_line.delta_rt_model = cell.getDoubleValue();
342 break;
344 m_line.ion_mobility = cell.getDoubleValue();
345 break;
347 m_line.predicted_mobility = cell.getDoubleValue();
348 break;
350 m_line.delta_mobility = cell.getDoubleValue();
351 break;
353 m_line.matched_peaks = cell.getDoubleValue();
354 break;
356 m_line.longest_b = cell.getDoubleValue();
357 break;
359 m_line.longest_y = cell.getDoubleValue();
360 break;
362 m_line.longest_y_pct = cell.getDoubleValue();
363 break;
365 m_line.matched_intensity_pct = cell.getDoubleValue();
366 break;
368 m_line.scored_candidates = cell.getDoubleValue();
369 break;
370 case Columns::poisson:
371 m_line.poisson = cell.getDoubleValue();
372 break;
374 m_line.sage_discriminant_score = cell.getDoubleValue();
375 break;
377 m_line.posterior_error = cell.getDoubleValue();
378 break;
380 m_line.spectrum_q = cell.getDoubleValue();
381 break;
383 m_line.peptide_q = cell.getDoubleValue();
384 break;
386 m_line.protein_q = cell.getDoubleValue();
387 break;
389 m_line.ms2_intensity = cell.getDoubleValue();
390 break;
391 default:
392 qDebug() << "m_line.calcmass=" << m_line.calcmass;
394 QObject::tr("column type %1 not implemented").arg((std::uint8_t)column_type));
395 break;
396 }
397
398 /*
399
400 2333 TMISDSDYTEFENFTK
401 GRMZM2G018197_P01;GRMZM2G068952_P01;GRMZM5G822976_P01 3
402 20120906_balliau_extract_1_A01_urnb-1.mzML controllerType=0
403 controllerNumber=1 scan=12542 1 1 1926.8225 1926.8193 2 16 0 0
404 0.0 1.6471838 1.9796097 54.06803492297634 28.049970383419556 0.0 38.192993
405 0.76385987 0.7671368 0.0032769442 0.0 0.0 0.0 16 2 14 0.875 32.54396 380
406 -13.375352220427656 1.1570586 -34.13482 0.00016041065 0.00022231363
407 0.00040124074 1271951.1
408 */
409 }
411}
412
413void
415{
416 m_columnNumber = 0;
417 msp_peptide = nullptr;
418 m_proteinList.clear();
419 m_line = Line();
420}
421
422void
426void
427SageTsvHandler::startSheet(const QString &sheet_name [[maybe_unused]])
428{
429 m_columnNumber = 0;
430 m_lineNumber = 0;
431 mp_monitor->setStatus(QObject::tr("reading Sage TSV file"));
432
433 if(mp_monitor->shouldIstop())
434 {
435 throw pappso::ExceptionInterrupted(QObject::tr("Sage TSV data reading process interrupted"));
436 }
437}
438
439void
440SageTsvHandler::parsePeptide(const QString &peptide_str)
441{
442 qDebug();
443 QString peptide_str_verif = peptide_str;
444 // fixed modifications :
446 {
447 qDebug() << modif.strModification;
448 qDebug() << modif.modification->getAccession();
449 peptide_str_verif = peptide_str_verif.replace(
450 modif.strModification, QString("[%1]").arg(modif.modification->getAccession()));
451 }
452 // variable modifications :
454 {
455 qDebug() << modif.strModification;
456 qDebug() << modif.modification->getAccession();
457 peptide_str_verif = peptide_str_verif.replace(
458 modif.strModification, QString("[%1]").arg(modif.modification->getAccession()));
459 }
460
461 qDebug() << peptide_str_verif;
462 // LPMFGC[+57.0216]NDATQVYK
464 qDebug();
465 // variable modifications :
466 /*
467 setVariableModifications(peptide_sp,
468 peptide_line.peptide_string_list.at(6));
469*/
470 qDebug() << msp_peptide.get()->toProForma();
471}
472
473
474void
475SageTsvHandler::parseProteins(const QString &proteins_str)
476{
477 m_proteinList.clear();
478 m_proteinList = proteins_str.split(";");
479 for(QString accession : m_proteinList)
480 {
481
482 PsmProtein psm_protein;
483 psm_protein.protein_sp = std::make_shared<pappso::Protein>(accession, "");
484 psm_protein.isTarget = true;
485 if(accession.startsWith(m_decoyTag))
486 {
487 psm_protein.isTarget = false;
488 }
489
490 m_psmProteinMap.insert(psm_protein);
491 }
492}
493
494bool
495SageTsvHandler::parseSpectrumStringId(const QString &spectrum_string_id)
496{
497 m_spectrumNativeId = spectrum_string_id;
498 qDebug() << spectrum_string_id;
499 // controllerType=0 controllerNumber=1 scan=176056
500
501 bool is_ok = false;
502 QStringList scan_list = spectrum_string_id.split("scan=");
503 if(scan_list.size() == 2)
504 {
505 // we bet that there is a scan number, easy to parse
506 m_spectrumIndex = scan_list.at(1).toULongLong(&is_ok);
507 if(m_spectrumIndex > 0)
509 }
510 if(is_ok == false)
511 { /*
512 if(msp_previousMsrun != msp_msrun)
513 {
514 mp_monitor->setStatus(
515 QObject::tr("Reading mz data file %1").arg(msp_msrun.get()->getFileName()));
516 msp_previousMsrun = msp_msrun;
517 }
518
519 pappso::MsRunReader *msrunreader_p = msp_msrun.get()->getMsRunReaderSPtr().get();
520 if(msrunreader_p->getMsRunId()->getMsDataFormat() == pappso::MsDataFormat::brukerTims)
521 {
522 m_spectrumIndex = spectrum_string_id.toInt() * 2 - 1;
523 }
524 else
525 {
526 m_spectrumIndex =
527 msrunreader_p->spectrumStringIdentifier2SpectrumIndex(spectrum_string_id);
528 }*/
529 }
530
531 qDebug() << spectrum_string_id;
532 return is_ok;
533}
534
535void
536SageTsvHandler::parseMsRunFilename(const QString &msrun_filename)
537{
538
539
540 // find the sample :
541 auto it_insert = m_sampleMap.insert({msrun_filename, {}});
542 mp_currentSample = &(it_insert.first->second);
543 if(it_insert.second)
544 {
545 // new sample
546 it_insert.first->second.name = msrun_filename;
547 QCborMap ms_file;
548 QCborMap identification_file;
549
550 it_insert.first->second.cbor_core_sample.insert(QString("name"),
551 QFileInfo(msrun_filename).baseName());
552
553 // identification_file_list
554 QCborArray identification_file_list;
555 identification_file.insert(QString("name"), m_sageReader.getmJsonAbsoluteFilePath());
556 identification_file_list.push_back(identification_file);
557 it_insert.first->second.cbor_core_sample.insert(QString("identification_file_list"),
558 identification_file_list);
559
560
561 ms_file.insert(QString("name"), m_sageReader.getMzmlPath(msrun_filename));
562 it_insert.first->second.cbor_core_sample.insert(QString("peaklist_file"), ms_file);
563 }
564
565 /*
566 msp_msrun = m_sageReader.getSageFileReader().getMsRunSpWithFileName(msrun_filename);
567 qDebug() << msp_msrun.get()->getFileName();
568
569 msp_identificationSageJsonFileSp =
570 m_sageReader.getSageFileReader().getIdentificationSageJsonFileSpWithFileName(msrun_filename);
571
572 mp_identificationGroup =
573 m_sageReader.getSageFileReader().getIdentificationGroupPtrWithFileName(msrun_filename);
574 qDebug() << msp_msrun.get()->getFileName();
575 */
576}
577
578void
580{
581 qDebug();
582
583 for(const QString &accession : m_proteinList)
584 {
585 PsmProtein psm_protein;
586 psm_protein.protein_sp = std::make_shared<pappso::Protein>(accession, "");
587
588 auto it = m_psmProteinMap.insert(psm_protein);
589 it.first->second.cborEval.insert(QString("protein_q"), m_line.protein_q);
590 }
591 /*
592 PeptideEvidence pe(msp_msrun.get(), m_spectrumIndex, true);
593 pe.setCharge(m_line.charge);
594 pe.setChecked(true);
595 pe.setExperimentalMass(m_line.expmass);
596 pe.setPeptideXtpSp(msp_peptide);
597 pe.setIdentificationDataSource(msp_identificationSageJsonFileSp.get());
598 pe.setIdentificationEngine(m_identificationEngine);
599 pe.setRetentionTime(m_line.rt);
600 pe.setParam(PeptideEvidenceParam::tandem_hyperscore, m_line.hyperscore);
601 pe.setParam(PeptideEvidenceParam::sage_sage_discriminant_score,
602 m_line.sage_discriminant_score);
603 pe.setParam(PeptideEvidenceParam::sage_peptide_q, m_line.peptide_q);
604 pe.setParam(PeptideEvidenceParam::sage_posterior_error, m_line.posterior_error);
605 pe.setParam(PeptideEvidenceParam::sage_spectrum_q, m_line.spectrum_q);
606 pe.setParam(PeptideEvidenceParam::sage_predicted_rt, m_line.predicted_rt);
607 pe.setParam(PeptideEvidenceParam::sage_isotope_error, m_line.isotope_error);
608
609
610 PeptideMatch peptide_match;
611 // peptide_match.setStart(mz_peptide_evidence.start);
612 peptide_match.setPeptideEvidenceSp(
613 msp_identificationSageJsonFileSp.get()->getPeptideEvidenceStore().getInstance(&pe));
614 */
615
616 // find the scan in sample
617 auto it_insert = mp_currentSample->scan_map.insert({m_spectrumNativeId, Scan()});
618 Scan *current_cbor_scan_p = &(it_insert.first->second);
619 if(it_insert.second)
620 {
621 // new scan
622 QCborMap &scan_id = it_insert.first->second.cbor_id;
623 scan_id.insert(QString("index"), (qint64)m_spectrumIndex);
624 scan_id.insert(QString("native_id"), m_spectrumNativeId);
625
626 QCborMap &scan_ms2 = it_insert.first->second.cbor_ms2;
627 scan_ms2.insert(QString("rt"), m_line.rt);
628
629 QCborMap &scan_precursor = it_insert.first->second.cbor_precursor;
630 scan_precursor.insert(QString("z"), m_line.charge);
631 scan_precursor.insert(QString("mz"), m_line.expmass);
632 }
633
634 Psm one_psm;
635 one_psm.peptide_sequence_li = msp_peptide.get()->getSequenceLi();
636 one_psm.proforma = msp_peptide.get()->toProForma();
637 one_psm.protein_list = m_proteinList;
638
639
640 one_psm.cbor_eval.insert(QString("aligned_rt"), m_line.aligned_rt);
641 one_psm.cbor_eval.insert(QString("calcmass"), m_line.calcmass);
642 one_psm.cbor_eval.insert(QString("delta_best"), m_line.delta_best);
643 one_psm.cbor_eval.insert(QString("delta_mobility"), m_line.delta_mobility);
644 one_psm.cbor_eval.insert(QString("delta_next"), m_line.delta_next);
645 one_psm.cbor_eval.insert(QString("delta_rt_model"), m_line.delta_rt_model);
646 one_psm.cbor_eval.insert(QString("fragment_ppm"), m_line.fragment_ppm);
647 one_psm.cbor_eval.insert(QString("hyperscore"), m_line.hyperscore);
648 one_psm.cbor_eval.insert(QString("ion_mobility"), m_line.ion_mobility);
649 one_psm.cbor_eval.insert(QString("isotope_error"), m_line.isotope_error);
650 one_psm.cbor_eval.insert(QString("label"), m_line.label);
651 one_psm.cbor_eval.insert(QString("longest_b"), (qint64)m_line.longest_b);
652 one_psm.cbor_eval.insert(QString("longest_y"), (qint64)m_line.longest_y);
653 one_psm.cbor_eval.insert(QString("longest_y_pct"), m_line.longest_y_pct);
654 one_psm.cbor_eval.insert(QString("matched_intensity_pct"), m_line.matched_intensity_pct);
655 one_psm.cbor_eval.insert(QString("matched_peaks"), (qint64)m_line.matched_peaks);
656 one_psm.cbor_eval.insert(QString("missed_cleavages"), m_line.missed_cleavages);
657 one_psm.cbor_eval.insert(QString("ms2_intensity"), m_line.ms2_intensity);
658 one_psm.cbor_eval.insert(QString("peptide_len"), (qint64)m_line.peptide_len);
659 one_psm.cbor_eval.insert(QString("peptide_q"), m_line.peptide_q);
660 one_psm.cbor_eval.insert(QString("poisson"), m_line.poisson);
661 one_psm.cbor_eval.insert(QString("posterior_error"), m_line.posterior_error);
662 one_psm.cbor_eval.insert(QString("precursor_ppm"), m_line.precursor_ppm);
663 one_psm.cbor_eval.insert(QString("predicted_mobility"), m_line.predicted_mobility);
664 one_psm.cbor_eval.insert(QString("predicted_rt"), m_line.predicted_rt);
665 one_psm.cbor_eval.insert(QString("protein_q"), m_line.protein_q);
666 one_psm.cbor_eval.insert(QString("rank"), m_line.rank);
667 one_psm.cbor_eval.insert(QString("sage_discriminant_score"), m_line.sage_discriminant_score);
668 one_psm.cbor_eval.insert(QString("scored_candidates"), (qint64)m_line.scored_candidates);
669 one_psm.cbor_eval.insert(QString("semi_enzymatic"), m_line.semi_enzymatic);
670 one_psm.cbor_eval.insert(QString("spectrum_q"), m_line.spectrum_q);
671
672 current_cbor_scan_p->psm_list.emplace_back(one_psm);
673
674
675 std::size_t progress = m_lineNumber / 10000;
676 if(progress > m_progressIndex)
677 {
678 if(mp_monitor->shouldIstop())
679 {
681 QObject::tr("Sage TSV data reading process interrupted"));
682 }
683 m_progressIndex = progress;
684 mp_monitor->setStatus(QString("%1K ").arg(m_progressIndex * 10));
685 }
686}
687
688void
690{
691 m_sageReader.getCborStreamWriter().startMap();
692 m_sageReader.getCborStreamWriter().append("name");
693 one_sample.cbor_core_sample.value("name").toCbor(m_sageReader.getCborStreamWriter());
694
695 m_sageReader.getCborStreamWriter().append("identification_file_list");
696 one_sample.cbor_core_sample.value("identification_file_list")
697 .toCbor(m_sageReader.getCborStreamWriter());
698
699
700 m_sageReader.getCborStreamWriter().append("peaklist_file");
701 one_sample.cbor_core_sample.value("peaklist_file").toCbor(m_sageReader.getCborStreamWriter());
702 //"scan_list": [
703
704 m_sageReader.getCborStreamWriter().append("scan_list");
705 m_sageReader.getCborStreamWriter().startArray(one_sample.scan_map.size());
706 for(auto &it_scan : one_sample.scan_map)
707 {
708 writeScan(it_scan.second);
709 }
710 m_sageReader.getCborStreamWriter().endArray();
711
712
713 m_sageReader.getCborStreamWriter().endMap();
714}
715
716void
718{
719 m_sageReader.getCborStreamWriter().startMap();
720 m_sageReader.getCborStreamWriter().append("id");
721 QCborValue(one_scan.cbor_id).toCbor(m_sageReader.getCborStreamWriter());
722 m_sageReader.getCborStreamWriter().append("precursor");
723 QCborValue(one_scan.cbor_precursor).toCbor(m_sageReader.getCborStreamWriter());
724 m_sageReader.getCborStreamWriter().append("ms2");
725 QCborValue(one_scan.cbor_ms2).toCbor(m_sageReader.getCborStreamWriter());
726
727 m_sageReader.getCborStreamWriter().append("psm_list");
728 m_sageReader.getCborStreamWriter().startArray(one_scan.psm_list.size());
729 for(auto &it_psm : one_scan.psm_list)
730 {
731 writePsm(it_psm);
732 }
733 m_sageReader.getCborStreamWriter().endArray();
734
735 m_sageReader.getCborStreamWriter().endMap();
736}
737
738void
740{
741 m_sageReader.getCborStreamWriter().startMap();
742 m_sageReader.getCborStreamWriter().append("proforma");
743 m_sageReader.getCborStreamWriter().append(one_psm.proforma);
744 m_sageReader.getCborStreamWriter().append("protein_list");
745
746 QCborArray cbor_protein_list;
747 for(const QString &accession : one_psm.protein_list)
748 {
749 // qWarning() << "accession=" << accession;
750 QCborMap cbor_protein;
751 cbor_protein.insert(QString("accession"), accession);
752
753
754 // start/end positions
755 QString protein_sequence =
756 QString(m_psmProteinMap.getByAccession(accession).protein_sp.get()->getSequence())
757 .replace("L", "I");
758 int position = protein_sequence.indexOf(one_psm.peptide_sequence_li);
759
760 QCborArray positions;
761 while(position >= 0)
762 {
763 positions.push_back(position);
764 position = protein_sequence.indexOf(one_psm.peptide_sequence_li, position + 1);
765 }
766
767 cbor_protein.insert(QString("positions"), positions);
768
769 cbor_protein_list.append(cbor_protein);
770 }
771
772
773 QCborValue(cbor_protein_list).toCbor(m_sageReader.getCborStreamWriter());
774
775 m_sageReader.getCborStreamWriter().append("eval");
776 m_sageReader.getCborStreamWriter().startMap();
777 m_sageReader.getCborStreamWriter().append("sage");
778 QCborValue(one_psm.cbor_eval).toCbor(m_sageReader.getCborStreamWriter());
779 m_sageReader.getCborStreamWriter().endMap();
780
781 m_sageReader.getCborStreamWriter().endMap();
782}
783
784
785} // namespace psm
786} // namespace cbor
787} // namespace pappso
static PeptideSp parseString(const QString &pepstr)
store PsmProtein in a map with accession as key
std::vector< SageModification > getStaticModificationList() const
std::vector< SageModification > getVariableModificationList() const
std::vector< SageReader::SageModification > m_staticModificationList
void parseProteins(const QString &proteins_str)
virtual void endSheet() override
pappso::UiMonitorInterface * mp_monitor
virtual void startSheet(const QString &sheet_name) override
std::vector< SageReader::SageModification > m_variableModificationList
void parsePeptide(const QString &peptide_str)
bool parseSpectrumStringId(const QString &spectrum_string_id)
void writeSample(const Sample &one_sample)
virtual void setCell(const OdsCell &cell) override
void writePsm(const Psm &one_psm)
SageTsvHandler(pappso::UiMonitorInterface *p_monitor, const SageReader &sage_reader, PsmProteinMap &psm_protein_map)
void writeScan(const Scan &one_scan)
std::map< QString, Sample > m_sampleMap
virtual void endDocument() override
virtual void startLine() override
void parseMsRunFilename(const QString &msrun_filename)
virtual void endLine() override
std::vector< Columns > m_columnTypeList
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39
std::shared_ptr< Protein > protein_sp