uv-pro


Nameuv-pro JSON
Version 0.1.0 PyPI version JSON
download
home_page
SummaryTools for processing Agilent 845x Chemstation UV-Vis data files.
upload_time2023-04-23 23:29:40
maintainer
docs_urlNone
author
requires_python>=3.7
licenseMIT License Copyright (c) 2023 David Hebert Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords uv-vis uvvis spectroscopy agilent 845x binary .kd .kd .csv .csv tool processing outliers baseline import export
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ``uv_pro``
==========
``uv_pro`` is an all-in-one script for processing UV-Vis data files (.KD or .csv formats) created from the Agilent 845x UV-Vis Chemstation software. Spectra are imported, bad spectra (e.g., spectra collected during mixing) are removed, and the cleaned data is exported to a folder inside the user provided file path. Change the settings and provide arguments with the command line.

Required Command Line Arguments (argparse)
------------------------------------------
The global parameters are used when running ``uv_pro.py`` from the terminal (see ``main()``). Edit these with a text editor.

### ``-p``, ``--path`` : string
The path to the UV-Vis data, either a .KD file or a folder (.csv format). Should be wrapped in double quotes "".

```
python uv_pro.py "C:\\Desktop\\MyData\\myexperiment.KD" # Import from a .KD file
python uv_pro.py "C:\\Desktop\\MyData\\mydatafolder" # Import from .csv files
```

Optional Command Line Arguments (argparse)
------------------------------------------
### ``-v`` : (flag)
Enable view only mode. No data processing is performed and a plot of the data set is shown.

```
python uv_pro.py "C:\\Desktop\\MyData\\myfile.KD" -v
```

### ``-t``, ``--trim`` : 2 integers
Use ``-t`` to select a specific portion of a dataset of spectra `first last`. The ``first`` value is the index or time (in seconds) of the first spectrum to select. The ``last`` value is the index or time (in seconds) of the last spectrum to import. Set to `None` for no trimming. 

```
python uv_pro.py "C:\\Desktop\\MyData\\myfile.KD" -t 50 250
```

### ``-ct``, ``--cycle_time`` : integer
Set the cycle time in seconds from the experiment. Only required if you wish to use time (seconds) to trim datasets imported from .csv files. The cycle time is automatically detected when creating a dataset from a .KD file. The default value is 1 (same as using indexes). Note: only experiments with a constant cycle time are currently supported.

```
python uv_pro.py "C:\\Desktop\\myfile.KD" -ct 5
```

### ``-ot``, ``--outlier_threshold`` : float between 0 and 1
The threshold by which spectra are considered outliers. Values closer to 0 result in higher sensitivity (more outliers). Values closer to 1 result in lower sensitivity (fewer outliers). The default value is 0.1.

```
python uv_pro.py "C:\\Desktop\\myfile.KD" -ot 0.4
```

### ``-sl``, ``--slice_spectra`` : integer
The number of spectra to show. The default is 0, where all spectra are shown. Cuts the list of {spectra} into evenly-sized pieces. Example: if {spectra} contains 100 spectra and {num_spectra} is 10, then every tenth spectrum will be plotted.

```
python uv_pro.py "C:\\Desktop\\myfile.KD" -sl 15
```

### ``-h``, ``--help`` : flag
Use ``-h`` to get help with command line arguments.

```
python uv_pro.py -h
```

Examples
------------------------------------------
Import the data from ``myfile.KD``, set the outlier detection to 0.2, trim the data to keep only spectra from 50 seconds to 250 seconds, and show 10 slices:
```
python uv_pro.py "C:\\Desktop\\myfile.KD" -t 50 250 -ot 0.2 -sl 10
```

