43 #include <unordered_set> 70 void insertRuns(std::vector<ProteinIdentification>&& prots,
71 std::vector<PeptideIdentification>&& peps);
72 void insertRuns(
const std::vector<ProteinIdentification>& prots,
73 const std::vector<PeptideIdentification>& peps);
84 std::vector<PeptideIdentification>& peps);
89 String getNewIdentifier_()
const;
99 bool checkOldRunConsistency_(
100 const std::vector<ProteinIdentification>& protRuns,
101 const String& experiment_type)
const;
109 bool checkOldRunConsistency_(
110 const std::vector<ProteinIdentification>& protRuns,
112 const String& experiment_type)
const;
116 void insertProteinIDs_(
117 std::vector<ProteinIdentification>&& old_protRuns
123 void updateAndMovePepIDs_(
124 std::vector<PeptideIdentification>&& pepIDs,
125 const std::map<String, Size>& runID_to_runIdx,
126 const std::vector<StringList>& originFiles,
131 void movePepIDsAndRefProteinsToResultFaster_(
132 std::vector<PeptideIdentification>&& pepIDs,
133 std::vector<ProteinIdentification>&& old_protRuns
153 bool filled_ =
false;
Representation of a protein identification run.
Definition: ProteinIdentification.h:74
const String & getAccession() const
returns the accession of the protein
std::vector< PeptideIdentification > pep_result_
the resulting new Peptide IDs
Definition: IDMergerAlgorithm.h:140
A more convenient string class.
Definition: String.h:58
ProteinIdentification prot_result_
the resulting new Protein IDs
Definition: IDMergerAlgorithm.h:137
Creates a new Protein ID run into which other runs can be inserted. Creates union of protein hits but...
Definition: IDMergerAlgorithm.h:61
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
static bool accessionEqual_(const ProteinHit &p1, const ProteinHit &p2)
Definition: IDMergerAlgorithm.h:145
std::map< String, Size > file_origin_to_idx_
to keep track of the mzML origins of spectra
Definition: IDMergerAlgorithm.h:156
static size_t accessionHash_(const ProteinHit &p)
Definition: IDMergerAlgorithm.h:142
std::unordered_set< ProteinHit, hash_type, equal_type > collected_protein_hits_
Definition: IDMergerAlgorithm.h:150
Representation of a protein hit.
Definition: ProteinHit.h:58
String id_
the new identifier string
Definition: IDMergerAlgorithm.h:159
bool(*)(const ProteinHit &, const ProteinHit &) equal_type
Definition: IDMergerAlgorithm.h:149
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:52
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
std::size_t(*)(const ProteinHit &) hash_type
Definition: IDMergerAlgorithm.h:148