OpenMS
QuantitativeExperimentalDesign.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Timo Sachsenberg $
6 // $Authors: Immanuel Luhn$
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
13 #include <OpenMS/FORMAT/TextFile.h>
16 
17 //#include <vector>
18 
19 namespace OpenMS
20 {
30  class OPENMS_DLLAPI QuantitativeExperimentalDesign :
31  public DefaultParamHandler
32  {
33 public:
34 
37 
38  //Destructor
40 
46  void applyDesign2Resolver(ProteinResolver & resolver, TextFile & file, StringList & fileNames);
47 
48 private:
51 
54 
55  void mergeConsensusMaps_(ConsensusMap & map, const String & experiment, StringList & file_paths);
56 
57  void mergeIDFiles_(std::vector<ProteinIdentification> & proteins, std::vector<PeptideIdentification> & peptides, const String & experiment, StringList & file_paths);
58 
59  void findRelevantFilePaths_(std::map<String, StringList> & design2FileBaseName, std::map<String, StringList> & design2FilePath, StringList & filePaths);
60 
62  void analyzeHeader_(UInt & expCol, UInt & fileCol, StringList & header);
63 
65  void getSeparator_(String & separator);
66 
68  void mapFiles2Design_(std::map<String, StringList> & experiments, TextFile & file);
69 
70 
71  };
72 
73 } // namespace OpenMS
74 
A container for consensus elements.
Definition: ConsensusMap.h:66
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:66
Helper class for peptide and protein quantification based on feature data annotated with IDs.
Definition: ProteinResolver.h:30
Merge files according to experimental design.
Definition: QuantitativeExperimentalDesign.h:32
void applyDesign2Resolver(ProteinResolver &resolver, TextFile &file, StringList &fileNames)
xxxxxxx
void findRelevantFilePaths_(std::map< String, StringList > &design2FileBaseName, std::map< String, StringList > &design2FilePath, StringList &filePaths)
void mapFiles2Design_(std::map< String, StringList > &experiments, TextFile &file)
helper class. which file name belongs to which experimental setting
void mergeConsensusMaps_(ConsensusMap &map, const String &experiment, StringList &file_paths)
QuantitativeExperimentalDesign & operator=(const QuantitativeExperimentalDesign &)
Not implemented.
void analyzeHeader_(UInt &expCol, UInt &fileCol, StringList &header)
Analyze header, which column represents filename and experimental setting.
QuantitativeExperimentalDesign(const QuantitativeExperimentalDesign &)
Not implemented.
void mergeIDFiles_(std::vector< ProteinIdentification > &proteins, std::vector< PeptideIdentification > &peptides, const String &experiment, StringList &file_paths)
QuantitativeExperimentalDesign()
Default constructor.
void getSeparator_(String &separator)
Helper class to get separator of the experimental design text file.
A more convenient string class.
Definition: String.h:34
This class provides some basic file handling methods for text files.
Definition: TextFile.h:21
unsigned int UInt
Unsigned integer type.
Definition: Types.h:68
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:44
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22