17 #include <unordered_map>
51 static const char delim_ =
',';
52 static const char accdelim_ =
';';
53 static const char quote_ =
'"';
74 const std::vector<String>& spectra_paths);
85 std::map< std::pair< String, unsigned>,
unsigned> &run_map,
105 return sumIntensity_(intensities) / intensities.size();
114 const String& precursor_charge,
115 const String& search_score,
120 condition_(condition),
121 precursor_charge_(precursor_charge),
122 search_score_(search_score),
123 intensity_(intensity),
125 accession_(accession)
158 const std::set<String>& peptideseq_quantifyable,
173 const std::set<String>& accs,
174 const std::unordered_map<String, const IndProtGrp*>& accession_to_group)
const;
A container for consensus elements.
Definition: ConsensusMap.h:66
Definition: ExperimentalDesign.h:241
Representation of an experimental design in OpenMS. Instances can be loaded with the ExperimentalDesi...
Definition: ExperimentalDesign.h:219
float IntensityType
Intensity type.
Definition: Peak2D.h:36
double CoordinateType
Coordinate type (of the position)
Definition: Peak2D.h:38
Bundles multiple (e.g. indistinguishable) proteins in a group.
Definition: ProteinIdentification.h:105
A more convenient string class.
Definition: String.h:34
Definition: TextFile.h:21
Definition: TriqlerFile.h:109
String intensity_
Definition: TriqlerFile.h:147
String search_score_
Definition: TriqlerFile.h:146
String toString() const
as string
String condition_
Definition: TriqlerFile.h:144
String sequence_
Definition: TriqlerFile.h:148
TriqlerLine_(TriqlerLine_ &&m)=default
friend bool operator<(const TriqlerLine_ &l, const TriqlerLine_ &r)
Definition: TriqlerFile.h:135
TriqlerLine_(const TriqlerLine_ &m)=default
String accession_
Definition: TriqlerFile.h:149
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:111
String precursor_charge_
Definition: TriqlerFile.h:145
String run_
Definition: TriqlerFile.h:143
File adapter for Triqler files.
Definition: TriqlerFile.h:32
~TriqlerFile()=default
Destructor.
TriqlerFile()=default
Default constructor.
OpenMS::Peak2D::IntensityType sumIntensity_(const std::set< OpenMS::Peak2D::IntensityType > &intensities) const
Definition: TriqlerFile.h:93
std::vector< std::vector< unsigned > > consensus_feature_labels
Definition: TriqlerFile.h:64
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:48
std::map< String, std::set< TriqlerLine_ > > MapSequenceToLines_
Definition: TriqlerFile.h:152
static const String na_string_
Definition: TriqlerFile.h:50
std::vector< std::vector< Intensity > > consensus_feature_intensities
Definition: TriqlerFile.h:62
std::vector< BaseFeature > features
Definition: TriqlerFile.h:65
std::vector< std::vector< String > > consensus_feature_filenames
Definition: TriqlerFile.h:61
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:63
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:103
OpenMS::Peak2D::IntensityType Intensity
Definition: TriqlerFile.h:47
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:60
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:44
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
OpenMS::ProteinIdentification::ProteinGroup IndProtGrp
Definition: MSstatsFile.h:23
std::vector< IndProtGrp > IndProtGrps
Definition: MSstatsFile.h:24