|
OpenMS
2.5.0
|
Go to the documentation of this file.
50 #pragma clang diagnostic push
51 #pragma clang diagnostic ignored "-Wnon-virtual-dtor"
78 virtual bool isNull()
const = 0;
79 virtual void setNull(
bool b) = 0;
80 virtual String toCellString()
const = 0;
81 virtual void fromCellString(
const String&) = 0;
90 virtual bool isNaN()
const = 0;
91 virtual void setNaN() = 0;
92 virtual bool isInf()
const = 0;
93 virtual void setInf() = 0;
105 bool isNull()
const override;
107 void setNull(
bool b)
override;
122 bool isNull()
const override;
124 void setNull(
bool b)
override;
126 bool isNaN()
const override;
128 void setNaN()
override;
130 bool isInf()
const override;
132 void setInf()
override;
148 void set(
const double& value);
152 String toCellString()
const override;
154 void fromCellString(
const String& s)
override;
168 bool isNull()
const override;
170 void setNull(
bool b)
override;
172 String toCellString()
const override;
174 void fromCellString(
const String& s)
override;
176 std::vector<MzTabDouble> get()
const;
178 void set(
const std::vector<MzTabDouble>& entries);
194 void set(
const Int& value);
198 String toCellString()
const override;
200 void fromCellString(
const String& s)
override;
212 bool isNull()
const override;
214 void setNull(
bool b)
override;
216 String toCellString()
const override;
218 void fromCellString(
const String& s)
override;
220 std::vector<MzTabInteger> get()
const;
222 void set(
const std::vector<MzTabInteger>& entries);
238 void set(
const bool& value);
242 String toCellString()
const override;
244 void fromCellString(
const String& s)
override;
260 void set(
const String& value);
264 bool isNull()
const override;
266 void setNull(
bool b)
override;
268 String toCellString()
const override;
270 void fromCellString(
const String& s)
override;
284 bool isNull()
const override;
286 void setNull(
bool b)
override;
288 void setCVLabel(
const String& CV_label);
290 void setAccession(
const String& accession);
292 void setName(
const String& name);
294 void setValue(
const String& value);
296 String getCVLabel()
const;
298 String getAccession()
const;
304 String toCellString()
const override;
306 void fromCellString(
const String& s)
override;
322 bool isNull()
const override;
324 void setNull(
bool b)
override;
326 String toCellString()
const override;
328 void fromCellString(
const String& s)
override;
330 std::vector<MzTabParameter> get()
const;
332 void set(
const std::vector<MzTabParameter>& parameters);
347 void setSeparator(
char sep);
349 bool isNull()
const override;
351 void setNull(
bool b)
override;
353 String toCellString()
const override;
355 void fromCellString(
const String& s)
override;
357 std::vector<MzTabString> get()
const;
359 void set(
const std::vector<MzTabString>& entries);
374 bool isNull()
const override;
376 void setNull(
bool b)
override;
379 void setPositionsAndParameters(
const std::vector<std::pair<Size, MzTabParameter> >& ppp);
381 std::vector<std::pair<Size, MzTabParameter> > getPositionsAndParameters()
const;
383 void setModificationIdentifier(
const MzTabString& mod_id);
387 String toCellString()
const override;
389 void fromCellString(
const String& s)
override;
402 bool isNull()
const override;
404 void setNull(
bool b)
override;
406 String toCellString()
const override;
408 void fromCellString(
const String& s)
override;
410 std::vector<MzTabModification> get()
const;
412 void set(
const std::vector<MzTabModification>& entries);
427 bool isNull()
const override;
429 void setNull(
bool b)
override;
431 void setMSFile(
Size index);
433 void setSpecRef(
const String& spec_ref);
435 String getSpecRef()
const;
437 Size getMSFile()
const;
439 void setSpecRefFile(
const String& spec_ref);
441 String toCellString()
const override;
443 void fromCellString(
const String& s)
override;
556 std::map<Size, MzTabString>
uri;
568 std::map<Size, MzTabMSRunMetaData>
ms_run;
572 std::map<Size, MzTabSampleMetaData>
sample;
574 std::map<Size, MzTabAssayMetaData>
assay;
578 std::map<Size, MzTabCVMetaData>
cv;
614 std::vector<MzTabOptionalColumnEntry>
opt_;
650 std::vector<MzTabOptionalColumnEntry>
opt_;
687 std::vector<MzTabOptionalColumnEntry>
opt_;
735 std::vector<MzTabOptionalColumnEntry>
opt_;
760 std::vector<MzTabOptionalColumnEntry>
opt_;
791 std::vector<MzTabOptionalColumnEntry>
opt_;
822 std::vector<MzTabOptionalColumnEntry>
opt_;
896 void setCommentRows(
const std::map<Size, String>& com);
898 void setEmptyRows(
const std::vector<Size>& empty);
900 const std::vector<Size>& getEmptyRows()
const;
902 const std::map<Size, String>& getCommentRows()
const;
905 std::vector<String> getProteinOptionalColumnNames()
const;
908 std::vector<String> getPeptideOptionalColumnNames()
const;
911 std::vector<String> getPSMOptionalColumnNames()
const;
914 std::vector<String> getSmallMoleculeOptionalColumnNames()
const;
927 std::vector<String> getNucleicAcidOptionalColumnNames()
const;
930 std::vector<String> getOligonucleotideOptionalColumnNames()
const;
932 static void addMetaInfoToOptionalColumns(
const std::set<String>& keys, std::vector<MzTabOptionalColumnEntry>& opt,
const String&
id,
const MetaInfoInterface& meta);
935 std::vector<String> getOSMOptionalColumnNames()
const;
937 static std::map<Size, MzTabModificationMetaData> generateMzTabStringFromModifications(
const std::vector<String>& mods);
939 static std::map<Size, MzTabModificationMetaData> generateMzTabStringFromVariableModifications(
const std::vector<String>& mods);
941 static std::map<Size, MzTabModificationMetaData> generateMzTabStringFromFixedModifications(
const std::vector<String>& mods);
959 static MzTab exportIdentificationsToMzTab(
960 const std::vector<ProteinIdentification>& prot_ids,
961 const std::vector<PeptideIdentification>& peptide_ids,
963 bool first_run_inference_only,
964 std::map<std::pair<size_t,size_t>,
size_t>& map_run_fileidx_2_msfileidx,
965 std::map<String, size_t>& idrun_2_run_index,
966 bool export_empty_pep_ids =
false);
971 static MzTabModificationList extractModificationListFromAASequence(
const AASequence& aas,
const std::vector<String>& fixed_mods = std::vector<String>());
984 static MzTab exportConsensusMapToMzTab(
987 const bool first_run_inference_only,
988 const bool export_unidentified_features,
989 const bool export_unassigned_ids,
990 const bool export_subfeatures,
991 const bool export_empty_pep_ids =
false,
992 const String& title =
"ConsensusMap export from OpenMS");
997 template <
typename SectionRows>
1001 std::vector<String> names;
1004 for (
typename SectionRows::const_iterator it = rows.begin(); it != rows.end(); ++it)
1006 for (std::vector<MzTabOptionalColumnEntry>::const_iterator it_opt = it->opt_.begin(); it_opt != it->opt_.end(); ++it_opt)
1008 if (
std::find(names.begin(), names.end(), it_opt->first) == names.end())
1010 names.push_back(it_opt->first);
1018 static void checkSequenceUniqueness_(
const std::vector<PeptideIdentification>& curr_pep_ids);
1034 #pragma clang diagnostic pop
std::map< Size, std::map< Size, MzTabDouble > > search_engine_score_ms_run
search_engine_score[index1]_ms_run[index2]
Definition: MzTab.h:600
base class for the atomic non-container like MzTab data types (Double, Int)
Definition: MzTab.h:114
PRT - Protein section (Table based)
Definition: MzTab.h:589
String value_
Definition: MzTab.h:273
std::map< Size, MzTabDouble > peptide_abundance_stdev_study_variable
Definition: MzTab.h:648
std::map< Size, MzTabDouble > protein_abundance_study_variable
Definition: MzTab.h:611
MzTabString sample_ref
Definition: MzTab.h:481
std::vector< MzTabOligonucleotideSectionRow > MzTabOligonucleotideSectionRows
Definition: MzTab.h:845
std::map< Size, MzTabInteger > num_peptides_unique_ms_run
Definition: MzTab.h:604
basic interface for all MzTab datatypes (can be null; are converted from and to cell string)
Definition: MzTab.h:74
std::map< Size, MzTabParameter > species
Definition: MzTab.h:455
MzTabString uri
Location of the PSMs source entry.
Definition: MzTab.h:644
Comparison operator for sorting rows.
Definition: MzTab.h:617
Comparison operator for sorting rows.
Definition: MzTab.h:690
std::vector< String > getOptionalColumnNames_(const SectionRows &rows) const
Helper function for "get...OptionalColumnNames" functions.
Definition: MzTab.h:998
MzTabBoolean unique
0=false, 1=true, null else: Peptide is unique for the protein.
Definition: MzTab.h:632
Comparison operator for sorting rows.
Definition: MzTab.h:825
bool operator()(const MzTabOligonucleotideSectionRow &row1, const MzTabOligonucleotideSectionRow &row2) const
Definition: MzTab.h:796
MzTabString accession
The protein’s accession.
Definition: MzTab.h:592
MzTabString end
Definition: MzTab.h:686
std::map< Size, MzTabDouble > smallmolecule_abundance_study_variable
Definition: MzTab.h:732
MzTabSpectraRef spectra_ref
Spectra identifying the peptide.
Definition: MzTab.h:645
std::vector< MzTabPSMSectionRow > MzTabPSMSectionRows
Definition: MzTab.h:842
std::map< Size, MzTabParameter > custom
Definition: MzTab.h:459
double value_
Definition: MzTab.h:157
MzTabString mod_identifier_
Definition: MzTab.h:393
MzTabDouble exp_mass_to_charge
The m/z ratio of the experimental precursor ion.
Definition: MzTab.h:679
bool null_
Definition: MzTab.h:110
std::map< Size, MzTabDouble > peptide_abundance_study_variable
Definition: MzTab.h:647
std::vector< MzTabProteinSectionRow > MzTabProteinSectionRows
Definition: MzTab.h:840
std::map< Size, MzTabDouble > best_search_engine_score
Search engine(s) score(s) for the peptide.
Definition: MzTab.h:636
std::vector< MzTabNucleicAcidSectionRow > MzTabNucleicAcidSectionRows
Definition: MzTab.h:844
MzTabString full_name
Definition: MzTab.h:488
MzTabCellStateType state_
Definition: MzTab.h:135
MzTabString site
Definition: MzTab.h:473
MzTabParameter detector
Definition: MzTab.h:498
A more convenient string class.
Definition: String.h:58
PEP - Peptide section (Table based)
Definition: MzTab.h:628
Comparison operator for sorting rows.
Definition: MzTab.h:763
std::map< Size, MzTabInteger > num_oligos_unique_ms_run
Definition: MzTab.h:753
MzTabDouble coverage
(0-1) Amount of protein sequence identified.
Definition: MzTab.h:609
std::vector< MzTabOptionalColumnEntry > opt_
Optional columns must start with “opt_”.
Definition: MzTab.h:650
MzTabDouble mass_to_charge
Precursor ion’s m/z.
Definition: MzTab.h:643
MzTabString uri
Location of the protein’s source entry.
Definition: MzTab.h:607
std::map< Size, MzTabDouble > peptide_abundance_std_error_study_variable
Definition: MzTab.h:649
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
std::map< Size, MzTabDouble > best_search_engine_score
best_search_engine_score[1-n]
Definition: MzTab.h:599
MzTabString description
Human readable description (i.e. the name)
Definition: MzTab.h:593
Data model of MzTab files. Please see the official MzTab specification at https://code....
Definition: MzTab.h:855
MzTabString database_version
Version (and optionally # of entries).
Definition: MzTab.h:634
MzTabString accession
The protein’s accession.
Definition: MzTab.h:631
MzTabPSMSectionRows psm_data_
Definition: MzTab.h:1023
MzTabProteinSectionRows protein_data_
Definition: MzTab.h:1021
MzTabString description
Definition: MzTab.h:454
std::map< Size, std::map< Size, MzTabDouble > > search_engine_score_ms_run
Definition: MzTab.h:637
MzTabString database_version
String Version of the protein database.
Definition: MzTab.h:597
MzTabParameter id_format
Definition: MzTab.h:512
MzTabString sequence
The peptide’s sequence.
Definition: MzTab.h:630
interface for NaN- and Inf- able datatypes (Double and Integer in MzTab). These are as well null-able
Definition: MzTab.h:85
PSM - PSM section (Table based)
Definition: MzTab.h:665
String value_
Definition: MzTab.h:312
MzTabParameter software
Definition: MzTab.h:464
std::map< Size, String > comment_rows_
comments
Definition: MzTab.h:1029
MzTabString email
Definition: MzTab.h:505
MzTabInteger reliability
(1-3) 0=null Identification reliability for the peptide.
Definition: MzTab.h:638
MzTabInteger taxid
NEWT taxonomy for the species.
Definition: MzTab.h:594
std::map< Size, MzTabModificationMetaData > quantification_mod
Definition: MzTab.h:480
MzTabParameter quantification_reagent
Definition: MzTab.h:479
std::map< Size, MzTabParameter > cell_type
Definition: MzTab.h:457
std::vector< MzTabOptionalColumnEntry > opt_
Optional Columns must start with “opt_”
Definition: MzTab.h:614
MzTabString post
Definition: MzTab.h:684
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
std::vector< int > assay_refs
Definition: MzTab.h:518
std::map< Size, MzTabDouble > peptide_abundance_assay
Definition: MzTab.h:646
MzTabStringList ambiguity_members
Alternative nucleic acid identifications.
Definition: MzTab.h:754
MzTabString inchi_key
InChi Key of the identified compound.
Definition: MzTab.h:714
std::vector< MzTabPeptideSectionRow > MzTabPeptideSectionRows
Definition: MzTab.h:841
std::vector< MzTabModification > entries_
Definition: MzTab.h:415
MzTabParameter source
Definition: MzTab.h:496
std::map< Size, MzTabInteger > num_psms_ms_run
Definition: MzTab.h:602
std::map< Size, MzTabInteger > num_peptides_distinct_ms_run
Definition: MzTab.h:603
std::vector< MzTabInteger > entries_
Definition: MzTab.h:225
std::map< Size, MzTabInteger > num_osms_ms_run
Definition: MzTab.h:751
MzTabMetaData meta_data_
Definition: MzTab.h:1020
std::map< Size, MzTabDouble > smallmolecule_abundance_stdev_study_variable
Definition: MzTab.h:733
base class for atomic, non-container types (Double, Int)
Definition: MzTab.h:97
MzTabInteger reliability
Definition: MzTab.h:601
MzTabCellStateType
Data model of MzTab files.
Definition: MzTab.h:64
String getSpecRef() const
NUC - Nucleic acid section (table-based)
Definition: MzTab.h:739
MzTabNucleicAcidSectionRows nucleic_acid_data_
Definition: MzTab.h:1025
MzTabParameterList search_engine
Search engine(s) that identified the peptide.
Definition: MzTab.h:635
MzTabStringList identifier
The small molecule’s identifier.
Definition: MzTab.h:711
Size ms_run_
Definition: MzTab.h:446
bool operator()(const MzTabProteinSectionRow &row1, const MzTabProteinSectionRow &row2) const
Definition: MzTab.h:619
MzTabString modifications
Modifications identified on the small molecule.
Definition: MzTab.h:730
MzTabInteger charge
Precursor ion’s charge.
Definition: MzTab.h:642
MzTabString database
Name of the sequence database.
Definition: MzTab.h:633
MzTabString url
Definition: MzTab.h:490
MzTabString species
Human readable name of the species.
Definition: MzTab.h:595
MzTabParameter modification
Definition: MzTab.h:472
std::map< Size, MzTabDouble > protein_abundance_assay
Definition: MzTab.h:610
bool operator()(const MzTabOSMSectionRow &row1, const MzTabOSMSectionRow &row2) const
Definition: MzTab.h:827
String CV_label_
Definition: MzTab.h:309
MzTabString pre
Definition: MzTab.h:683
std::map< Size, MzTabDouble > search_engine_score
Search engine(s) score(s) for the peptide.
Definition: MzTab.h:674
MzTabString label
Definition: MzTab.h:487
MzTabModificationList modifications
Modifications identified in the protein.
Definition: MzTab.h:606
std::map< Size, MzTabParameter > analyzer
Definition: MzTab.h:497
std::vector< MzTabString > entries_
Definition: MzTab.h:362
MzTabOSMSectionRows osm_data_
/ oligonucleotide-spectrum matches
Definition: MzTab.h:1027
Comparison operator for sorting rows.
Definition: MzTab.h:794
bool find(TFinder &finder, const Pattern< TNeedle, FuzzyAC > &me, PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:884
MzTabStringList go_terms
List of GO terms for the nucleic acid.
Definition: MzTab.h:758
A container for consensus elements.
Definition: ConsensusMap.h:79
MzTabStringList ambiguity_members
Alternative protein identifications.
Definition: MzTab.h:605
MzTabString chemical_formula
Chemical formula of the identified compound.
Definition: MzTab.h:712
MzTabString species
Human readable name of the species.
Definition: MzTab.h:721
std::map< Size, MzTabParameter > tissue
Definition: MzTab.h:456
MzTabPeptideSectionRows peptide_data_
Definition: MzTab.h:1022
std::vector< int > sample_refs
Definition: MzTab.h:519
std::vector< MzTabOSMSectionRow > MzTabOSMSectionRows
Definition: MzTab.h:846
std::map< Size, MzTabParameter > disease
Definition: MzTab.h:458
MzTabParameterList search_engine
Search engine(s) identifying the protein.
Definition: MzTab.h:598
MzTabString position
Definition: MzTab.h:474
MzTabString name
Definition: MzTab.h:503
A container for features.
Definition: FeatureMap.h:95
std::map< Size, MzTabDouble > protein_abundance_std_error_study_variable
Definition: MzTab.h:613
MzTabString start
Definition: MzTab.h:685
std::map< Size, MzTabDouble > smallmolecule_abundance_std_error_study_variable
Definition: MzTab.h:734
std::vector< Size > empty_rows_
index of empty rows
Definition: MzTab.h:1028
bool operator()(const MzTabPeptideSectionRow &row1, const MzTabPeptideSectionRow &row2) const
Definition: MzTab.h:655
MzTabInteger PSM_ID
Definition: MzTab.h:668
std::map< Size, MzTabDouble > smallmolecule_abundance_assay
Definition: MzTab.h:731
OLI - Oligonucleotide section (table-based)
Definition: MzTab.h:774
std::map< Size, MzTabInteger > num_oligos_distinct_ms_run
Definition: MzTab.h:752
std::vector< int > ms_run_ref
Definition: MzTab.h:482
MzTabStringList go_terms
List of GO terms for the protein.
Definition: MzTab.h:608
OSM - OSM (oligonucleotide-spectrum match) section (table-based)
Definition: MzTab.h:809
MzTabInteger taxid
NEWT taxonomy for the species.
Definition: MzTab.h:720
char sep_
Definition: MzTab.h:363
String name_
Definition: MzTab.h:311
SML Small molecule section (table based)
Definition: MzTab.h:709
std::vector< MzTabDouble > entries_
Definition: MzTab.h:181
MzTabString database
Name of the protein database.
Definition: MzTab.h:596
MzTabString affiliation
Definition: MzTab.h:504
Representation of a peptide/protein sequence.
Definition: AASequence.h:113
MzTabOligonucleotideSectionRows oligonucleotide_data_
Definition: MzTab.h:1026
std::vector< MzTabParameter > parameters_
Definition: MzTab.h:335
String spec_ref_
Definition: MzTab.h:447
MzTabString location
Definition: MzTab.h:511
Comparison operator for sorting rows.
Definition: MzTab.h:653
MzTabString version
Definition: MzTab.h:489
MzTabParameter name
Definition: MzTab.h:495
Int value_
Definition: MzTab.h:203
MzTabDoubleList retention_time_window
Definition: MzTab.h:641
MzTabDouble coverage
(0-1) Fraction of nucleic acid sequence identified.
Definition: MzTab.h:759
std::map< Size, MzTabDouble > protein_abundance_stdev_study_variable
Definition: MzTab.h:612
MzTabParameter format
Definition: MzTab.h:510
bool operator()(const MzTabPSMSectionRow &row1, const MzTabPSMSectionRow &row2) const
Definition: MzTab.h:692
String accession_
Definition: MzTab.h:310
std::vector< std::pair< Size, MzTabParameter > > pos_param_pairs_
Definition: MzTab.h:392
MzTabSmallMoleculeSectionRows small_molecule_data_
Definition: MzTab.h:1024
MzTabString smiles
Molecular structure in SMILES format.
Definition: MzTab.h:713
std::pair< String, MzTabString > MzTabOptionalColumnEntry
Definition: MzTab.h:586
MzTabDouble calc_mass_to_charge
Definition: MzTab.h:680
bool value_
Definition: MzTab.h:247
MzTabModificationList modifications
Modifications identified in the peptide.
Definition: MzTab.h:639
MzTabDoubleList retention_time
Time points in seconds. Semantics may vary.
Definition: MzTab.h:640
std::map< Size, MzTabString > setting
Definition: MzTab.h:467
MzTabParameterList fragmentation_method
Definition: MzTab.h:513
std::vector< MzTabSmallMoleculeSectionRow > MzTabSmallMoleculeSectionRows
Definition: MzTab.h:843
bool operator()(const MzTabNucleicAcidSectionRow &row1, const MzTabNucleicAcidSectionRow &row2) const
Definition: MzTab.h:765