Tools and interfaces for working with behavior and epyhys sessions from the Mindscope Neuropixels team, in the cloud.
Project description
npc_sessions
neuropixels cloud sessions
Tools for accessing data and metadata for behavior and epyhys sessions from the Mindscope Neuropixels team - in the cloud.
quickstart
Make a conda environment with python>=3.9 and simply pip install the npc_sessions package:
conda create -n npc_sessions python>=3.9
conda activate npc_sessions
pip install npc_sessions
>>> from npc_sessions import sessions;
# each object is used to get metadata and paths for a session:
>>> sessions[0]
DynamicRoutingSession('626791_2022-08-15')
>>> sessions[0].is_ephys
True
>>> all(s.date.year >= 2022 for s in sessions)
True
>>> sessions[0].stim_paths[0].stem
'DynamicRouting1_626791_20220815_112336'
# data is processed on-demand to generate individual pynwb modules:
>>> sessions[0].subject # doctest: +SKIP
subject pynwb.file.Subject at 0x...
Fields:
age: P145D
age__reference: birth
date_of_birth: 2022-03-22 20:22:03-07:00
genotype: wt/wt
sex: M
species: Mus musculus
strain: C57BL6J(NP)
subject_id: 626791
# a full NWBFile instance can also be generated with all currently-available data:
>>> sessions[0].nwb # doctest: +SKIP
root pynwb.file.NWBFile at 0x...
Fields:
acquisition: {
lick spout <class 'ndx_events.events.Events'>
}
devices: {
18005102491 <class 'pynwb.device.Device'>,
18005114452 <class 'pynwb.device.Device'>,
18005123131 <class 'pynwb.device.Device'>,
18194810652 <class 'pynwb.device.Device'>,
19192719021 <class 'pynwb.device.Device'>,
19192719061 <class 'pynwb.device.Device'>
}
...
to develop with conda
To install with the intention of contributing to this package:
- create a conda environment:
conda create -n npc_sessions python>=3.9
conda activate npc_sessions
- clone npc_sessions from github:
git clone git@github.com:AllenInstitute/npc_sessions.git
- pip install all dependencies:
cd npc_sessions
pip install -e .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
npc_sessions-0.0.46.tar.gz
(66.8 kB
view hashes)
Built Distribution
Close
Hashes for npc_sessions-0.0.46-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90fe6ef21ad54a82df872b3618e41235c5ce8267d30fbe4f73fc535909040408 |
|
MD5 | dcc347de5dfb7cde29f85e52e2168dc1 |
|
BLAKE2b-256 | 0fac4ef49f16727f8d14fdb2d5847fba8584f09ba3ac9f395c11c2ff718750d1 |