|
OpenMS
2.5.0
|
Go to the documentation of this file.
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 void addSample(
unsigned sample,
const std::vector<String>& content = {});
126 std::set< String > getFactors()
const;
129 bool hasSample(
unsigned sample)
const;
132 bool hasFactor(
const String &factor)
const;
135 String getFactorValue(
unsigned sample,
const String &factor)
const;
138 Size getFactorColIdx(
const String &factor)
const;
173 std::map<std::vector<String>, std::set<unsigned>> getUniqueSampleRowToSampleMapping()
const;
177 std::map<unsigned, unsigned> getSampleToPrefractionationMapping()
const;
181 std::map<unsigned int, std::vector<String> > getFractionToMSFilesMapping()
const;
186 std::vector<std::vector<std::pair<String, unsigned>>> getConditionToPathLabelVector()
const;
189 std::map<std::vector<String>, std::set<unsigned>> getConditionToSampleMapping()
const;
198 std::map< std::pair< String, unsigned >,
unsigned> getPathLabelToPrefractionationMapping(
bool use_basename_only)
const;
202 std::map< std::pair< String, unsigned >,
unsigned> getPathLabelToConditionMapping(
bool use_basename_only)
const;
206 std::map<unsigned, unsigned> getSampleToConditionMapping()
const;
209 std::map< std::pair< String, unsigned >,
unsigned> getPathLabelToSampleMapping(
bool use_basename_only)
const;
212 std::map< std::pair< String, unsigned >,
unsigned> getPathLabelToFractionMapping(
bool use_basename_only)
const;
215 std::map< std::pair< String, unsigned >,
unsigned> getPathLabelToFractionGroupMapping(
bool use_basename_only)
const;
218 unsigned getNumberOfSamples()
const;
221 unsigned getNumberOfFractions()
const;
224 unsigned getNumberOfLabels()
const;
227 unsigned getNumberOfMSFiles()
const;
231 unsigned getNumberOfFractionGroups()
const;
234 unsigned getSample(
unsigned fraction_group,
unsigned label = 1);
238 bool isFractionated()
const;
241 bool sameNrOfMSFilesPerFraction()
const;
250 static ExperimentalDesign fromIdentifications(
const std::vector<ProteinIdentification>& proteins);
255 std::vector< String > getFileNames_(
bool basename)
const;
258 std::vector<unsigned> getLabels_()
const;
261 std::vector<unsigned> getFractions_()
const;
264 std::map< std::pair< String, unsigned >,
unsigned> pathLabelMapper_(
272 static void errorIfAlreadyExists(std::set<T> &container, T &item,
const String &message);
Base class for TOPP applications.
Definition: TOPPBase.h:144
Representation of the Experimental Design in OpenMS. Instances can be loaded via the ExperimentalDesi...
Definition: ExperimentalDesign.h:85
String & substitute(char from, char to)
Replaces all occurrences of the character from by the character to.
A container for all visual items of a TOPPAS workflow.
Definition: TOPPASScene.h:85
A more convenient string class.
Definition: String.h:58
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
static String getUniqueName(bool include_hostname=true)
Returns a string, consisting of date, time, hostname, process id, and a incrementing number....
bool hasPrefix(const String &string) const
true if String begins with string, false otherwise
static bool writable(const String &file)
Return true if the file is writable.
std::map< String, Size > columnname_to_columnindex_
Definition: ExperimentalDesign.h:152
static bool exists(const String &file)
Method used to test if a file exists.
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
std::vector< std::vector< String > > content_
Definition: ExperimentalDesign.h:144
Definition: ExperimentalDesign.h:106
static bool isDirectory(const String &path)
Return true if the given path specifies a directory.
A dictionary mapping string keys to lists of TOPPASResource objects.
Definition: TOPPASResources.h:55
void load(const QString &file_name)
Loads the dictionary from file file_name.
QString toQString() const
Conversion to Qt QString.
Definition: ExperimentalDesign.h:95
A container for consensus elements.
Definition: ConsensusMap.h:79
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
std::vector< MSFileSectionEntry > MSFileSection
Definition: ExperimentalDesign.h:155
A container for features.
Definition: FeatureMap.h:95
MSFileSection msfile_section_
Definition: ExperimentalDesign.h:277
SampleSection sample_section_
Definition: ExperimentalDesign.h:278
static String getTempDirectory()
The current OpenMS temporary data path (for temporary files)
static bool removeDirRecursively(const String &dir_name)
Removes the subdirectories of the specified directory (absolute path). Returns true if successful.
std::map< unsigned, Size > sample_to_rowindex_
Definition: ExperimentalDesign.h:148