99 unsigned fraction_group = 1;
100 unsigned fraction = 1;
101 std::string path =
"UNKNOWN_FILE";
113 const std::vector< std::vector < String > >& content,
114 const std::map< unsigned, Size >& sample_to_rowindex,
115 const std::map< String, Size >& columnname_to_columnindex
119 std::set< unsigned > getSamples()
const;
122 std::set< String > getFactors()
const;
125 bool hasSample(
unsigned sample)
const;
128 bool hasFactor(
const String &factor)
const;
131 String getFactorValue(
unsigned sample,
const String &factor)
const;
134 Size getFactorColIdx(
const String &factor)
const;
168 std::map<unsigned int, std::vector<String> > getFractionToMSFilesMapping()
const;
172 std::vector<std::vector<std::pair<String, unsigned>>> getSampleWOReplicatesToMSFilesMapping()
const;
179 std::map<std::vector<String>, std::set<unsigned>> getConditionToSampleMapping()
const;
183 std::map< std::pair< String, unsigned >,
unsigned> getPathLabelToConditionMapping(
bool)
const;
187 std::map<unsigned, unsigned> getSampleToConditionMapping()
const;
190 std::map< std::pair< String, unsigned >,
unsigned> getPathLabelToSampleMapping(
bool)
const;
193 std::map< std::pair< String, unsigned >,
unsigned> getPathLabelToFractionMapping(
bool)
const;
196 std::map< std::pair< String, unsigned >,
unsigned> getPathLabelToFractionGroupMapping(
bool)
const;
199 unsigned getNumberOfSamples()
const;
202 unsigned getNumberOfFractions()
const;
205 unsigned getNumberOfLabels()
const;
208 unsigned getNumberOfMSFiles()
const;
212 unsigned getNumberOfFractionGroups()
const;
215 unsigned getSample(
unsigned fraction_group,
unsigned label = 1);
219 bool isFractionated()
const;
222 bool sameNrOfMSFilesPerFraction()
const;
231 static ExperimentalDesign fromIdentifications(
const std::vector<ProteinIdentification>& proteins);
236 std::vector< String > getFileNames_(
bool basename)
const;
239 std::vector<unsigned> getLabels_()
const;
242 std::vector<unsigned> getFractions_()
const;
245 std::map< std::pair< String, unsigned >,
unsigned> pathLabelMapper_(
253 static void errorIfAlreadyExists(std::set<T> &container, T &item,
const String &message);
A more convenient string class.
Definition: String.h:58
A container for features.
Definition: FeatureMap.h:93
MSFileSection msfile_section_
Definition: ExperimentalDesign.h:258
A container for consensus elements.
Definition: ConsensusMap.h:75
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
std::map< unsigned, Size > sample_to_rowindex_
Definition: ExperimentalDesign.h:144
Representation of the Experimental Design in OpenMS. Instances can be loaded via the ExperimentalDesi...
Definition: ExperimentalDesign.h:85
Definition: ExperimentalDesign.h:95
std::map< String, Size > columnname_to_columnindex_
Definition: ExperimentalDesign.h:148
SampleSection sample_section_
Definition: ExperimentalDesign.h:259
Definition: ExperimentalDesign.h:106
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
std::vector< std::vector< String > > content_
Definition: ExperimentalDesign.h:140
std::vector< MSFileSectionEntry > MSFileSection
Definition: ExperimentalDesign.h:151