nwb_datajoint
The Frank lab Datajoint pipeline facilitates the storage, analysis, and sharing of neuroscience data to support reproducible research. It integrates existing open-source projects into a coherent framework so that they can be easily used.
Setup
Installing packages
-
Clone this repository:
git clone https://github.com/LorenFrankLab/nwb_datajoint.git
-
Set up and activate a conda environment from
environment.yml:cd nwb_datajoint conda env create -f environment.yml conda activate nwb_datajoint
-
Install this repository:
# to use the package pip install nwb_datajoint # if you're a developer: pip install -e .
Setting up database access
-
Ask Loren or Eric to set up an account for you on the Frank lab database. Note that you have to be connected to UCSF LAN to access this server.
If you're not affiliated with UCSF or if you are just looking to try out
nwb_datajoint, then you will need to set up a different MySQL server. For example, you can set up your own local server with a Docker image of a MySQL server configured for Datajoint (see instructions here -
Add the following environment variables (e.g. in
~/.bashrc). This example assumes that you are interacting with the database on a computer that has mountedstelmoat/stelmo(if the mount location is different, change accordingly).export NWB_DATAJOINT_BASE_DIR="/stelmo/nwb/" export SPIKE_SORTING_STORAGE_DIR="/stelmo/nwb/spikesorting" export DJ_SUPPORT_FILEPATH_MANAGEMENT="TRUE" export KACHERY_P2P_API_HOST="typhoon" export KACHERY_P2P_API_PORT="14747" export KACHERY_TEMP_DIR="/stelmo/nwb/tmp"
If you're not connected to UCSF network, then you will have to run your own
kachery-p2pdaemon for curating spike sorting. Consult the guide here. -
Configure DataJoint. To connect to the Datajoint database, we have to specify information about it such as the hostname and the port. You should also change your password from the temporary one you were given. To do so, open up
dj_config.py, change the user name, and run it.Again, if you're using your own MySQL server, then you may need to change the other settings as well.
Finally, open up a python console and import nwb_datajoint to check that the installation has worked.
Tutorials
The tutorials for nwb_datajoint is currently in the form of Jupyter Notebooks and can be found in the notebooks directory. We strongly recommend opening them in the context of jupyterlab.
0_intro.ipynb: general introduction to the database1_spikesorting.ipynb: how to run spike sorting
Metadata
Release files for nwb-datajoint 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nwb_datajoint-0.2.6.tar.gz | 41.9 kB | Without provenance | Details for nwb_datajoint-0.2.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nwb_datajoint-0.2.6-py3-none-any.whl | Python 3 | none | any | Details for nwb_datajoint-0.2.6-py3-none-any.whl |
Total release size: 153.0 kB
Release files / nwb_datajoint-0.2.6.tar.gz
| Download URL | nwb_datajoint-0.2.6.tar.gz |
|---|---|
| Size | 41.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2029c8938bf0d65425244da69ec8f41c460dd40e8488efaa5ba12dbf4ae293c1
|
|
BLAKE2b-256 checksum How to use checksums |
7b2f8e5ec34683e9bb6c86e91ab19ed3fff97915d9712b526c28f42d59733ce0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.2 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
|
Release files / nwb_datajoint-0.2.6-py3-none-any.whl
| Download URL | nwb_datajoint-0.2.6-py3-none-any.whl |
|---|---|
| Size | 111.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
198745d468e6ff125321bee65921ee49a22d857858e77591258bccbc1c789bbc
|
|
BLAKE2b-256 checksum How to use checksums |
573656cc9afdd755232f04ee301c4aa01ecb0bcd0eeedbbfa0e70dbe4f996d02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.2 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
|
Security for nwb-datajoint 0.2.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.