nmrPype


NamenmrPype JSON
Version 1.0.2 PyPI version JSON
download
home_pageNone
SummaryNMR spectra signal processing through pipelines
upload_time2024-08-22 18:01:42
maintainerNone
docs_urlNone
authorMicah Smith
requires_python>=3.10
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # nmrPype
Python implementation of command-line program nmrpipe, using linux pipelines to process NMR data.

- **Documentation:** https://phimykah.github.io/nmrpype
- **NMRPipe Website:** https://www.ibbr.umd.edu/nmrpipe
- **Source Code:** https://github.com/PhiMykah/nmrPype
- **Bug Reports:** https://github.com/PhiMykah/nmrPype/issues

Installation
============
Installing nmrPype can be done by through pip:
```sh
# Install prerequisites
pip install numpy scipy
# Install program
pip install nmrPype
``` 
A virtual environment or conda environment is recommended for using nmrPype.
If using conda, `numpy` and `scipy` can be installed using `conda install`.

### Note

This is made for Python 3.10 or above. Some of the code requires Python 3.10's features such as `match-case` statements. 

Python 3.12 is recommended as development is done with 3.12, but testing is done to assure that 3.10 is supported.

Usage
==========
nmrPype can be used in through two methods: Command-line and Script

Command-line
--------------
```
nmrPype -in [inFile] -fn fnName -out [outFile] [-ov]
```
Functions:
```
FT                  Perform a Fourier transform (FT) on the data
ZF                  Perform a Zero Fill (ZF) Operation on the data
SP (SINE)           Adjustable Sine Bell
PS                  Perform a Phase Correction (PS) on the data
YTP (TP, XY2YX)     2D Plane Transpose
ZTP (XYZ2ZYX)       3D Matrix Transpose
ATP (XYZA2AYZX)     4D Matrix Transpose (unimplemented)
NULL                Null Function, does not apply any function
```
Run the `nmrPype --help` command to see a list of more options.

Script
------
In a Python script or jupyter notebook use the following line:
```py
import nmrPype
```
I recommend setting the import as `pype` for simplification.
### Example
```py
import nmrPype as pype

df = pype.DataFrame("h.fid") # Load NMR data file into script
df.array() # Display spectral data array
```

Building From Source
====================

### Building using Pip

1. Install prerequisites
```sh
pip install numpy scipy
```
2. Clone the repository
```sh
git clone https://github.com/PhiMykah/nmrPype
```
3. Install in development mode with pip:

```sh
cd nmrPype
pip install -e .
```

### Building using Conda

With conda, the environment.yml file can be used to obtain
the development environment.

1. Clone the repository
```sh
git clone https://github.com/PhiMykah/nmrPype
```
2. Copy the source conda environment
```sh
cd nmrPype
conda env create -f environment.yml --name nmrpype
```
- You can set the name to anything you wish, but typically
my convention is to have the environments lowercase

