232       unsigned fraction_group = 1; 
 
  233       unsigned fraction = 1; 
 
  234       std::string path = 
"UNKNOWN_FILE"; 
 
  247         const std::vector< std::vector < String > >& content,
 
  248         const std::map< String, Size >& sample_to_rowindex,
 
  249         const std::map< String, Size >& columnname_to_columnindex
 
  380     unsigned getSample(
unsigned fraction_group, 
unsigned label = 1);
 
A container for consensus elements.
Definition: ConsensusMap.h:66
 
Definition: ExperimentalDesign.h:229
 
MSFileSectionEntry()=default
 
Definition: ExperimentalDesign.h:241
 
SampleSection(const std::vector< std::vector< String > > &content, const std::map< String, Size > &sample_to_rowindex, const std::map< String, Size > &columnname_to_columnindex)
 
bool hasSample(const String &sample) const
 
std::vector< std::vector< String > > content_
Definition: ExperimentalDesign.h:290
 
std::map< String, Size > columnname_to_columnindex_
Definition: ExperimentalDesign.h:298
 
void addSample(const String &sample, const std::vector< String > &content={})
 
String getSampleName(unsigned sample_row) const
 
std::map< String, Size > sample_to_rowindex_
Definition: ExperimentalDesign.h:294
 
Size getContentSize() const
returns the number of entries in content_ member
 
std::set< String > getFactors() const
 
Size getFactorColIdx(const String &factor) const
 
std::set< String > getSamples() const
 
bool hasFactor(const String &factor) const
 
String getFactorValue(const String &sample_name, const String &factor) const
 
unsigned getSampleRow(const String &sample) const
 
String getFactorValue(unsigned sample_idx, const String &factor) const
 
Representation of an experimental design in OpenMS. Instances can be loaded with the ExperimentalDesi...
Definition: ExperimentalDesign.h:219
 
unsigned getNumberOfLabels() const
 
static void errorIfAlreadyExists(std::set< T > &container, T &item, const String &message)
 
unsigned getNumberOfFractions() const
 
static ExperimentalDesign fromConsensusMap(const ConsensusMap &c)
Extract experimental design from consensus map.
 
unsigned getSample(unsigned fraction_group, unsigned label=1)
 
std::map< std::vector< String >, std::set< String > > getUniqueSampleRowToSampleMapping() const
 
unsigned getNumberOfSamples() const
 
void setSampleSection(const SampleSection &sample_section)
 
std::vector< unsigned > getLabels_() const
 
bool sameNrOfMSFilesPerFraction() const
 
Size filterByBasenames(const std::set< String > &bns)
 
unsigned getNumberOfFractionGroups() const
 
std::map< unsigned int, std::vector< String > > getFractionToMSFilesMapping() const
return fraction index to file paths (ordered by fraction_group)
 
std::map< std::pair< String, unsigned >, unsigned > getPathLabelToFractionMapping(bool use_basename_only) const
return <file_path, label> to fraction mapping
 
std::map< std::pair< String, unsigned >, unsigned > getPathLabelToPrefractionationMapping(bool use_basename_only) const
 
std::map< std::vector< String >, std::set< unsigned > > getConditionToSampleMapping() const
return a condition (unique combination of sample section values except replicate) to Sample index map...
 
void setMSFileSection(const MSFileSection &msfile_section)
 
std::vector< MSFileSectionEntry > MSFileSection
Definition: ExperimentalDesign.h:301
 
std::map< std::pair< String, unsigned >, unsigned > getPathLabelToConditionMapping(bool use_basename_only) const
 
MSFileSection msfile_section_
Definition: ExperimentalDesign.h:428
 
static ExperimentalDesign fromIdentifications(const std::vector< ProteinIdentification > &proteins)
Extract experimental design from identifications.
 
std::map< std::pair< String, unsigned >, unsigned > pathLabelMapper_(bool, unsigned(*f)(const ExperimentalDesign::MSFileSectionEntry &)) const
Generic Mapper (Path, Label) -> f(row)
 
ExperimentalDesign(const MSFileSection &msfile_section, const SampleSection &sample_section)
 
bool isFractionated() const
 
std::map< String, unsigned > getSampleToPrefractionationMapping() const
 
std::vector< unsigned > getFractions_() const
 
const MSFileSection & getMSFileSection() const
 
std::vector< String > getFileNames_(bool basename) const
 
const ExperimentalDesign::SampleSection & getSampleSection() const
 
static ExperimentalDesign fromFeatureMap(const FeatureMap &f)
Extract experimental design from feature map.
 
std::vector< std::vector< std::pair< String, unsigned > > > getConditionToPathLabelVector() const
 
std::map< std::pair< String, unsigned >, unsigned > getPathLabelToSampleMapping(bool use_basename_only) const
return <file_path, label> to sample index mapping
 
SampleSection sample_section_
Definition: ExperimentalDesign.h:429
 
std::map< String, unsigned > getSampleToConditionMapping() const
 
ExperimentalDesign()=default
 
unsigned getNumberOfMSFiles() const
 
std::map< std::pair< String, unsigned >, unsigned > getPathLabelToFractionGroupMapping(bool use_basename_only) const
return <file_path, label> to fraction_group mapping
 
A container for features.
Definition: FeatureMap.h:80
 
A more convenient string class.
Definition: String.h:34
 
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:97
 
const double c
Definition: Constants.h:188
 
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19