57 enum OriginAnnotationFormat { FILE_ORIGIN = 0, MAP_INDEX = 1, ID_MERGE_INDEX = 2, UNKNOWN_OAF = 3, SIZE_OF_ORIGIN_ANNOTATION_FORMAT = 4 };
90 UInt getIdentRunIdx();
93 UInt getFileOriginIdx();
96 const String & getOriginFullname();
99 const String & getOutputBasename();
116 RipFileContent(
const std::vector<ProteinIdentification>& prot_idents,
const std::vector<PeptideIdentification>& pep_idents)
117 : prot_idents(prot_idents), pep_idents(pep_idents) {}
119 const std::vector<ProteinIdentification> & getProteinIdentifications();
121 const std::vector<PeptideIdentification> & getPeptideIdentifications();
125 typedef std::map<RipFileIdentifier, RipFileContent, RipFileIdentifierIdxComparator>
RipFileMap;
147 std::vector<ProteinIdentification>& proteins,
148 std::vector<PeptideIdentification>& peptides,
149 bool numeric_filenames,
150 bool split_ident_runs);
166 std::vector<RipFileIdentifier> & rfis,
167 std::vector<RipFileContent> & rfcs,
168 std::vector<ProteinIdentification>& proteins,
169 std::vector<PeptideIdentification>& peptides,
170 bool numeric_filenames,
171 bool split_ident_runs);
183 OriginAnnotationFormat detectOriginAnnotationFormat_(std::map<String, UInt> & file_origin_map,
const std::vector<PeptideIdentification> & peptide_idents);
185 void getProteinHits_(std::vector<ProteinHit> & result,
const std::vector<ProteinHit> & protein_hits,
const std::vector<String> & protein_accessions);
187 void getProteinAccessions_(std::vector<String> & result,
const std::vector<PeptideHit> & peptide_hits);
193 bool setOriginAnnotationMode_(
short& mode,
short const new_value);
Representation of a protein identification run.
Definition: ProteinIdentification.h:72
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:60
std::vector< StringList > spectra_data
Maps the list of spectra data elements to every IdentificationRun index.
Definition: IDRipper.h:68
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Represents the content of an IDRipper output file.
Definition: IDRipper.h:109
UInt file_origin_idx
The numerical index of the source file_origin / spectra_data element.
Definition: IDRipper.h:80
String origin_fullname
The full length origin read from the file_origin / spectra_data element.
Definition: IDRipper.h:84
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Represents a set of IdentificationRuns.
Definition: IDRipper.h:63
String out_basename
The output basename derived from the file_origin / spectra_data element.
Definition: IDRipper.h:82
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:125
std::map< String, UInt > index_map
Maps a unique index to every IdentificationRun string representation (getIdentifier()).
Definition: IDRipper.h:66
std::vector< ProteinIdentification > prot_idents
Protein identifications.
Definition: IDRipper.h:112
std::vector< PeptideIdentification > pep_idents
Peptide identifications.
Definition: IDRipper.h:114
Identifies an IDRipper output file.
Definition: IDRipper.h:75
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:116
Provides a 'less' operation for RipFileIdentifiers that ignores the out_basename and origin_fullname ...
Definition: IDRipper.h:103
OriginAnnotationFormat
Possible input file encodings for the origin as used by different versions of IDMerger.
Definition: IDRipper.h:57
UInt ident_run_idx
The numerical index of the source IdentificationRun.
Definition: IDRipper.h:78
Ripping protein/peptide identification according their file origin.
Definition: IDRipper.h:52
Represents the peptide hits for a spectrum.
Definition: PeptideIdentification.h:63