|
OpenMS
2.5.0
|
Go to the documentation of this file.
43 #include <unordered_map>
66 void storeLFQ(
const String& filename,
70 const bool is_isotope_label_type,
71 const String& bioreplicate,
73 const String& retention_time_summarization_method);
76 void storeISO(
const String& filename,
80 const String& bioreplicate,
83 const String& retention_time_summarization_method);
91 static const char delim_ =
',';
92 static const char accdelim_ =
';';
93 static const char quote_ =
'"';
114 const std::vector<String>& spectra_paths);
130 static void assembleRunMap_(
131 std::map< std::pair< String, unsigned>,
unsigned> &run_map,
137 static bool checkUnorderedContent_(
const std::vector< String> &first,
const std::vector< String > &second);
151 return sumIntensity_(intensities) / intensities.size();
161 const String& _precursor_charge,
162 const String& _fragment_ion,
163 const String& _frag_charge,
164 const String& _isotope_label_type,
166 const String& _bioreplicate,
169 ): has_fraction_(_has_fraction),
170 accession_(_accession),
171 sequence_(_sequence),
172 precursor_charge_(_precursor_charge),
173 fragment_ion_(_fragment_ion),
174 frag_charge_(_frag_charge),
175 isotope_label_type_(_isotope_label_type),
176 condition_(_condition),
177 bioreplicate_(_bioreplicate),
179 fraction_(_fraction) {}
191 + delim + precursor_charge_
192 + delim + fragment_ion_
193 + delim + frag_charge_
194 + delim + isotope_label_type_
196 + delim + bioreplicate_
198 + (this->has_fraction_ ? delim +
String(fraction_) :
"");
229 const String& _precursor_charge,
232 const String& _bioreplicate,
235 const String& _techrepmixture,
237 ): accession_(_accession),
238 sequence_(_sequence),
239 precursor_charge_(_precursor_charge),
241 condition_(_condition),
242 bioreplicate_(_bioreplicate),
245 techrepmixture_(_techrepmixture),
246 fraction_(_fraction) {}
258 + delim + precursor_charge_
261 + delim + bioreplicate_
264 + delim + techrepmixture_
265 + delim +
String(fraction_);
293 template <
class LineType>
294 void constructFile_(
const String& retention_time_summarization_method,
295 const bool rt_summarization_manual,
297 const std::set<String>& peptideseq_quantifyable,
298 LineType & peptideseq_to_prefix_to_intensities)
const;
303 static std::unordered_map<OpenMS::String, const IndProtGrp* > getAccessionToGroupMap_(
const IndProtGrps& ind_prots);
311 bool isQuantifyable_(
312 const std::set<String>& accs,
313 const std::unordered_map<String, const IndProtGrp*>& accession_to_group)
const;
std::vector< std::vector< unsigned > > consensus_feature_labels
Definition: MSstatsFile.h:104
friend bool operator<(const MSstatsLine_ &l, const MSstatsLine_ &r)
Definition: MSstatsFile.h:201
String sequence_
Definition: MSstatsFile.h:212
String toString() const
Definition: MSstatsFile.h:253
OpenMS consensus map format (.consensusXML)
Definition: FileTypes.h:67
Definition: MSstatsFile.h:99
String accession_
Definition: MSstatsFile.h:277
String run_
Definition: MSstatsFile.h:283
This class provides some basic file handling methods for text files.
Definition: TextFile.h:46
OpenMS::Peak2D::IntensityType meanIntensity_(const std::set< OpenMS::Peak2D::IntensityType > &intensities) const
Definition: MSstatsFile.h:149
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)
const ExperimentalDesign::SampleSection & getSampleSection() const
String bioreplicate_
Definition: MSstatsFile.h:282
friend bool operator<(const MSstatsTMTLine_ &l, const MSstatsTMTLine_ &r)
Definition: MSstatsFile.h:268
Definition: ExperimentalDesign.h:106
const String & precursor_charge() const
Definition: MSstatsFile.h:250
String frag_charge_
Definition: MSstatsFile.h:215
std::vector< BaseFeature > features
Definition: MSstatsFile.h:105
String channel_
Definition: MSstatsFile.h:280
const String & sequence() const
Definition: MSstatsFile.h:182
String fraction_
Definition: MSstatsFile.h:286
String fragment_ion_
Definition: MSstatsFile.h:214
String isotope_label_type_
Definition: MSstatsFile.h:216
String condition_
Definition: MSstatsFile.h:281
static const String na_string_
Definition: MSstatsFile.h:90
const String & accession() const
Definition: MSstatsFile.h:248
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:157
Base class for TOPP applications.
Definition: TOPPBase.h:144
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
This class provides Input functionality for ConsensusMaps and Output functionality for alignments and...
Definition: ConsensusXMLFile.h:61
Definition: MSstatsFile.h:223
String precursor_charge_
Definition: MSstatsFile.h:279
File adapter for MzTab files.
Definition: MSstatsFile.h:57
#define OPENMS_LOG_FATAL_ERROR
Macro to be used if fatal error are reported (processing stops)
Definition: LogStream.h:450
String toString() const
Definition: MSstatsFile.h:186
String techrepmixture_
Definition: MSstatsFile.h:285
bool has_fraction_
Definition: MSstatsFile.h:210
Definition: MSstatsFile.h:154
A container for consensus elements.
Definition: ConsensusMap.h:79
const String & precursor_charge() const
Definition: MSstatsFile.h:183
static FileTypes::Type getType(const String &filename)
Tries to determine the file type (by name or content)
const String & run() const
Definition: MSstatsFile.h:184
Bundles multiple (e.g. indistinguishable) proteins in a group.
Definition: ProteinIdentification.h:81
String fraction_
Definition: MSstatsFile.h:220
void load(const String &filename, ConsensusMap &map)
Loads a consensus map from file and calls updateRanges.
OpenMS::Peak2D::IntensityType Intensity
Definition: MSstatsFile.h:87
String sequence_
Definition: MSstatsFile.h:278
Type
Actual file types enum.
Definition: FileTypes.h:58
const String & accession() const
Definition: MSstatsFile.h:181
String accession_
Definition: MSstatsFile.h:211
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:226
String run_
Definition: MSstatsFile.h:219
String precursor_charge_
Definition: MSstatsFile.h:213
std::vector< std::vector< Intensity > > consensus_feature_intensities
Definition: MSstatsFile.h:102
A more convenient string class.
Definition: String.h:58
OpenMS::Peak2D::IntensityType sumIntensity_(const std::set< OpenMS::Peak2D::IntensityType > &intensities) const
Definition: MSstatsFile.h:139
std::vector< std::vector< String > > consensus_feature_filenames
Definition: MSstatsFile.h:101
Representation of the Experimental Design in OpenMS. Instances can be loaded via the ExperimentalDesi...
Definition: ExperimentalDesign.h:85
String bioreplicate_
Definition: MSstatsFile.h:218
OpenMS::Peak2D::CoordinateType Coordinate
Definition: MSstatsFile.h:88
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
std::vector< std::vector< Coordinate > > consensus_feature_retention_times
Definition: MSstatsFile.h:103
std::vector< IndProtGrp > IndProtGrps
Definition: MSstatsFile.h:50
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)
const String & sequence() const
Definition: MSstatsFile.h:249
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
String condition_
Definition: MSstatsFile.h:217
String mixture_
Definition: MSstatsFile.h:284
const String & run() const
Definition: MSstatsFile.h:251
static ExperimentalDesign load(const String &tsv_file, bool require_spectra_files)
Loads an experimental design from a tabular separated file.