OpenMS
MzIdentMLFile.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Mathias Walzer $
6 // $Authors: Andreas Bertsch, Mathias Walzer $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 #include <OpenMS/FORMAT/XMLFile.h>
17 
18 #include <vector>
19 
20 namespace OpenMS
21 {
41  class OPENMS_DLLAPI MzIdentMLFile :
42  public Internal::XMLFile,
43  public ProgressLogger
44  {
45 public:
49  ~MzIdentMLFile() override;
50 
57  void load(const String& filename, std::vector<ProteinIdentification>& poid, std::vector<PeptideIdentification>& peid);
58 
64  void store(const String& filename, const std::vector<ProteinIdentification>& poid, const std::vector<PeptideIdentification>& peid) const;
65 
71  void store(const String& filename, const Identification& id) const;
72 
82  bool isSemanticallyValid(const String& filename, StringList& errors, StringList& warnings);
83 
84 private:
85 
86  };
87 
88 } // namespace OpenMS
89 
Represents a object which can store the information of an analysisXML instance.
Definition: Identification.h:28
Base class for loading/storing XML files that have a handler derived from XMLHandler.
Definition: XMLFile.h:23
File adapter for MzIdentML files.
Definition: MzIdentMLFile.h:44
MzIdentMLFile()
Default constructor.
void store(const String &filename, const std::vector< ProteinIdentification > &poid, const std::vector< PeptideIdentification > &peid) const
Stores the identifications in a MzIdentML file.
~MzIdentMLFile() override
Destructor.
void store(const String &filename, const Identification &id) const
Stores the identifications in a MzIdentML file.
void load(const String &filename, std::vector< ProteinIdentification > &poid, std::vector< PeptideIdentification > &peid)
Loads the identifications from a MzIdentML file.
bool isSemanticallyValid(const String &filename, StringList &errors, StringList &warnings)
Checks if a file is valid with respect to the mapping file and the controlled vocabulary.
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:27
A more convenient string class.
Definition: String.h:34
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:44
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22