Tools for accessing data, metadata, and jobs related to ecephys and behavior sessions for the Mindscope Neuropixels team.
Project description
np_session
For use on internal Allen Institute network
>>> from np_session import Session
# initialize with a lims session ID or a string containing one:
>>> session = Session('c:/1116941914_surface-image1-left.png')
>>> session.lims.id
1116941914
>>> session.folder
'1116941914_576323_20210721'
>>> session.is_ecephys_session
True
>>> session.rig.acq # hostnames reflect the computers used during the session, not necessarily the current machines
'W10DT05515'
# some properties are objects with richer information:
>>> session.mouse
Mouse(576323)
>>> session.project
Project('NeuropixelVisualBehavior')
# - `pathlib` objects for filesystem paths:
>>> session.lims_path.as_posix()
'//allen/programs/braintv/production/visualbehavior/prod0/specimen_1098595957/ecephys_session_1116941914'
>>> session.data_dict['es_id']
'1116941914'
# - `datetime` objects for easy date manipulation:
>>> session.date
datetime.date(2021, 7, 21)
# - dictionaries from lims (loaded lazily):
>>> session.mouse.lims
LIMS2MouseInfo(576323)
>>> session.mouse.lims.id
1098595957
>>> session.mouse.lims['full_genotype']
'wt/wt'
# with useful string representations:
>>> str(session.mouse)
'576323'
>>> str(session.project)
'NeuropixelVisualBehavior'
>>> str(session.rig) # from `np_config` package
'NP.0'
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
np-session-0.5.1.tar.gz
(51.9 kB
view details)
Built Distribution
File details
Details for the file np-session-0.5.1.tar.gz
.
File metadata
- Download URL: np-session-0.5.1.tar.gz
- Upload date:
- Size: 51.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.4.9 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4ab316005d0f3611e400c8e159f5118687c3c69cba2d2aed7d0d05bdb2ea541 |
|
MD5 | 5f410c22fe94b51f9af2c6fecd75edd8 |
|
BLAKE2b-256 | 24a6704617f97b45b8e6e54310043185d3da40ea1b615e10c55e51784bfb5994 |
Provenance
File details
Details for the file np_session-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: np_session-0.5.1-py3-none-any.whl
- Upload date:
- Size: 57.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.4.9 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fbb2923906fef4e9ed03aafaff1772e876bd8c0a1e4897a59741a04c9e46b1e |
|
MD5 | 7c979bf64945895e3ef2ee14dea49d20 |
|
BLAKE2b-256 | 313e849cfce005a9876f73950b1b692a6a5b2e2b917f2b16147ebdfac1104b99 |