78 const std::multimap<
OpenMS::String, std::pair<OpenMS::Size, OpenMS::Size>>& UIDs,
81 const std::map<OpenMS::String,OpenMS::String>& prot_mapper);
135 const std::multimap<
OpenMS::String, std::pair<OpenMS::Size, OpenMS::Size>>& UIDs,
157 static bool isValid(
const std::string& filename_);
Helper class for common functions and NON trivial values needed for exporting MaxQuant outputs.
Definition: MQExporterHelper.h:25
static bool isValid(const std::string &filename_)
Checks if file is writable (i.e. the path in the ctor was not empty and could be created)
static OpenMS::String extractGeneName(const OpenMS::String &prot_description)
Extract a gene name from a protein description by looking for the substring 'GN='.
static std::map< OpenMS::Size, OpenMS::Size > makeFeatureUIDtoConsensusMapIndex_(const OpenMS::ConsensusMap &cmap)
Creates map that has the information which FeatureUID is mapped to which ConsensusFeature in Consensu...
static bool hasValidPepID_(const OpenMS::Feature &f, const OpenMS::Size c_feature_number, const std::multimap< OpenMS::String, std::pair< OpenMS::Size, OpenMS::Size >> &UIDs, const OpenMS::ProteinIdentification::Mapping &mp_f)
Checks if Feature has valid PeptideIdentifications.
static bool hasPeptideIdentifications_(const OpenMS::ConsensusFeature &cf)
Checks if ConsensusFeature has valid PeptideIdentifications.
static OpenMS::Size proteinGroupID_(std::map< OpenMS::String, OpenMS::Size > &database, const OpenMS::String &protein_accession)
Returns a unique ID (number) for each distinct protein accession, or creates a new ID by augmenting t...
A consensus feature spanning multiple LC-MS/MS experiments.
Definition: ConsensusFeature.h:45
A container for consensus elements.
Definition: ConsensusMap.h:66
An LC-MS feature.
Definition: Feature.h:46
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:45
A more convenient string class.
Definition: String.h:34
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:97
Definition: MQExporterHelper.h:29
std::stringstream mass_error_ppm
Definition: MQExporterHelper.h:36
std::stringstream uncalibrated_mass_error_ppm
Definition: MQExporterHelper.h:38
std::stringstream modifications
Definition: MQExporterHelper.h:30
std::stringstream base_peak_fraction
Definition: MQExporterHelper.h:42
std::stringstream mass_error_da
Definition: MQExporterHelper.h:37
std::stringstream uncalibrated_calibrated_mz_mda
Definition: MQExporterHelper.h:41
std::stringstream gene_names
Definition: MQExporterHelper.h:33
std::stringstream uncalibrated_calibrated_mz_ppm
Definition: MQExporterHelper.h:40
std::stringstream uncalibrated_mass_error_da
Definition: MQExporterHelper.h:39
std::stringstream protein_names
Definition: MQExporterHelper.h:34
std::stringstream msms_mz
Definition: MQExporterHelper.h:35
std::stringstream oxidation
Definition: MQExporterHelper.h:32
char acetyl
Definition: MQExporterHelper.h:31
MQCommonOutputs(const OpenMS::Feature &f, const OpenMS::ConsensusMap &cmap, const OpenMS::Size c_feature_number, const std::multimap< OpenMS::String, std::pair< OpenMS::Size, OpenMS::Size >> &UIDs, const OpenMS::ProteinIdentification::Mapping &mp_f, const OpenMS::MSExperiment &exp, const std::map< OpenMS::String, OpenMS::String > &prot_mapper)
two way mapping from ms-run-path to protID|pepID-identifier
Definition: ProteinIdentification.h:57