Metadata-Version: 2.1
Name: npc-sessions
Version: 0.0.39
Summary: Tools and interfaces for working with behavior and epyhys sessions from the Mindscope Neuropixels team, in the cloud.
Author-email: Ben Hardcastle <ben.hardcastle@alleninstitute.org>, Arjun Sridhar <arjun.sridhar@alleninstitute.org>, Ethan McBride <ethan.mcbride@alleninstitute.org>, Corbett Bennett <corbettb@alleninstitute.org>
License: MIT
Project-URL: Repository, https://github.com/AllenInstitute/npc_sessions
Project-URL: Issues, https://github.com/AllenInstitute/npc_sessions/issues
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: npc-lims>=0.1.56
Requires-Dist: polars[all]>=0.18.14
Requires-Dist: h5py>=3.9.0
Requires-Dist: pandas[aws,excel,fss,hdf5,performance,plot]>=2.0.3
Requires-Dist: universal-pathlib>=0.1.1
Requires-Dist: s3fs>=2023.6.0
Requires-Dist: pynwb>=2.5.0
Requires-Dist: crc32c>=2.3.post0
Requires-Dist: rich>=13.5.2
Requires-Dist: zarr>=2.16.1
Requires-Dist: wavpack-numcodecs>=0.1.4
Requires-Dist: matplotlib>=3.7.2
Requires-Dist: scipy>=1.9.3
Requires-Dist: DynamicRoutingTask>=0.1.7
Requires-Dist: numba>=0.57.1
Requires-Dist: jupyter>=1.0.0
Requires-Dist: ipywidgets>=8.1.0
Requires-Dist: ipympl>=0.9.3
Requires-Dist: opencv-python-headless>=4.8.0.76
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: ndx-events>=0.2.0
Requires-Dist: SimpleITK>=2.2.1
Requires-Dist: pyarrow>=13.0.0
Provides-Extra: onsite
Requires-Dist: np-session>=0.6.34; extra == "onsite"

# npc_sessions
**n**euro**p**ixels **c**loud **sessions**
	
Tools for accessing data and metadata for behavior and epyhys sessions from the
Mindscope Neuropixels team - in the cloud.

[![PyPI](https://img.shields.io/pypi/v/npc-sessions.svg?label=PyPI&color=blue)](https://pypi.org/project/npc-sessions/)
[![Python version](https://img.shields.io/pypi/pyversions/npc-sessions)](https://pypi.org/project/npc-sessions/)

[![Coverage](https://img.shields.io/codecov/c/github/alleninstitute/npc_sessions?logo=codecov)](https://app.codecov.io/github/AllenInstitute/npc_sessions)
[![CI/CD](https://img.shields.io/github/actions/workflow/status/alleninstitute/npc_sessions/publish.yml?label=CI/CD&logo=github)](https://github.com/alleninstitute/npc_sessions/actions/workflows/publish.yml)
[![GitHub issues](https://img.shields.io/github/issues/alleninstitute/npc_sessions?logo=github)](https://github.com/alleninstitute/npc_sessions/issues)


## quickstart
Make a conda environment with python>=3.9 and simply pip install the npc_sessions package:

```bash
conda create -n npc_sessions python>=3.9
conda activate npc_sessions
pip install npc_sessions
```

Get some minimal info on all the tracked sessions available to work with:
```python
>>> from npc_sessions import tracked as tracked_sessions;

# each record in the sequence has info about one session:
>>> tracked_sessions[0]._fields
('session', 'subject', 'date', 'idx', 'project', 'is_ephys', 'is_sync', 'allen_path')
>>> tracked_sessions[0].is_ephys
True
>>> all(s.date.year >= 2022 for s in tracked_sessions)
True

```

## to develop with conda
To install with the intention of contributing to this package:

1) create a conda environment:
```bash
conda create -n npc_sessions python>=3.9
conda activate npc_sessions
```
2) clone npc_sessions from github:
```bash
git clone git@github.com:AllenInstitute/npc_sessions.git
```
3) pip install all dependencies:
```bash
cd npc_sessions
pip install -e .
```
