diff --git a/src/core/automaticfilterparameters.h b/src/core/automaticfilterparameters.h index f9286bbfcc89e27834e8f214662445db36616625..e26f0fa7169e03c458b759ba7270735e73ac24d4 100644 --- a/src/core/automaticfilterparameters.h +++ b/src/core/automaticfilterparameters.h @@ -22,8 +22,7 @@ *implementation ******************************************************************************/ -#ifndef AUTOMATICFILTERPARAMETERS_H -#define AUTOMATICFILTERPARAMETERS_H +#pragma once #include <pappsomspp/types.h> class AutomaticFilterParameters @@ -37,9 +36,10 @@ class AutomaticFilterParameters void setFilterPeptideEvalue(pappso::pappso_double evalue); void setFilterProteinEvalue(pappso::pappso_double evalue); void setFilterMinimumPeptidePerMatch(unsigned int number); - + /** @brief filter on peptide reproducibility accross MS runs - * if a peptide is observed in less MS runs than this value, the peptide is not valid + * if a peptide is observed in less MS runs than this value, the peptide is + * not valid */ void setFilterPeptideObservedInLessSamplesThan(unsigned int number); void setFilterCrossSamplePeptideNumber(bool cross); @@ -61,5 +61,3 @@ class AutomaticFilterParameters unsigned int m_filter_peptide_observed_in_less_samples_than = 1; bool _filter_is_cross_sample_peptide_number = false; }; - -#endif // AUTOMATICFILTERPARAMETERS_H diff --git a/src/core/identification_sources/identificationdatasource.h b/src/core/identification_sources/identificationdatasource.h index 9e84003cc9a4b79d4c99e6baabd709ee5e082b4a..5f2bff0defe62a66180eefd76e9bf7d326ddb945 100644 --- a/src/core/identification_sources/identificationdatasource.h +++ b/src/core/identification_sources/identificationdatasource.h @@ -21,8 +21,7 @@ * Olivier Langella <Olivier.Langella@moulon.inra.fr> - initial API and *implementation ******************************************************************************/ -#ifndef IDENTIFICATIONDATASOURCE_H -#define IDENTIFICATIONDATASOURCE_H +#pragma once #include <pappsomspp/massspectrum/massspectrum.h> @@ -152,5 +151,3 @@ class IdentificationDataSource PeptideEvidenceStore _peptide_evidence_store; }; - -#endif // IDENTIFICATIONDATASOURCE_H diff --git a/src/output/masschroqml.cpp b/src/output/masschroqml.cpp index fef927dd3d38a42a371929ab676be25a9d2b022a..b0b711e9efb0b24701f6d338cc8c544f1d45ae2b 100644 --- a/src/output/masschroqml.cpp +++ b/src/output/masschroqml.cpp @@ -446,7 +446,10 @@ MassChroQml::writeAlignments() _output_stream->writeStartElement("align"); _output_stream->writeAttribute("group_id", "fractiona1"); _output_stream->writeAttribute("method_id", "my_ms2"); - _output_stream->writeAttribute("reference_data_id", "msruna1"); + std::vector<MsRunSp> msrun_list = + _sp_project.get()->getMsRunStore().getMsRunList(); + _output_stream->writeAttribute("reference_data_id", + msrun_list.front().get()->getXmlId()); _output_stream->writeEndElement(); //</alignments> _output_stream->writeEndElement(); diff --git a/src/output/masschroqprm.h b/src/output/masschroqprm.h index f3081a5e612c9dce09a4b852457dc83f47947996..0ad73cbb6dfa193969da4ac9d650a695b73f32ad 100644 --- a/src/output/masschroqprm.h +++ b/src/output/masschroqprm.h @@ -28,8 +28,7 @@ *implementation ******************************************************************************/ -#ifndef MASSCHROQPRM_H -#define MASSCHROQPRM_H +#pragma once #include <QXmlStreamWriter> #include <QFile> @@ -56,4 +55,3 @@ class MassChroqPrm IdentificationGroup *_p_identification_group; }; -#endif // MASSCHROQPRM_H