44 #include <boost/math/special_functions/fpclassify.hpp> 66 typedef std::map<std::pair<String, String>, std::vector<PeptideHit> >
MapAccPepType;
69 void store(
const String& filename,
const MzTab& mz_tab)
const;
72 void storeProteinReliabilityColumn(
bool store);
73 void storePeptideReliabilityColumn(
bool store);
74 void storePSMReliabilityColumn(
bool store);
75 void storeSmallMoleculeReliabilityColumn(
bool store);
76 void storeProteinUriColumn(
bool store);
77 void storePeptideUriColumn(
bool store);
78 void storePSMUriColumn(
bool store);
79 void storeSmallMoleculeUriColumn(
bool store);
80 void storeProteinGoTerms(
bool store);
100 String generateMzTabProteinHeader_(
const MzTabProteinSectionRow& reference_row,
const Size n_best_search_engine_scores,
const std::vector<String>& optional_columns)
const;
106 String generateMzTabPeptideHeader_(
Size search_ms_runs,
Size n_best_search_engine_scores,
Size n_search_engine_score,
Size assays,
Size study_variables,
const std::vector<String>& optional_columns)
const;
112 String generateMzTabPSMHeader_(
Size n_search_engine_scores,
const std::vector<String>& optional_columns)
const;
114 String generateMzTabPSMSectionRow_(
const MzTabPSMSectionRow& row,
const std::vector<String>& optional_columns)
const;
118 String generateMzTabSmallMoleculeHeader_(
Size search_ms_runs,
Size n_best_search_engine_scores,
Size n_search_engine_score,
Size assays,
Size study_variables,
const std::vector<String>& optional_columns)
const;
124 static std::pair<int, int> extractIndexPairsFromBrackets_(
const String& s);
126 static void sortPSM_(std::vector<PeptideIdentification>::iterator begin, std::vector<PeptideIdentification>::iterator end);
128 static void keepFirstPSM_(std::vector<PeptideIdentification>::iterator begin, std::vector<PeptideIdentification>::iterator end);
131 static void partitionIntoRuns_(
const std::vector<PeptideIdentification>& pep_ids,
132 const std::vector<ProteinIdentification>& pro_ids,
133 std::map<
String, std::vector<PeptideIdentification> >& map_run_to_pepids,
134 std::map<
String, std::vector<ProteinIdentification> >& map_run_to_proids
139 static void createProteinToPeptideLinks_(
const std::map<
String, std::vector<PeptideIdentification> >& map_run_to_pepids,
MapAccPepType& map_run_accession_to_pephits);
148 static String mapSearchEngineToCvParam_(
const String& openms_search_engine_name);
150 static String mapSearchEngineScoreToCvParam_(
const String& openms_search_engine_name,
double score,
String score_type);
152 static String extractNumPeptides_(
const String& common_identifier,
const String& protein_accession,
156 static String extractNumPeptidesDistinct_(
String common_identifier,
String protein_accession,
160 static String extractNumPeptidesUnambiguous_(
String common_identifier,
String protein_accession,
163 static std::map<String, Size> extractNumberOfSubSamples_(
const std::map<
String, std::vector<ProteinIdentification> >& map_run_to_proids);
165 static void writePeptideHeader_(
SVOutStream& output, std::map<String, Size> n_sub_samples);
167 static void writeProteinHeader_(
SVOutStream& output, std::map<String, Size> n_sub_samples);
175 const std::map<String, Size>& map_run_to_num_sub
Representation of a protein identification run.
Definition: ProteinIdentification.h:61
bool store_protein_reliability_
Definition: MzTabFile.h:86
A more convenient string class.
Definition: String.h:57
bool store_smallmolecule_uri_
Definition: MzTabFile.h:93
std::vector< MzTabSmallMoleculeSectionRow > MzTabSmallMoleculeSectionRows
Definition: MzTab.h:691
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
bool store_protein_goterms_
Definition: MzTabFile.h:94
bool store_protein_uri_
Definition: MzTabFile.h:90
std::vector< MzTabProteinSectionRow > MzTabProteinSectionRows
Definition: MzTab.h:688
bool store_peptide_reliability_
Definition: MzTabFile.h:87
bool store_peptide_uri_
Definition: MzTabFile.h:91
bool store_psm_reliability_
Definition: MzTabFile.h:88
Representation of a peptide hit.
Definition: PeptideHit.h:54
File adapter for MzTab files.
Definition: MzTabFile.h:58
std::vector< MzTabPeptideSectionRow > MzTabPeptideSectionRows
Definition: MzTab.h:689
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:73
bool store_psm_uri_
Definition: MzTabFile.h:92
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Stream class for writing to comma/tab/...-separated values files.
Definition: SVOutStream.h:54
std::vector< MzTabPSMSectionRow > MzTabPSMSectionRows
Definition: MzTab.h:690
bool store_smallmolecule_reliability_
Definition: MzTabFile.h:89
std::map< std::pair< String, String >, std::vector< PeptideHit > > MapAccPepType
Definition: MzTabFile.h:66
Data model of MzTab files. Please see the official MzTab specification at https://code.google.com/p/mztab/.
Definition: MzTab.h:699