Data model of MzTab files. Please see the official MzTab specification at https://code.google.com/p/mztab/.
More...
#include <OpenMS/FORMAT/MzTab.h>
|
static void | addPepEvidenceToRows (const std::vector< PeptideEvidence > &peptide_evidences, MzTabPSMSectionRow &row, MzTabPSMSectionRows &rows) |
| Gets peptide_evidences with data from internal structures adds their info to an MzTabPSMSectionRow (pre- or unfilled) More...
|
|
static void | addMetaInfoToOptionalColumns (const std::set< String > &keys, std::vector< MzTabOptionalColumnEntry > &opt, const String &id, const MetaInfoInterface &meta) |
|
static std::map< Size, MzTabModificationMetaData > | generateMzTabStringFromModifications (const std::vector< String > &mods) |
|
static std::map< Size, MzTabModificationMetaData > | generateMzTabStringFromVariableModifications (const std::vector< String > &mods) |
|
static std::map< Size, MzTabModificationMetaData > | generateMzTabStringFromFixedModifications (const std::vector< String > &mods) |
|
static MzTab | exportFeatureMapToMzTab (const FeatureMap &feature_map, const String &filename) |
|
static MzTab | exportIdentificationsToMzTab (const std::vector< ProteinIdentification > &prot_ids, const std::vector< PeptideIdentification > &peptide_ids, const String &filename, bool first_run_inference_only, std::map< std::pair< size_t, size_t >, size_t > &map_run_fileidx_2_msfileidx, std::map< String, size_t > &idrun_2_run_index, bool export_empty_pep_ids=false) |
| Export peptide and protein identifications to mzTab. More...
|
|
static MzTabModificationList | extractModificationListFromAASequence (const AASequence &aas, const std::vector< String > &fixed_mods=std::vector< String >()) |
|
static MzTab | exportConsensusMapToMzTab (const ConsensusMap &consensus_map, const String &filename, const bool first_run_inference_only, const bool export_unidentified_features, const bool export_unassigned_ids, const bool export_subfeatures, const bool export_empty_pep_ids=false, const String &title="ConsensusMap export from OpenMS") |
| export linked peptide features aka consensus map More...
|
|
Data model of MzTab files. Please see the official MzTab specification at https://code.google.com/p/mztab/.
◆ MzTab()
◆ ~MzTab()
◆ addMetaInfoToOptionalColumns()
◆ addPepEvidenceToRows()
Gets peptide_evidences with data from internal structures adds their info to an MzTabPSMSectionRow (pre- or unfilled)
- Parameters
-
◆ checkSequenceUniqueness_()
◆ exportConsensusMapToMzTab()
static MzTab exportConsensusMapToMzTab |
( |
const ConsensusMap & |
consensus_map, |
|
|
const String & |
filename, |
|
|
const bool |
first_run_inference_only, |
|
|
const bool |
export_unidentified_features, |
|
|
const bool |
export_unassigned_ids, |
|
|
const bool |
export_subfeatures, |
|
|
const bool |
export_empty_pep_ids = false , |
|
|
const String & |
title = "ConsensusMap export from OpenMS" |
|
) |
| |
|
static |
export linked peptide features aka consensus map
- Parameters
-
consensus_map | data structure of the linked peptide features |
filename | input consensusXML file name |
export_unidentified_features | Should not identified peptide features be exported? |
export_unassigned_ids | Should unassigned identifications be exported? |
export_subfeatures | The position of the consensus feature will always be exported. Should the individual subfeatures be exported as well? |
- Returns
- mzTab object
◆ exportFeatureMapToMzTab()
◆ exportIdentificationsToMzTab()
static MzTab exportIdentificationsToMzTab |
( |
const std::vector< ProteinIdentification > & |
prot_ids, |
|
|
const std::vector< PeptideIdentification > & |
peptide_ids, |
|
|
const String & |
filename, |
|
|
bool |
first_run_inference_only, |
|
|
std::map< std::pair< size_t, size_t >, size_t > & |
map_run_fileidx_2_msfileidx, |
|
|
std::map< String, size_t > & |
idrun_2_run_index, |
|
|
bool |
export_empty_pep_ids = false |
|
) |
| |
|
static |
Export peptide and protein identifications to mzTab.
Additionally this function fills two std::maps with mappings for external usage.
- Parameters
-
[IN] | prot_ids Data structure containing protein identifications |
[IN] | peptide_ids Data structure containing peptide identifications |
[IN] | filename Input idXML file name |
[IN] | first_run_inference_only Is all protein inference information stored in the first run? |
[OUT] | map_run_fileidx_2_msfileidx Mapping from (run index, input file index) to experimental design file index. The experimental design file index is either given, or a simplified version created from the input file index on the fly. |
[OUT] | idrun_2_run_index Mapping from protein identification identifier (search engine + date) to run index, i.e. for storing file origins from different runs |
- Returns
- mzTab object
◆ extractModificationListFromAASequence()
Generate MzTab style list of PTMs from AASequence object. All passed fixed modifications are not reported (as suggested by the standard for the PRT and PEP section). In contrast, all modifications are reported in the PSM section (see standard document for details).
◆ generateMzTabStringFromFixedModifications()
◆ generateMzTabStringFromModifications()
◆ generateMzTabStringFromVariableModifications()
◆ getCommentRows()
const std::map<Size, String>& getCommentRows |
( |
| ) |
const |
◆ getEmptyRows()
const std::vector<Size>& getEmptyRows |
( |
| ) |
const |
◆ getMetaData()
◆ getNucleicAcidOptionalColumnNames()
std::vector<String> getNucleicAcidOptionalColumnNames |
( |
| ) |
const |
Extract opt_ (custom, optional column names)
◆ getNucleicAcidSectionRows()
◆ getOligonucleotideOptionalColumnNames()
std::vector<String> getOligonucleotideOptionalColumnNames |
( |
| ) |
const |
Extract opt_ (custom, optional column names)
◆ getOligonucleotideSectionRows()
◆ getOptionalColumnNames_()
std::vector<String> getOptionalColumnNames_ |
( |
const SectionRows & |
rows | ) |
const |
|
inlineprotected |
Helper function for "get...OptionalColumnNames" functions.
References seqan::find().
◆ getOSMOptionalColumnNames()
std::vector<String> getOSMOptionalColumnNames |
( |
| ) |
const |
Extract opt_ (custom, optional column names)
◆ getOSMSectionRows()
◆ getPeptideOptionalColumnNames()
std::vector<String> getPeptideOptionalColumnNames |
( |
| ) |
const |
Extract opt_ (custom, optional column names)
◆ getPeptideSectionRows()
◆ getProteinOptionalColumnNames()
std::vector<String> getProteinOptionalColumnNames |
( |
| ) |
const |
Extract opt_ (custom, optional column names)
◆ getProteinSectionRows()
◆ getPSMOptionalColumnNames()
std::vector<String> getPSMOptionalColumnNames |
( |
| ) |
const |
Extract opt_ (custom, optional column names)
◆ getPSMSectionRows()
◆ getSmallMoleculeOptionalColumnNames()
std::vector<String> getSmallMoleculeOptionalColumnNames |
( |
| ) |
const |
Extract opt_ (custom, optional column names)
◆ getSmallMoleculeSectionRows()
◆ setCommentRows()
void setCommentRows |
( |
const std::map< Size, String > & |
com | ) |
|
◆ setEmptyRows()
void setEmptyRows |
( |
const std::vector< Size > & |
empty | ) |
|
◆ setMetaData()
◆ setNucleicAcidSectionRows()
◆ setOligonucleotideSectionRows()
◆ setOSMSectionRows()
◆ setPeptideSectionRows()
◆ setProteinSectionRows()
◆ setPSMSectionRows()
◆ setSmallMoleculeSectionRows()
◆ comment_rows_
◆ empty_rows_
std::vector<Size> empty_rows_ |
|
protected |
◆ meta_data_
◆ nucleic_acid_data_
◆ oligonucleotide_data_
◆ osm_data_
/ oligonucleotide-spectrum matches
◆ peptide_data_
◆ protein_data_
◆ psm_data_
◆ small_molecule_data_