Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conversion mzML to mzXML #1

Open
ofilangi opened this issue Apr 7, 2024 · 0 comments
Open

conversion mzML to mzXML #1

ofilangi opened this issue Apr 7, 2024 · 0 comments

Comments

@ofilangi
Copy link
Contributor

ofilangi commented Apr 7, 2024

OpenMS

#include <OpenMS/FORMAT/FileHandler.h>
#include <OpenMS/FORMAT/MzMLFile.h>
#include <OpenMS/FORMAT/MzXMLFile.h>

using namespace OpenMS;

int main()
{
    // Chemin vers le fichier d'entrée au format mzML
    std::string input_mzml_file = "input_file.mzML";

    // Chemin vers le fichier de sortie au format mzXML
    std::string output_mzxml_file = "output_file.mzXML";

    // Créer un objet pour gérer le fichier mzML d'entrée
    MzMLFile mzml_file;
    
    // Créer un objet pour gérer le fichier mzXML de sortie
    MzXMLFile mzxml_file;

    // Charger le fichier mzML
    MSExperiment experiment;
    mzml_file.load(input_mzml_file, experiment);

    // Écrire le fichier mzXML
    mzxml_file.store(output_mzxml_file, experiment);

    return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant