39 #include <unordered_map> 90 const std::map<String, UInt>& file_origin_map,
92 bool split_ident_runs);
95 UInt getIdentRunIdx()
const;
98 UInt getFileOriginIdx()
const;
101 const String & getOriginFullname()
const;
104 const String & getOutputBasename()
const;
121 RipFileContent(
const std::vector<ProteinIdentification>& prot_idents,
const std::vector<PeptideIdentification>& pep_idents)
122 : prot_idents(prot_idents), pep_idents(pep_idents) {}
124 const std::vector<ProteinIdentification> & getProteinIdentifications();
126 const std::vector<PeptideIdentification> & getPeptideIdentifications();
130 typedef std::map<RipFileIdentifier, RipFileContent, RipFileIdentifierIdxComparator>
RipFileMap;
152 std::vector<ProteinIdentification>& proteins,
153 std::vector<PeptideIdentification>& peptides,
154 bool numeric_filenames,
155 bool split_ident_runs);
171 std::vector<RipFileIdentifier> & rfis,
172 std::vector<RipFileContent> & rfcs,
173 std::vector<ProteinIdentification>& proteins,
174 std::vector<PeptideIdentification>& peptides,
175 bool numeric_filenames,
176 bool split_ident_runs);
188 OriginAnnotationFormat detectOriginAnnotationFormat_(std::map<String, UInt> & file_origin_map,
const std::vector<PeptideIdentification> & peptide_idents);
190 void getProteinHits_(std::vector<ProteinHit> & result,
const std::unordered_map<String, const ProteinHit*> & acc2protein_hits,
const std::set<String> & protein_accessions);
192 std::set<String> getProteinAccessions_(
const std::vector<PeptideHit> & peptide_hits);
198 bool setOriginAnnotationMode_(
short& mode,
short const new_value);
A more convenient string class.
Definition: String.h:58
static const std::array< std::string, SIZE_OF_ORIGIN_ANNOTATION_FORMAT > names_of_OriginAnnotationFormat
String representations for the OriginAnnotationFormat enum.
Definition: IDRipper.h:61
std::vector< StringList > spectra_data
Maps the list of spectra data elements to every IdentificationRun index.
Definition: IDRipper.h:69
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Represents the content of an IDRipper output file.
Definition: IDRipper.h:114
String origin_fullname
The full length origin read from the file_origin / spectra_data element.
Definition: IDRipper.h:85
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Represents a set of IdentificationRuns.
Definition: IDRipper.h:64
String out_basename
The output basename derived from the file_origin / spectra_data element.
Definition: IDRipper.h:83
std::map< RipFileIdentifier, RipFileContent, RipFileIdentifierIdxComparator > RipFileMap
Represents the result of an IDRipper process, a map assigning file content to output file identifiers...
Definition: IDRipper.h:130
const std::string ID_MERGE_INDEX
Definition: Constants.h:323
std::map< String, UInt > index_map
Maps a unique index to every IdentificationRun string representation (getIdentifier()).
Definition: IDRipper.h:67
std::vector< ProteinIdentification > prot_idents
Protein identifications.
Definition: IDRipper.h:117
std::vector< PeptideIdentification > pep_idents
Peptide identifications.
Definition: IDRipper.h:119
Identifies an IDRipper output file.
Definition: IDRipper.h:76
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
RipFileContent(const std::vector< ProteinIdentification > &prot_idents, const std::vector< PeptideIdentification > &pep_idents)
Constructs a new RipFileContent object.
Definition: IDRipper.h:121
Provides a 'less' operation for RipFileIdentifiers that ignores the out_basename and origin_fullname ...
Definition: IDRipper.h:108
OriginAnnotationFormat
Possible input file encodings for the origin as used by different versions of IDMerger.
Definition: IDRipper.h:58
Ripping protein/peptide identification according their file origin.
Definition: IDRipper.h:53
Represents the peptide hits for a spectrum.
Definition: PeptideIdentification.h:63