43 #include <unordered_map>
70 const bool is_isotope_label_type,
71 const String& bioreplicate,
73 const String& retention_time_summarization_method);
80 const String& bioreplicate,
83 const String& retention_time_summarization_method);
90 static const char delim_ =
',';
91 static const char accdelim_ =
';';
92 static const char quote_ =
'"';
113 const std::vector<String>& spectra_paths);
130 std::map< std::pair< String, unsigned>,
unsigned> &run_map,
150 return sumIntensity_(intensities) / intensities.size();
160 const String& _precursor_charge,
161 const String& _fragment_ion,
162 const String& _frag_charge,
163 const String& _isotope_label_type,
165 const String& _bioreplicate,
168 ): has_fraction_(_has_fraction),
169 accession_(_accession),
170 sequence_(_sequence),
171 precursor_charge_(_precursor_charge),
172 fragment_ion_(_fragment_ion),
173 frag_charge_(_frag_charge),
174 isotope_label_type_(_isotope_label_type),
175 condition_(_condition),
176 bioreplicate_(_bioreplicate),
178 fraction_(_fraction) {}
190 + delim + precursor_charge_
191 + delim + fragment_ion_
192 + delim + frag_charge_
193 + delim + isotope_label_type_
195 + delim + bioreplicate_
197 + (this->has_fraction_ ? delim +
String(fraction_) :
"");
228 const String& _precursor_charge,
231 const String& _bioreplicate,
234 const String& _techrepmixture,
236 ): accession_(_accession),
237 sequence_(_sequence),
238 precursor_charge_(_precursor_charge),
240 condition_(_condition),
241 bioreplicate_(_bioreplicate),
244 techrepmixture_(_techrepmixture),
245 fraction_(_fraction) {}
257 + delim + precursor_charge_
260 + delim + bioreplicate_
263 + delim + techrepmixture_
264 + delim +
String(fraction_);
292 template <
class LineType>
294 const bool rt_summarization_manual,
296 const std::set<String>& peptideseq_quantifyable,
297 LineType & peptideseq_to_prefix_to_intensities)
const;
311 const std::set<String>& accs,
312 const std::unordered_map<String, const IndProtGrp*>& accession_to_group)
const;
A container for consensus elements.
Definition: ConsensusMap.h:92
Definition: ExperimentalDesign.h:267
Representation of an experimental design in OpenMS. Instances can be loaded with the ExperimentalDesi...
Definition: ExperimentalDesign.h:245
Definition: MSstatsFile.h:154
String toString() const
Definition: MSstatsFile.h:185
const String & sequence() const
Definition: MSstatsFile.h:181
String condition_
Definition: MSstatsFile.h:216
String sequence_
Definition: MSstatsFile.h:211
MSstatsLine_(bool _has_fraction, const String &_accession, const String &_sequence, const String &_precursor_charge, const String &_fragment_ion, const String &_frag_charge, const String &_isotope_label_type, const String &_condition, const String &_bioreplicate, const String &_run, const String &_fraction)
Definition: MSstatsFile.h:156
bool has_fraction_
Definition: MSstatsFile.h:209
const String & precursor_charge() const
Definition: MSstatsFile.h:182
String isotope_label_type_
Definition: MSstatsFile.h:215
String frag_charge_
Definition: MSstatsFile.h:214
const String & accession() const
Definition: MSstatsFile.h:180
String bioreplicate_
Definition: MSstatsFile.h:217
friend bool operator<(const MSstatsLine_ &l, const MSstatsLine_ &r)
Definition: MSstatsFile.h:200
String accession_
Definition: MSstatsFile.h:210
String fraction_
Definition: MSstatsFile.h:219
const String & run() const
Definition: MSstatsFile.h:183
String fragment_ion_
Definition: MSstatsFile.h:213
String precursor_charge_
Definition: MSstatsFile.h:212
String run_
Definition: MSstatsFile.h:218
Definition: MSstatsFile.h:223
MSstatsTMTLine_(const String &_accession, const String &_sequence, const String &_precursor_charge, const String &_channel, const String &_condition, const String &_bioreplicate, const String &_run, const String &_mixture, const String &_techrepmixture, const String &_fraction)
Definition: MSstatsFile.h:225
String channel_
Definition: MSstatsFile.h:279
String toString() const
Definition: MSstatsFile.h:252
const String & sequence() const
Definition: MSstatsFile.h:248
String condition_
Definition: MSstatsFile.h:280
String sequence_
Definition: MSstatsFile.h:277
const String & precursor_charge() const
Definition: MSstatsFile.h:249
String mixture_
Definition: MSstatsFile.h:283
const String & accession() const
Definition: MSstatsFile.h:247
String bioreplicate_
Definition: MSstatsFile.h:281
String techrepmixture_
Definition: MSstatsFile.h:284
String accession_
Definition: MSstatsFile.h:276
friend bool operator<(const MSstatsTMTLine_ &l, const MSstatsTMTLine_ &r)
Definition: MSstatsFile.h:267
String fraction_
Definition: MSstatsFile.h:285
const String & run() const
Definition: MSstatsFile.h:250
String precursor_charge_
Definition: MSstatsFile.h:278
String run_
Definition: MSstatsFile.h:282
File adapter for MSstats files.
Definition: MSstatsFile.h:58
OpenMS::Peak2D::IntensityType sumIntensity_(const std::set< OpenMS::Peak2D::IntensityType > &intensities) const
Definition: MSstatsFile.h:138
void constructFile_(const String &retention_time_summarization_method, const bool rt_summarization_manual, TextFile &csv_out, const std::set< String > &peptideseq_quantifyable, LineType &peptideseq_to_prefix_to_intensities) const
std::vector< std::vector< unsigned > > consensus_feature_labels
Definition: MSstatsFile.h:103
static bool checkUnorderedContent_(const std::vector< String > &first, const std::vector< String > &second)
OpenMS::Peak2D::CoordinateType Coordinate
Definition: MSstatsFile.h:87
static void checkConditionLFQ_(const ExperimentalDesign::SampleSection &sampleSection, const String &bioreplicate, const String &condition)
MSstatsFile::AggregatedConsensusInfo aggregateInfo_(const ConsensusMap &consensus_map, const std::vector< String > &spectra_paths)
static const String na_string_
Definition: MSstatsFile.h:89
std::vector< std::vector< Intensity > > consensus_feature_intensities
Definition: MSstatsFile.h:101
std::vector< BaseFeature > features
Definition: MSstatsFile.h:104
std::vector< std::vector< String > > consensus_feature_filenames
Definition: MSstatsFile.h:100
static std::unordered_map< OpenMS::String, const IndProtGrp * > getAccessionToGroupMap_(const IndProtGrps &ind_prots)
void storeISO(const String &filename, const ConsensusMap &consensus_map, const ExperimentalDesign &design, const StringList &reannotate_filenames, const String &bioreplicate, const String &condition, const String &mixture, const String &retention_time_summarization_method)
store isobaric experiment (MSstatsTMT)
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: MSstatsFile.h:102
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: MSstatsFile.h:148
MSstatsFile()=default
Default constructor.
~MSstatsFile()=default
Destructor.
static void checkConditionISO_(const ExperimentalDesign::SampleSection &sampleSection, const String &bioreplicate, const String &condition, const String &mixture)
OpenMS::Peak2D::IntensityType Intensity
Definition: MSstatsFile.h:86
void storeLFQ(const String &filename, const ConsensusMap &consensus_map, const ExperimentalDesign &design, const StringList &reannotate_filenames, const bool is_isotope_label_type, const String &bioreplicate, const String &condition, const String &retention_time_summarization_method)
store label free experiment (MSstats)
Definition: MSstatsFile.h:99
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:131
A more convenient string class.
Definition: String.h:60
This class provides some basic file handling methods for text files.
Definition: TextFile.h:47
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48
std::vector< IndProtGrp > IndProtGrps
Definition: MSstatsFile.h:50