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.project
'BrainTV Neuropixels Visual Behavior'
>>> 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:
# - `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
Mouse(576323)
>>> session.mouse.lims
LIMS2MouseInfo(576323)
>>> session.mouse.lims.id
1098595957
>>> session.mouse.lims['full_genotype']
'wt/wt'
# ...with a useful string representation:
>>> 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.2.0.tar.gz
(20.4 kB
view details)
Built Distribution
File details
Details for the file np_session-0.2.0.tar.gz
.
File metadata
- Download URL: np_session-0.2.0.tar.gz
- Upload date:
- Size: 20.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.9.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1936ac4f6851cf0c3746fa7cc9dad92fe8716325cd82e05449329872aed0f8e6 |
|
MD5 | 4b1c8078260c6dc82f37ee0f1fe1dd37 |
|
BLAKE2b-256 | ca47d07249bb2f6e332c51e24db33c552ac1a7de8ad10e19bc9f0ff87577dbe8 |
Provenance
File details
Details for the file np_session-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: np_session-0.2.0-py3-none-any.whl
- Upload date:
- Size: 23.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.9.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33408e1005cb4ec4f1a5655fdfe3ab570a5f355fbcd85337c4a9245aa136d685 |
|
MD5 | 67a0b30f5f68b77c08aa9e6a5561b7e6 |
|
BLAKE2b-256 | a5907129a9f39795849609d5fe60fcff6e5438126e4ef59e44eeba1661dfe1a5 |