|
OpenMS
2.5.0
|
Go to the documentation of this file.
85 void load(
const String& filename, std::vector<ProteinIdentification>& protein_ids, std::vector<PeptideIdentification>& peptide_ids);
96 void load(
const String& filename, std::vector<ProteinIdentification>& protein_ids, std::vector<PeptideIdentification>& peptide_ids,
String& document_id);
105 void store(
const String& filename,
const std::vector<ProteinIdentification>& protein_ids,
const std::vector<PeptideIdentification>& peptide_ids,
const String& document_id =
"");
110 void endElement(
const XMLCh*
const ,
const XMLCh*
const ,
const XMLCh*
const qname)
override;
113 void startElement(
const XMLCh*
const ,
const XMLCh*
const ,
const XMLCh*
const qname,
const xercesc::Attributes& attributes)
override;
118 void addProteinGroups_(
MetaInfoInterface& meta,
const std::vector<ProteinIdentification::ProteinGroup>& groups,
122 void getProteinGroups_(std::vector<ProteinIdentification::ProteinGroup>& groups,
const String& group_name);
128 static std::ostream& createFlankingAAXMLString_(
const std::vector<PeptideEvidence> & pes, std::ostream& os);
134 static std::ostream& createPositionXMLString_(
const std::vector<PeptideEvidence> & pes, std::ostream& os);
140 static void writeFragmentAnnotations_(
const String & tag_name, std::ostream & os,
141 const std::vector<PeptideHit::PeakAnnotation>& annotations,
UInt indent);
146 static void parseFragmentAnnotation_(
const String& s, std::vector<PeptideHit::PeakAnnotation> & annotations);
151 std::vector<ProteinIdentification>* prot_ids_;
158 std::map<String, ProteinIdentification::SearchParameters>
parameters_;
Int getCharge() const
returns the charge of the peptide
Base class for TOPP applications.
Definition: TOPPBase.h:144
bool prot_id_in_run_
true if a prot id is contained in the current run
Definition: IdXMLFile.h:180
PeptideHit::PepXMLAnalysisResult current_analysis_result_
Temporary analysis result instance.
Definition: IdXMLFile.h:172
void store(const String &filename, const ConsensusMap &consensus_map)
Stores a consensus map to file.
void store(const String &filename, const std::vector< ProteinIdentification > &protein_ids, const std::vector< PeptideIdentification > &peptide_ids, const String &document_id="")
Stores the data in an idXML file.
const AASequence & getSequence() const
returns the peptide sequence without trailing or following spaces
Base class for XML handlers.
Definition: XMLHandler.h:151
Base::iterator Iterator
Definition: FeatureMap.h:139
Invalid value exception.
Definition: Exception.h:335
void store(const String &filename, const PeakMap &map) const
Stores a map in an MzML file.
MzML file (.mzML)
Definition: FileTypes.h:72
Analysis Result (containing search engine / prophet results)
Definition: PeptideHit.h:210
File adapter for MzML files.
Definition: MzMLFile.h:55
std::vector< PeptideEvidence > peptide_evidences_
Temporary peptide evidences.
Definition: IdXMLFile.h:174
A more convenient string class.
Definition: String.h:58
Iterator begin()
Definition: MSExperiment.h:157
bool isEmpty() const
Test if the value is empty.
Definition: DataValue.h:375
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:77
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Representation of a protein hit.
Definition: ProteinHit.h:57
String toString(bool full_precision=true) const
Conversion to String full_precision Controls number of fractional digits for all double types or list...
String toString() const
returns the peptide as string with modifications embedded in brackets
Representation of a protein identification run.
Definition: ProteinIdentification.h:71
const std::vector< ProteinIdentification > & getProteinIdentifications() const
returns a const reference to the protein ProteinIdentification vector
String * document_id_
Document identifier.
Definition: IdXMLFile.h:178
void load(const String &filename, std::vector< ProteinIdentification > &protein_ids, std::vector< PeptideIdentification > &peptide_ids)
Loads the identifications of an idXML file without identifier.
ProteinIdentification::SearchParameters param_
Temporary search parameters variable.
Definition: IdXMLFile.h:160
const String & getAccession() const
returns the accession of the protein
String id_
Temporary id.
Definition: IdXMLFile.h:162
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
std::vector< SpectrumType >::iterator Iterator
Mutable iterator.
Definition: MSExperiment.h:111
ProteinIdentification prot_id_
Temporary protein ProteinIdentification.
Definition: IdXMLFile.h:164
MetaInfoInterface * last_meta_
Pointer to last read object with MetaInfoInterface.
Definition: IdXMLFile.h:156
OpenMS feature file (.featureXML)
Definition: FileTypes.h:65
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:54
Class to hold strings, numeric values, lists of strings and lists of numeric values.
Definition: DataValue.h:56
std::map< String, ProteinIdentification::SearchParameters > parameters_
Search parameters map (key is the "id")
Definition: IdXMLFile.h:158
void load(const String &filename, PeakMap &map)
Loads a map from a MzML file. Spectra and chromatograms are sorted by default (this can be disabled u...
const std::vector< ProteinIdentification > & getProteinIdentifications() const
non-mutable access to the protein identifications
void load(const String &filename, FeatureMap &feature_map)
loads the file with name filename into map and calls updateRanges().
Type
Actual file types enum.
Definition: FileTypes.h:58
static FileTypes::Type getType(const String &filename)
Tries to determine the file type (by name or content)
const std::vector< PeptideIdentification > & getUnassignedPeptideIdentifications() const
non-mutable access to the unassigned peptide identifications
A container for consensus elements.
Definition: ConsensusMap.h:79
const std::vector< PeptideIdentification > & getUnassignedPeptideIdentifications() const
non-mutable access to the unassigned peptide identifications
void store(const String &filename, const FeatureMap &feature_map)
stores the map feature_map in file with name filename.
void load(const String &filename, ConsensusMap &map)
Loads a consensus map from file and calls updateRanges.
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
std::unordered_map< std::string, String > proteinid_to_accession_
Map from protein id to accession.
Definition: IdXMLFile.h:176
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
A required parameter was not given.
Definition: TOPPBase.h:111
A container for features.
Definition: FeatureMap.h:95
Represents the peptide hits for a spectrum.
Definition: PeptideIdentification.h:62
ActionMode
Action to set the current mode (for error messages)
Definition: XMLHandler.h:169
Iterator end()
Definition: MSExperiment.h:167
double getScore() const
returns the PSM score
std::vector< ConsensusFeature >::iterator Iterator
Mutable iterator.
Definition: ConsensusMap.h:160
std::vector< PeptideIdentification > * pep_ids_
Pointer to fill in peptide identifications.
Definition: IdXMLFile.h:154
This class provides Input/Output functionality for feature maps.
Definition: FeatureXMLFile.h:68
PeptideHit pep_hit_
Temporary peptide hit.
Definition: IdXMLFile.h:170
Base class for loading/storing XML files that have a handler derived from XMLHandler.
Definition: XMLFile.h:48
ProteinHit prot_hit_
Temporary protein hit.
Definition: IdXMLFile.h:168
#define OPENMS_LOG_INFO
Macro if a information, e.g. a status should be reported.
Definition: LogStream.h:465
double getScore() const
returns the score of the protein hit
Search parameters of the DB search.
Definition: ProteinIdentification.h:221
Data filtering or extraction.
Definition: DataProcessing.h:71
PeptideIdentification pep_id_
Temporary peptide ProteinIdentification.
Definition: IdXMLFile.h:166
const std::vector< ProteinIdentification > & getProteinIdentifications() const
non-mutable access to the protein identifications
This class provides Input functionality for ConsensusMaps and Output functionality for alignments and...
Definition: ConsensusXMLFile.h:61
Used to load and store idXML files.
Definition: IdXMLFile.h:63
Representation of a peptide hit.
Definition: PeptideHit.h:54