mzdata2mat


Namemzdata2mat JSON
Version 0.2.0 PyPI version JSON
download
home_pageNone
SummaryPackage used to convert mzData.xml files version 1.05 into matlab files.
upload_time2024-05-07 23:09:24
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseMIT License
keywords .mat .mzdata.xml .xml convert matlab mzdata
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # mzdata2mat
Welcome ! `mzdata2mat` is a Python package from [LARTIC research team](https://lartic.fsaa.ulaval.ca/), which converts mzData.xml files (version 1.05, Agilent Technologies) into mat files readable using matlab. <br><br>
Author : Maxime R.A. Cordella<br>
Team leader : Pr. Christophe B.Y. Cordella<br><br>
Copyright(c)2024_LARTIC

[![Documentation Status](https://readthedocs.org/projects/mzdata2mat/badge/?version=latest)](https://mzdata2mat.readthedocs.io/en/latest/?badge=latest)
[![PyPI](https://img.shields.io/pypi/v/mzdata2mat)](https://pypi.org/project/mzdata2mat/)
[![downloads](https://static.pepy.tech/badge/mzdata2mat/month)](https://pepy.tech/project/mzdata2mat)

## Documentation
The complete documentation is available [here](https://mzdata2mat.readthedocs.io/). All classes and methods are explained.

## Changelog
The current version of mzdata2mat is the following : `0.2.0`

You can see the complete changelog [here](https://github.com/MaximeLeMagicien/mzdata2mat/blob/main/Changelog.md)

## Compatible hardware
At this time, the following OSes have been tested :

### macOS
At this time, `macOS Sonoma 14.0` is officially supported, other macOS versions could be supported as long as they follow the requirements listed below.

### Windows
At this time, `mzdata2mat` have been tested and is supported on `Windows 11`, no testing has been done on Windows 10 or 7 but if you want to extend the compatibility, we are open to tester's feedback on thoses machines.

## Requirements
### Other than Python
This package __requires node.js installed__. you can download and install it at [nodejs.org](https://nodejs.org/en). It is available for both macOS and Windows for free.

### Python version
This package is compatible to any python version equal or newer than `3.9`.

### Python packages
When mzdata2mat will be installed on your system, the following packages will also be installed (if they are not) into your Python enviuronment : 
```
    pydantic>=2.6.4
    mat4py>=0.6.0
    javascript>=1!1.1.3
    colorama>=0.4.6
```
# Installation
From your terminal run the following command to install mzdata2mat into your environment :
```shell
$ pip install mzdata2mat
```
If you have multiple instances of Python installed, run this command with the chosen Python interpreter to install mzdata2mat in the corresponding Python installation :
```shell
$ <pathToPythonApp> -m pip install mzdata2mat
```
When the command terminates, you have successfully installed mzdata2mat !

To verfiy if the installation was successful, run in your terminal this command :
```shell
$ mzdata2mat-verify
```
When you will first run this command, node.js will download and install the `mzdata` package from `npm`. This will only happen the first time you run the command. The terminal will show you these lines during the process :
```shell
 Installing 'mzdata' version 'latest'... This will only happen once. 

added 7 packages, and audited 8 packages in 2s

1 package is looking for funding
  run `npm fund` for details

found 0 vulnerabilities

 OK. 
[JSE] 

[JSE] 
```
When it's done, mzdata2mat package will attempt to convert an example .mzdata.xml file into a .mat file. If everything goes right, you will get this message :
```shell
$ mzdata2mat - Ready to use !
```
The example file (.mzdata.xml) will be copied in the current working directory and the converted file (.mat) will be added as soon as the conversion finishes.

If an error occurs, this probably means that you do not have __node.js__ installed on your machine or you didn't add it to your PATH.

# Usage

### Example Code

```python

# Here we import the main class used for the conversion.
1 from mzdata2mat import mzDataManager

# We initialize the class
# If all mzData files are stored in the same directory, we can specify the parameter `mzDataPath` instead of `useDirectory`.
2 converterAgent = mzDataManager(useDirectory=False)

3 path2mzDataFile : str = "path/to/stored/files"

4 someDirectory : str = "path/to/save/file/"

# Now we can call the mzDataXMLread function to read the .mzData.xml file:
5 data = converterAgent.mzDataXMLread(fileName=path2mzDataFile)

# The data we've got from the previous function can be saved to a .mat file with the saveMatfile funtion:
6 converterAgent.saveMatfile(mzData=data, dir2save=someDirectory)

```

You have successfully converted a mzData file into mat files ! 

Congratulations !

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "mzdata2mat",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "CORDELLA Maxime <maxime.cordella911@gmail.com>, CORDELLA Christophe <christophe.cordella@fsaa.ulaval.ca>",
    "keywords": ".mat, .mzData.xml, .xml, convert, matlab, mzData",
    "author": null,
    "author_email": "LARTIC <christophe.cordella@fsaa.ulaval.ca>",
    "download_url": "https://files.pythonhosted.org/packages/6e/8c/887215123a9d262051562f4968f77e6b2c888e16719b1d63a0dfe32672c7/mzdata2mat-0.2.0.tar.gz",
    "platform": null,
    "description": "# mzdata2mat\nWelcome ! `mzdata2mat` is a Python package from [LARTIC research team](https://lartic.fsaa.ulaval.ca/), which converts mzData.xml files (version 1.05, Agilent Technologies) into mat files readable using matlab. <br><br>\nAuthor : Maxime R.A. Cordella<br>\nTeam leader : Pr. Christophe B.Y. Cordella<br><br>\nCopyright(c)2024_LARTIC\n\n[![Documentation Status](https://readthedocs.org/projects/mzdata2mat/badge/?version=latest)](https://mzdata2mat.readthedocs.io/en/latest/?badge=latest)\n[![PyPI](https://img.shields.io/pypi/v/mzdata2mat)](https://pypi.org/project/mzdata2mat/)\n[![downloads](https://static.pepy.tech/badge/mzdata2mat/month)](https://pepy.tech/project/mzdata2mat)\n\n## Documentation\nThe complete documentation is available [here](https://mzdata2mat.readthedocs.io/). All classes and methods are explained.\n\n## Changelog\nThe current version of mzdata2mat is the following : `0.2.0`\n\nYou can see the complete changelog [here](https://github.com/MaximeLeMagicien/mzdata2mat/blob/main/Changelog.md)\n\n## Compatible hardware\nAt this time, the following OSes have been tested :\n\n### macOS\nAt this time, `macOS Sonoma 14.0` is officially supported, other macOS versions could be supported as long as they follow the requirements listed below.\n\n### Windows\nAt this time, `mzdata2mat` have been tested and is supported on `Windows 11`, no testing has been done on Windows 10 or 7 but if you want to extend the compatibility, we are open to tester's feedback on thoses machines.\n\n## Requirements\n### Other than Python\nThis package __requires node.js installed__. you can download and install it at [nodejs.org](https://nodejs.org/en). It is available for both macOS and Windows for free.\n\n### Python version\nThis package is compatible to any python version equal or newer than `3.9`.\n\n### Python packages\nWhen mzdata2mat will be installed on your system, the following packages will also be installed (if they are not) into your Python enviuronment : \n```\n    pydantic>=2.6.4\n    mat4py>=0.6.0\n    javascript>=1!1.1.3\n    colorama>=0.4.6\n```\n# Installation\nFrom your terminal run the following command to install mzdata2mat into your environment :\n```shell\n$ pip install mzdata2mat\n```\nIf you have multiple instances of Python installed, run this command with the chosen Python interpreter to install mzdata2mat in the corresponding Python installation :\n```shell\n$ <pathToPythonApp> -m pip install mzdata2mat\n```\nWhen the command terminates, you have successfully installed mzdata2mat !\n\nTo verfiy if the installation was successful, run in your terminal this command :\n```shell\n$ mzdata2mat-verify\n```\nWhen you will first run this command, node.js will download and install the `mzdata` package from `npm`. This will only happen the first time you run the command. The terminal will show you these lines during the process :\n```shell\n Installing 'mzdata' version 'latest'... This will only happen once. \n\nadded 7 packages, and audited 8 packages in 2s\n\n1 package is looking for funding\n  run `npm fund` for details\n\nfound 0 vulnerabilities\n\n OK. \n[JSE] \n\n[JSE] \n```\nWhen it's done, mzdata2mat package will attempt to convert an example .mzdata.xml file into a .mat file. If everything goes right, you will get this message :\n```shell\n$ mzdata2mat - Ready to use !\n```\nThe example file (.mzdata.xml) will be copied in the current working directory and the converted file (.mat) will be added as soon as the conversion finishes.\n\nIf an error occurs, this probably means that you do not have __node.js__ installed on your machine or you didn't add it to your PATH.\n\n# Usage\n\n### Example Code\n\n```python\n\n# Here we import the main class used for the conversion.\n1 from mzdata2mat import mzDataManager\n\n# We initialize the class\n# If all mzData files are stored in the same directory, we can specify the parameter `mzDataPath` instead of `useDirectory`.\n2 converterAgent = mzDataManager(useDirectory=False)\n\n3 path2mzDataFile : str = \"path/to/stored/files\"\n\n4 someDirectory : str = \"path/to/save/file/\"\n\n# Now we can call the mzDataXMLread function to read the .mzData.xml file:\n5 data = converterAgent.mzDataXMLread(fileName=path2mzDataFile)\n\n# The data we've got from the previous function can be saved to a .mat file with the saveMatfile funtion:\n6 converterAgent.saveMatfile(mzData=data, dir2save=someDirectory)\n\n```\n\nYou have successfully converted a mzData file into mat files ! \n\nCongratulations !\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Package used to convert mzData.xml files version 1.05 into matlab files.",
    "version": "0.2.0",
    "project_urls": {
        "Changelog": "https://github.com/MaximeLeMagicien/mzdata2mat/blob/main/docs/source/Changelog.md",
        "Documentation": "https://mzdata2mat.readthedocs.io/",
        "Issues": "https://github.com/MaximeLeMagicien/mzdata2mat/issues",
        "Repository": "https://github.com/MaximeLeMagicien/mzdata2mat.git"
    },
    "split_keywords": [
        ".mat",
        " .mzdata.xml",
        " .xml",
        " convert",
        " matlab",
        " mzdata"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "96b4b4e2a3ee4d1843b57c6f5c0abb80bf071a36e79e5fcf9bd4573b3cacce05",
                "md5": "8c70462c97c406a1616a3d00b79f7fe2",
                "sha256": "d8086fbde16801278ff233709121a77a3cc9d5db2268af2535b016302fe7ef09"
            },
            "downloads": -1,
            "filename": "mzdata2mat-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8c70462c97c406a1616a3d00b79f7fe2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 22291,
            "upload_time": "2024-05-07T23:09:22",
            "upload_time_iso_8601": "2024-05-07T23:09:22.325795Z",
            "url": "https://files.pythonhosted.org/packages/96/b4/b4e2a3ee4d1843b57c6f5c0abb80bf071a36e79e5fcf9bd4573b3cacce05/mzdata2mat-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6e8c887215123a9d262051562f4968f77e6b2c888e16719b1d63a0dfe32672c7",
                "md5": "71c459ef47bbaa327e1112c14cc94046",
                "sha256": "450fe6df9365c6b9fdfa0072b1b4de180ce989a715a50e3897b776d84f722869"
            },
            "downloads": -1,
            "filename": "mzdata2mat-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "71c459ef47bbaa327e1112c14cc94046",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 2941858,
            "upload_time": "2024-05-07T23:09:24",
            "upload_time_iso_8601": "2024-05-07T23:09:24.121225Z",
            "url": "https://files.pythonhosted.org/packages/6e/8c/887215123a9d262051562f4968f77e6b2c888e16719b1d63a0dfe32672c7/mzdata2mat-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-07 23:09:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "MaximeLeMagicien",
    "github_project": "mzdata2mat",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "mzdata2mat"
}
        
Elapsed time: 0.30005s