17 #include <unordered_map>
44 const bool is_isotope_label_type,
45 const String& bioreplicate,
47 const String& retention_time_summarization_method);
54 const String& bioreplicate,
57 const String& retention_time_summarization_method);
64 static const char delim_ =
',';
65 static const char accdelim_ =
';';
66 static const char quote_ =
'"';
87 const std::vector<String>& spectra_paths);
104 std::map< std::pair< String, unsigned>,
unsigned> &run_map,
124 return sumIntensity_(intensities) / intensities.size();
134 const String& _precursor_charge,
135 const String& _fragment_ion,
136 const String& _frag_charge,
137 const String& _isotope_label_type,
139 const String& _bioreplicate,
142 ): has_fraction_(_has_fraction),
143 accession_(_accession),
144 sequence_(_sequence),
145 precursor_charge_(_precursor_charge),
146 fragment_ion_(_fragment_ion),
147 frag_charge_(_frag_charge),
148 isotope_label_type_(_isotope_label_type),
149 condition_(_condition),
150 bioreplicate_(_bioreplicate),
152 fraction_(_fraction) {}
164 + delim + precursor_charge_
165 + delim + fragment_ion_
166 + delim + frag_charge_
167 + delim + isotope_label_type_
169 + delim + bioreplicate_
171 + (this->has_fraction_ ? delim +
String(fraction_) :
"");
202 const String& _precursor_charge,
205 const String& _bioreplicate,
208 const String& _techrepmixture,
210 ): accession_(_accession),
211 sequence_(_sequence),
212 precursor_charge_(_precursor_charge),
214 condition_(_condition),
215 bioreplicate_(_bioreplicate),
218 techrepmixture_(_techrepmixture),
219 fraction_(_fraction) {}
231 + delim + precursor_charge_
234 + delim + bioreplicate_
237 + delim + techrepmixture_
238 + delim +
String(fraction_);
266 template <
class LineType>
268 const bool rt_summarization_manual,
270 const std::set<String>& peptideseq_quantifyable,
271 LineType & peptideseq_to_prefix_to_intensities)
const;
285 const std::set<String>& accs,
286 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
Definition: MSstatsFile.h:128
String toString() const
Definition: MSstatsFile.h:159
const String & sequence() const
Definition: MSstatsFile.h:155
String condition_
Definition: MSstatsFile.h:190
String sequence_
Definition: MSstatsFile.h:185
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:130
bool has_fraction_
Definition: MSstatsFile.h:183
const String & precursor_charge() const
Definition: MSstatsFile.h:156
String isotope_label_type_
Definition: MSstatsFile.h:189
String frag_charge_
Definition: MSstatsFile.h:188
const String & accession() const
Definition: MSstatsFile.h:154
String bioreplicate_
Definition: MSstatsFile.h:191
friend bool operator<(const MSstatsLine_ &l, const MSstatsLine_ &r)
Definition: MSstatsFile.h:174
String accession_
Definition: MSstatsFile.h:184
String fraction_
Definition: MSstatsFile.h:193
const String & run() const
Definition: MSstatsFile.h:157
String fragment_ion_
Definition: MSstatsFile.h:187
String precursor_charge_
Definition: MSstatsFile.h:186
String run_
Definition: MSstatsFile.h:192
Definition: MSstatsFile.h:197
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:199
String channel_
Definition: MSstatsFile.h:253
String toString() const
Definition: MSstatsFile.h:226
const String & sequence() const
Definition: MSstatsFile.h:222
String condition_
Definition: MSstatsFile.h:254
String sequence_
Definition: MSstatsFile.h:251
const String & precursor_charge() const
Definition: MSstatsFile.h:223
String mixture_
Definition: MSstatsFile.h:257
const String & accession() const
Definition: MSstatsFile.h:221
String bioreplicate_
Definition: MSstatsFile.h:255
String techrepmixture_
Definition: MSstatsFile.h:258
String accession_
Definition: MSstatsFile.h:250
friend bool operator<(const MSstatsTMTLine_ &l, const MSstatsTMTLine_ &r)
Definition: MSstatsFile.h:241
String fraction_
Definition: MSstatsFile.h:259
const String & run() const
Definition: MSstatsFile.h:224
String precursor_charge_
Definition: MSstatsFile.h:252
String run_
Definition: MSstatsFile.h:256
File adapter for MSstats files.
Definition: MSstatsFile.h:32
OpenMS::Peak2D::IntensityType sumIntensity_(const std::set< OpenMS::Peak2D::IntensityType > &intensities) const
Definition: MSstatsFile.h:112
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:77
static bool checkUnorderedContent_(const std::vector< String > &first, const std::vector< String > &second)
OpenMS::Peak2D::CoordinateType Coordinate
Definition: MSstatsFile.h:61
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:63
std::vector< std::vector< Intensity > > consensus_feature_intensities
Definition: MSstatsFile.h:75
std::vector< BaseFeature > features
Definition: MSstatsFile.h:78
std::vector< std::vector< String > > consensus_feature_filenames
Definition: MSstatsFile.h:74
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:76
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:122
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:60
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:73
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
This class provides some basic file handling methods for text files.
Definition: TextFile.h:21
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:44
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
std::vector< IndProtGrp > IndProtGrps
Definition: MSstatsFile.h:24