3. Install in development mode with pip:
```
pip install -e .
```


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "nmrPype",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": "Micah Smith",
    "author_email": "Micah Smith <mykahsmith21@gmail.com>, Frank Delaglio <frank.delaglio@nist.gov>",
    "download_url": "https://files.pythonhosted.org/packages/38/d3/c90fe2669c3f0a99d2d90adae3e6931982b1f7677c6727b3bb0a27151a01/nmrPype-1.0.2.tar.gz",
    "platform": null,
    "description": "# nmrPype\nPython implementation of command-line program nmrpipe, using linux pipelines to process NMR data.\n\n- **Documentation:** https://phimykah.github.io/nmrpype\n- **NMRPipe Website:** https://www.ibbr.umd.edu/nmrpipe\n- **Source Code:** https://github.com/PhiMykah/nmrPype\n- **Bug Reports:** https://github.com/PhiMykah/nmrPype/issues\n\nInstallation\n============\nInstalling nmrPype can be done by through pip:\n```sh\n# Install prerequisites\npip install numpy scipy\n# Install program\npip install nmrPype\n``` \nA virtual environment or conda environment is recommended for using nmrPype.\nIf using conda, `numpy` and `scipy` can be installed using `conda install`.\n\n### Note\n\nThis is made for Python 3.10 or above. Some of the code requires Python 3.10's features such as `match-case` statements. \n\nPython 3.12 is recommended as development is done with 3.12, but testing is done to assure that 3.10 is supported.\n\nUsage\n==========\nnmrPype can be used in through two methods: Command-line and Script\n\nCommand-line\n--------------\n```\nnmrPype -in [inFile] -fn fnName -out [outFile] [-ov]\n```\nFunctions:\n```\nFT                  Perform a Fourier transform (FT) on the data\nZF                  Perform a Zero Fill (ZF) Operation on the data\nSP (SINE)           Adjustable Sine Bell\nPS                  Perform a Phase Correction (PS) on the data\nYTP (TP, XY2YX)     2D Plane Transpose\nZTP (XYZ2ZYX)       3D Matrix Transpose\nATP (XYZA2AYZX)     4D Matrix Transpose (unimplemented)\nNULL                Null Function, does not apply any function\n```\nRun the `nmrPype --help` command to see a list of more options.\n\nScript\n------\nIn a Python script or jupyter notebook use the following line:\n```py\nimport nmrPype\n```\nI recommend setting the import as `pype` for simplification.\n### Example\n```py\nimport nmrPype as pype\n\ndf = pype.DataFrame(\"h.fid\") # Load NMR data file into script\ndf.array() # Display spectral data array\n```\n\nBuilding From Source\n====================\n\n### Building using Pip\n\n1. Install prerequisites\n```sh\npip install numpy scipy\n```\n2. Clone the repository\n```sh\ngit clone https://github.com/PhiMykah/nmrPype\n```\n3. Install in development mode with pip:\n\n```sh\ncd nmrPype\npip install -e .\n```\n\n### Building using Conda\n\nWith conda, the environment.yml file can be used to obtain\nthe development environment.\n\n1. Clone the repository\n```sh\ngit clone https://github.com/PhiMykah/nmrPype\n```\n2. Copy the source conda environment\n```sh\ncd nmrPype\nconda env create -f environment.yml --name nmrpype\n```\n- You can set the name to anything you wish, but typically\nmy convention is to have the environments lowercase\n\n3. Install in development mode with pip:\n```\npip install -e .\n```\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "NMR spectra signal processing through pipelines",
    "version": "1.0.2",
    "project_urls": {
        "Homepage": "https://github.com/pypa/nmrPype",
        "Issues": "https://github.com/PhiMykah/nmrPype/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "309b12ed497b7d2aab1b74711003b534a85b38936e71a79553f14ede03faedcd",
                "md5": "6c32ac9af893846773a16989ad4fc0f2",
                "sha256": "171687b268cbf4cc04612c854b67be62a4389b978123913215ecfd7fa9e1e9fa"
            },
            "downloads": -1,
            "filename": "nmrPype-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6c32ac9af893846773a16989ad4fc0f2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 77525,
            "upload_time": "2024-08-22T18:01:41",
            "upload_time_iso_8601": "2024-08-22T18:01:41.049328Z",
            "url": "https://files.pythonhosted.org/packages/30/9b/12ed497b7d2aab1b74711003b534a85b38936e71a79553f14ede03faedcd/nmrPype-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "38d3c90fe2669c3f0a99d2d90adae3e6931982b1f7677c6727b3bb0a27151a01",
                "md5": "13ba4c48d0f575a88c13d7937871afd2",
                "sha256": "b9834062e2bee2cd85682774eb69ee147979361c323fa699dc852c6c3b0ba9d2"
            },
            "downloads": -1,
            "filename": "nmrPype-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "13ba4c48d0f575a88c13d7937871afd2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 61451,
            "upload_time": "2024-08-22T18:01:42",
            "upload_time_iso_8601": "2024-08-22T18:01:42.081051Z",
            "url": "https://files.pythonhosted.org/packages/38/d3/c90fe2669c3f0a99d2d90adae3e6931982b1f7677c6727b3bb0a27151a01/nmrPype-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-22 18:01:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pypa",
    "github_project": "nmrPype",
    "github_not_found": true,
    "lcname": "nmrpype"
}
        
Elapsed time: 0.33976s