104 const std::multimap<
OpenMS::String, std::pair<OpenMS::Size, OpenMS::Size>>& UIDs,
107 const std::map<OpenMS::String,OpenMS::String>& prot_mapper);
161 const std::multimap<
OpenMS::String, std::pair<OpenMS::Size, OpenMS::Size>>& UIDs,
183 static bool isValid(
const std::string& filename_);
Helper class for common functions and NON trivial values needed for exporting MaxQuant outputs.
Definition: MQExporterHelper.h:51
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:71
A container for consensus elements.
Definition: ConsensusMap.h:92
An LC-MS feature.
Definition: Feature.h:72
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:72
A more convenient string class.
Definition: String.h:60
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Definition: MQExporterHelper.h:55
std::stringstream mass_error_ppm
Definition: MQExporterHelper.h:62
std::stringstream uncalibrated_mass_error_ppm
Definition: MQExporterHelper.h:64
std::stringstream modifications
Definition: MQExporterHelper.h:56
std::stringstream base_peak_fraction
Definition: MQExporterHelper.h:68
std::stringstream mass_error_da
Definition: MQExporterHelper.h:63
std::stringstream uncalibrated_calibrated_mz_mda
Definition: MQExporterHelper.h:67
std::stringstream gene_names
Definition: MQExporterHelper.h:59
std::stringstream uncalibrated_calibrated_mz_ppm
Definition: MQExporterHelper.h:66
std::stringstream uncalibrated_mass_error_da
Definition: MQExporterHelper.h:65
std::stringstream protein_names
Definition: MQExporterHelper.h:60
std::stringstream msms_mz
Definition: MQExporterHelper.h:61
std::stringstream oxidation
Definition: MQExporterHelper.h:58
char acetyl
Definition: MQExporterHelper.h:57
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:83