43 #include <unordered_map>
77 static const char delim_ =
',';
78 static const char accdelim_ =
';';
79 static const char quote_ =
'"';
100 const std::vector<String>& spectra_paths);
111 std::map< std::pair< String, unsigned>,
unsigned> &run_map,
131 return sumIntensity_(intensities) / intensities.size();
140 const String& precursor_charge,
141 const String& search_score,
146 condition_(condition),
147 precursor_charge_(precursor_charge),
148 search_score_(search_score),
149 intensity_(intensity),
151 accession_(accession)
184 const std::set<String>& peptideseq_quantifyable,
199 const std::set<String>& accs,
200 const std::unordered_map<String, const IndProtGrp*>& accession_to_group)
const;
A container for consensus elements.
Definition: ConsensusMap.h:90
Definition: ExperimentalDesign.h:264
Representation of an experimental design in OpenMS. Instances can be loaded with the ExperimentalDesi...
Definition: ExperimentalDesign.h:243
float IntensityType
Intensity type.
Definition: Peak2D.h:62
double CoordinateType
Coordinate type (of the position)
Definition: Peak2D.h:64
Bundles multiple (e.g. indistinguishable) proteins in a group.
Definition: ProteinIdentification.h:118
A more convenient string class.
Definition: String.h:60
This class provides some basic file handling methods for text files.
Definition: TextFile.h:47
Definition: TriqlerFile.h:135
String intensity_
Definition: TriqlerFile.h:173
String search_score_
Definition: TriqlerFile.h:172
String toString() const
as string
String condition_
Definition: TriqlerFile.h:170
String sequence_
Definition: TriqlerFile.h:174
TriqlerLine_(TriqlerLine_ &&m)=default
friend bool operator<(const TriqlerLine_ &l, const TriqlerLine_ &r)
Definition: TriqlerFile.h:161
TriqlerLine_(const TriqlerLine_ &m)=default
String accession_
Definition: TriqlerFile.h:175
TriqlerLine_(const String &run, const String &condition, const String &precursor_charge, const String &search_score, const String &intensity, const String &sequence, const String &accession)
Definition: TriqlerFile.h:137
String precursor_charge_
Definition: TriqlerFile.h:171
String run_
Definition: TriqlerFile.h:169
File adapter for Triqler files.
Definition: TriqlerFile.h:58
~TriqlerFile()=default
Destructor.
TriqlerFile()=default
Default constructor.
OpenMS::Peak2D::IntensityType sumIntensity_(const std::set< OpenMS::Peak2D::IntensityType > &intensities) const
Definition: TriqlerFile.h:119
std::vector< std::vector< unsigned > > consensus_feature_labels
Definition: TriqlerFile.h:90
static bool checkUnorderedContent_(const std::vector< String > &first, const std::vector< String > &second)
void constructFile_(TextFile &csv_out, const std::set< String > &peptideseq_quantifyable, const MapSequenceToLines_ &peptideseq_to_line) const
static void checkConditionLFQ_(const ExperimentalDesign::SampleSection &sampleSection, const String &condition)
OpenMS::Peak2D::CoordinateType Coordinate
Definition: TriqlerFile.h:74
std::map< String, std::set< TriqlerLine_ > > MapSequenceToLines_
Definition: TriqlerFile.h:178
static const String na_string_
Definition: TriqlerFile.h:76
std::vector< std::vector< Intensity > > consensus_feature_intensities
Definition: TriqlerFile.h:88
std::vector< BaseFeature > features
Definition: TriqlerFile.h:91
std::vector< std::vector< String > > consensus_feature_filenames
Definition: TriqlerFile.h:87
static std::unordered_map< OpenMS::String, const IndProtGrp * > getAccessionToGroupMap_(const IndProtGrps &ind_prots)
TriqlerFile::AggregatedConsensusInfo aggregateInfo_(const ConsensusMap &consensus_map, const std::vector< String > &spectra_paths)
bool isQuantifyable_(const std::set< String > &accs, const std::unordered_map< String, const IndProtGrp * > &accession_to_group) const
std::vector< std::vector< Coordinate > > consensus_feature_retention_times
Definition: TriqlerFile.h:89
static void assembleRunMap_(std::map< std::pair< String, unsigned >, unsigned > &run_map, const ExperimentalDesign &design)
OpenMS::Peak2D::IntensityType meanIntensity_(const std::set< OpenMS::Peak2D::IntensityType > &intensities) const
Definition: TriqlerFile.h:129
OpenMS::Peak2D::IntensityType Intensity
Definition: TriqlerFile.h:73
void storeLFQ(const String &filename, const ConsensusMap &consensus_map, const ExperimentalDesign &design, const StringList &reannotate_filenames, const String &condition)
store label free experiment
Definition: TriqlerFile.h:86
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
OpenMS::ProteinIdentification::ProteinGroup IndProtGrp
Definition: MSstatsFile.h:49
std::vector< IndProtGrp > IndProtGrps
Definition: MSstatsFile.h:50