spynal


Namespynal JSON
Version 0.1.4 PyPI version JSON
download
home_pagehttps://github.com/sbrincat/spynal.git
SummarySimple Python Neural Analysis Library
upload_time2024-08-02 16:34:05
maintainerNone
docs_urlNone
author['Scott Brincat', 'John Tauber']
requires_pythonNone
licenseLICENSE
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![DOI](https://zenodo.org/badge/296102080.svg)](https://zenodo.org/badge/latestdoi/296102080)

# spynal: Simple Python Neural Analysis Library
Tools for preprocessing and basic analysis of systems/cognitive neurophysiology data in Python  

Covers typical preprocessing and basic analysis steps in neural analysis workflows.
Intended users are anyone doing analysis of neurophysiology data, but we particularly aim to be
accessible and easy-to-use for people migrating to Python from Matlab or other similar
programming languages.  

### Features include:
**Simplicity**: Easy-to-use procedural interface; no OOP or complicated data/params structures  
**Consistency**: Consistent function signature ~ `analysis(data, labels, axis, extra_param=value)`  
**Modularity**: Can use specific functionality without buy-in to an entire processing chain  
**Foolproof**: Extensive documentation and checking for proper function inputs  
**Flexibility**: Detailed parameterization allows customization of analysis to users' needs  
**Vectorized analysis**: Runs in parallel across all channels, no loops or data reshaping needed  

### Package includes the following modules:
**matIO** — Painless loading of MATLAB .mat data files into appropriate Python data structures  
**spikes** — Preprocessing and analyses of spiking data  
**spectra** — Spectral analysis and preprocessing of continuous data (LFP/EEG)   
**sync** — Analysis of oscillatory neural synchrony (field-field and spike-field)  
**info** — Measures of neural information about task/behavior variables  
**randstats** — Nonparametric randomization, permutation, and bootstrap statistics  
**plots** — Generation of common plot types; plotting utilities  
**utils** — Numerical and general purpose utilities  

Full documentation can be found at: https://spynal.readthedocs.io/en/latest/  


## Download & installation instructions
NOTE: Currently, spynal can only be installed against Python<=3.11, due to changes in the Import
Manager in Python 3.12 that have not been accounted for in all dependent packages. For details,
see this Stack Overflow answer: https://stackoverflow.com/a/77364602.

Users can either install the most recent stable release using pip or
install the latest updates from the Github repository

### Option 1: pip install
Recommended for users who prefer a simple installation and don't require the latest updates

    - Open a terminal window, navigate to folder you want repository to live under (cd "parent directory")
    - Run: pip install spynal

### Option 2: Install from source (Github)
Recommended for developers and for users that would like access to the latest updates

#### 2a: Download repository
    - Open a terminal window, navigate to folder you want repository to live under (cd "parent directory")
    - Run: git clone https://github.com/sbrincat/spynal.git

#### 2b: Install package
    - Navigate into the newly-created spynal folder (cd "parent directory"/spynal)
    - For end users:  at command line, run: python setup.py install
    - For developers: at command line, run: python setup.py develop
        (this will allow you to edit the library without reinstalling)

## Usage
You should now be able to directly import spynal and its modules/functions in your code/notebooks like so:  
    import spynal  
    import spynal as spy  
    import spynal.spectra as spectra  
    from spynal.spectra import spectrogram  

## Contributions
We welcome any contributions of new/expanded functionality or more efficient implementations,  
and all issues/bug reports.  
Submit a pull request/issue on Github or email me at [Github handle] AT [institution] .edu  

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sbrincat/spynal.git",
    "name": "spynal",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "['Scott Brincat', 'John Tauber']",
    "author_email": "sbrincat@mit.edu",
    "download_url": "https://files.pythonhosted.org/packages/b2/30/9a5b1a3c359278b04fb901e3e168068eb1ca88d6144b8645ab6d2055bd91/spynal-0.1.4.tar.gz",
    "platform": null,
    "description": "[![DOI](https://zenodo.org/badge/296102080.svg)](https://zenodo.org/badge/latestdoi/296102080)\n\n# spynal: Simple Python Neural Analysis Library\nTools for preprocessing and basic analysis of systems/cognitive neurophysiology data in Python  \n\nCovers typical preprocessing and basic analysis steps in neural analysis workflows.\nIntended users are anyone doing analysis of neurophysiology data, but we particularly aim to be\naccessible and easy-to-use for people migrating to Python from Matlab or other similar\nprogramming languages.  \n\n### Features include:\n**Simplicity**: Easy-to-use procedural interface; no OOP or complicated data/params structures  \n**Consistency**: Consistent function signature ~ `analysis(data, labels, axis, extra_param=value)`  \n**Modularity**: Can use specific functionality without buy-in to an entire processing chain  \n**Foolproof**: Extensive documentation and checking for proper function inputs  \n**Flexibility**: Detailed parameterization allows customization of analysis to users' needs  \n**Vectorized analysis**: Runs in parallel across all channels, no loops or data reshaping needed  \n\n### Package includes the following modules:\n**matIO** \u2014 Painless loading of MATLAB .mat data files into appropriate Python data structures  \n**spikes** \u2014 Preprocessing and analyses of spiking data  \n**spectra** \u2014 Spectral analysis and preprocessing of continuous data (LFP/EEG)   \n**sync** \u2014 Analysis of oscillatory neural synchrony (field-field and spike-field)  \n**info** \u2014 Measures of neural information about task/behavior variables  \n**randstats** \u2014 Nonparametric randomization, permutation, and bootstrap statistics  \n**plots** \u2014 Generation of common plot types; plotting utilities  \n**utils** \u2014 Numerical and general purpose utilities  \n\nFull documentation can be found at: https://spynal.readthedocs.io/en/latest/  \n\n\n## Download & installation instructions\nNOTE: Currently, spynal can only be installed against Python<=3.11, due to changes in the Import\nManager in Python 3.12 that have not been accounted for in all dependent packages. For details,\nsee this Stack Overflow answer: https://stackoverflow.com/a/77364602.\n\nUsers can either install the most recent stable release using pip or\ninstall the latest updates from the Github repository\n\n### Option 1: pip install\nRecommended for users who prefer a simple installation and don't require the latest updates\n\n    - Open a terminal window, navigate to folder you want repository to live under (cd \"parent directory\")\n    - Run: pip install spynal\n\n### Option 2: Install from source (Github)\nRecommended for developers and for users that would like access to the latest updates\n\n#### 2a: Download repository\n    - Open a terminal window, navigate to folder you want repository to live under (cd \"parent directory\")\n    - Run: git clone https://github.com/sbrincat/spynal.git\n\n#### 2b: Install package\n    - Navigate into the newly-created spynal folder (cd \"parent directory\"/spynal)\n    - For end users:  at command line, run: python setup.py install\n    - For developers: at command line, run: python setup.py develop\n        (this will allow you to edit the library without reinstalling)\n\n## Usage\nYou should now be able to directly import spynal and its modules/functions in your code/notebooks like so:  \n    import spynal  \n    import spynal as spy  \n    import spynal.spectra as spectra  \n    from spynal.spectra import spectrogram  \n\n## Contributions\nWe welcome any contributions of new/expanded functionality or more efficient implementations,  \nand all issues/bug reports.  \nSubmit a pull request/issue on Github or email me at [Github handle] AT [institution] .edu  \n",
    "bugtrack_url": null,
    "license": "LICENSE",
    "summary": "Simple Python Neural Analysis Library",
    "version": "0.1.4",
    "project_urls": {
        "Homepage": "https://github.com/sbrincat/spynal.git"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b2309a5b1a3c359278b04fb901e3e168068eb1ca88d6144b8645ab6d2055bd91",
                "md5": "aca5ad13612045d630d2e415f023c5f0",
                "sha256": "b0bd7efadf30237fd1358e4f3feb1eb3f077f8dcd2e1e848e2284e63ed4267f9"
            },
            "downloads": -1,
            "filename": "spynal-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "aca5ad13612045d630d2e415f023c5f0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 209954,
            "upload_time": "2024-08-02T16:34:05",
            "upload_time_iso_8601": "2024-08-02T16:34:05.152474Z",
            "url": "https://files.pythonhosted.org/packages/b2/30/9a5b1a3c359278b04fb901e3e168068eb1ca88d6144b8645ab6d2055bd91/spynal-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-02 16:34:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sbrincat",
    "github_project": "spynal",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "spynal"
}
        
Elapsed time: 0.46969s