GPCSD (Gaussian process current source density estimation)
Python implementation of Gaussian process current source density (CSD) estimation.
Paper: Klein, N., Siegle, J.H., Teichert, T., Kass, R.E. (2021) Cross-population coupling of neural activity based on Gaussian process current source densities. (preprint: https://arxiv.org/abs/2104.10070)
This code estimates current source density over space and time from local field potential (LFP) recordings.
Full source code available at https://github.com/natalieklein/gpcsd.
Installation
Install using pip install gpcsd.
To get the scripts to reproduce the paper results, get the source code from github: https://github.com/natalieklein/gpcsd.
Dependencies should be automatically installed by pip, but also see the Anaconda environment.yml file.
It will install two github-based dependencies with pip that are not able to be included in setup.py.
Main source code
Directory src/gpcsd contains the main source code. There are classes gpcsd1d.py and gpcsd2d.py for the GPCSD models, in addition to some support functions in other files.
Simulation studies
Simulation studies are found in simulation_studies and reproduce all simulation results shown in the paper. See simulation_studies/README.md for a full description of the scripts.
Auditory LFP analysis
Here we apply GPCSD1D to two-probe auditory cortex LFPs measured in a macaque monkey. The scripts reproduce all results shown in the paper. See auditory_lfp/README.md for more information on the scripts.
The auditory LFP data can be downloaded from https://doi.org/10.5281/zenodo.5137888, or using script download_data.sh.
The code assumes that it will be downloaded into auditory_lfp/data/.
Neuropixels analysis
We apply GPCSD2D to LFP recordings from Neuropixels probes in a mouse. This reproduces the figures shown in the paper. See neuropixels/README.md for more detail.
The Neuropixels data can be downloaded from https://doi.org/10.5281/zenodo.5150708, or using script download_data.sh.
The code assumes that it will be downloaded into neuropixels/data/.
Release files for gpcsd 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gpcsd-1.0.2.tar.gz | 13.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gpcsd-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.9 kB
Release files / gpcsd-1.0.2.tar.gz
| Download URL | gpcsd-1.0.2.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e51b1aa3b381ecdfea451d6a46599a218a5bcbe7aab42a368f0becdca55d6fe1
|
|
BLAKE2b-256 checksum How to use checksums |
953970132ada9fb8d2cd776c8d064ee1b1e0cc96be1001d1b2d33ccade6138c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
|
Release files / gpcsd-1.0.2-py3-none-any.whl
| Download URL | gpcsd-1.0.2-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4248449b07c0fa8928879d61d1b0c8c3984814c6396c7e40e31b2d9b698174e5
|
|
BLAKE2b-256 checksum How to use checksums |
ee38648ca11157eea920cd64f12678ada90771e6aafddaa80e9003ce126ca713
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
|