Import the data from the csv files in ``mydatafolder``, trim the data to keep only spectra from 50 seconds to 250 seconds, set the cycle time to 5 seconds, set the outlier detection to 0.2, and show 10 slices:
```
python uv_pro.py "C:\\Desktop\\mydatafolder" -t 50 250 -ct 5 -ot 0.2 -sl 10
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "uv-pro",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "uv-vis,uvvis,spectroscopy,Agilent,845x,binary,.KD,.kd,.CSV,.csv,tool,processing,outliers,baseline,import,export",
    "author": "",
    "author_email": "David Hebert <david@ddhebert.com>",
    "download_url": "https://files.pythonhosted.org/packages/a0/5a/e61016dedcd0aa6915ad9c8ce4669dec6c0675c98e4553b7fb42e6be851c/uv_pro-0.1.0.tar.gz",
    "platform": null,
    "description": "``uv_pro``\r\n==========\r\n``uv_pro`` is an all-in-one script for processing UV-Vis data files (.KD or .csv formats) created from the Agilent 845x UV-Vis Chemstation software. Spectra are imported, bad spectra (e.g., spectra collected during mixing) are removed, and the cleaned data is exported to a folder inside the user provided file path. Change the settings and provide arguments with the command line.\r\n\r\nRequired Command Line Arguments (argparse)\r\n------------------------------------------\r\nThe global parameters are used when running ``uv_pro.py`` from the terminal (see ``main()``). Edit these with a text editor.\r\n\r\n### ``-p``, ``--path`` : string\r\nThe path to the UV-Vis data, either a .KD file or a folder (.csv format). Should be wrapped in double quotes \"\".\r\n\r\n```\r\npython uv_pro.py \"C:\\\\Desktop\\\\MyData\\\\myexperiment.KD\" # Import from a .KD file\r\npython uv_pro.py \"C:\\\\Desktop\\\\MyData\\\\mydatafolder\" # Import from .csv files\r\n```\r\n\r\nOptional Command Line Arguments (argparse)\r\n------------------------------------------\r\n### ``-v`` : (flag)\r\nEnable view only mode. No data processing is performed and a plot of the data set is shown.\r\n\r\n```\r\npython uv_pro.py \"C:\\\\Desktop\\\\MyData\\\\myfile.KD\" -v\r\n```\r\n\r\n### ``-t``, ``--trim`` : 2 integers\r\nUse ``-t`` to select a specific portion of a dataset of spectra `first last`. The ``first`` value is the index or time (in seconds) of the first spectrum to select. The ``last`` value is the index or time (in seconds) of the last spectrum to import. Set to `None` for no trimming. \r\n\r\n```\r\npython uv_pro.py \"C:\\\\Desktop\\\\MyData\\\\myfile.KD\" -t 50 250\r\n```\r\n\r\n### ``-ct``, ``--cycle_time`` : integer\r\nSet the cycle time in seconds from the experiment. Only required if you wish to use time (seconds) to trim datasets imported from .csv files. The cycle time is automatically detected when creating a dataset from a .KD file. The default value is 1 (same as using indexes). Note: only experiments with a constant cycle time are currently supported.\r\n\r\n```\r\npython uv_pro.py \"C:\\\\Desktop\\\\myfile.KD\" -ct 5\r\n```\r\n\r\n### ``-ot``, ``--outlier_threshold`` : float between 0 and 1\r\nThe threshold by which spectra are considered outliers. Values closer to 0 result in higher sensitivity (more outliers). Values closer to 1 result in lower sensitivity (fewer outliers). The default value is 0.1.\r\n\r\n```\r\npython uv_pro.py \"C:\\\\Desktop\\\\myfile.KD\" -ot 0.4\r\n```\r\n\r\n### ``-sl``, ``--slice_spectra`` : integer\r\nThe number of spectra to show. The default is 0, where all spectra are shown. Cuts the list of {spectra} into evenly-sized pieces. Example: if {spectra} contains 100 spectra and {num_spectra} is 10, then every tenth spectrum will be plotted.\r\n\r\n```\r\npython uv_pro.py \"C:\\\\Desktop\\\\myfile.KD\" -sl 15\r\n```\r\n\r\n### ``-h``, ``--help`` : flag\r\nUse ``-h`` to get help with command line arguments.\r\n\r\n```\r\npython uv_pro.py -h\r\n```\r\n\r\nExamples\r\n------------------------------------------\r\nImport the data from ``myfile.KD``, set the outlier detection to 0.2, trim the data to keep only spectra from 50 seconds to 250 seconds, and show 10 slices:\r\n```\r\npython uv_pro.py \"C:\\\\Desktop\\\\myfile.KD\" -t 50 250 -ot 0.2 -sl 10\r\n```\r\n\r\nImport the data from the csv files in ``mydatafolder``, trim the data to keep only spectra from 50 seconds to 250 seconds, set the cycle time to 5 seconds, set the outlier detection to 0.2, and show 10 slices:\r\n```\r\npython uv_pro.py \"C:\\\\Desktop\\\\mydatafolder\" -t 50 250 -ct 5 -ot 0.2 -sl 10\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 David Hebert  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Tools for processing Agilent 845x Chemstation UV-Vis data files.",
    "version": "0.1.0",
    "split_keywords": [
        "uv-vis",
        "uvvis",
        "spectroscopy",
        "agilent",
        "845x",
        "binary",
        ".kd",
        ".kd",
        ".csv",
        ".csv",
        "tool",
        "processing",
        "outliers",
        "baseline",
        "import",
        "export"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "394c35a1dcee8db5bf13c6820236eaeb9a5f77d2b226b3fc2f86c17390d8cbbe",
                "md5": "8c86de6e92e6b403407532cdeed6ab8a",
                "sha256": "6c03273536410b6e88f1ea1829710f42804a26508d0c37d1289b111c583cd4a2"
            },
            "downloads": -1,
            "filename": "uv_pro-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8c86de6e92e6b403407532cdeed6ab8a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 17875,
            "upload_time": "2023-04-23T23:29:36",
            "upload_time_iso_8601": "2023-04-23T23:29:36.277850Z",
            "url": "https://files.pythonhosted.org/packages/39/4c/35a1dcee8db5bf13c6820236eaeb9a5f77d2b226b3fc2f86c17390d8cbbe/uv_pro-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a05ae61016dedcd0aa6915ad9c8ce4669dec6c0675c98e4553b7fb42e6be851c",
                "md5": "64c810a497237958181d770b04dd7038",
                "sha256": "d82c1dc8b76584d426f60fab6d431551e2179c843b9545baccbabb9e336aa199"
            },
            "downloads": -1,
            "filename": "uv_pro-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "64c810a497237958181d770b04dd7038",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 16693,
            "upload_time": "2023-04-23T23:29:40",
            "upload_time_iso_8601": "2023-04-23T23:29:40.527415Z",
            "url": "https://files.pythonhosted.org/packages/a0/5a/e61016dedcd0aa6915ad9c8ce4669dec6c0675c98e4553b7fb42e6be851c/uv_pro-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-23 23:29:40",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "uv-pro"
}
        
Elapsed time: 0.05860s