BIL Data Python API
This is a Python API for accessing and analyzing neural data from the Brain Interfacing Laboratory. The public deposition is at the Stanford Digital Repository (SDR).
Installation
pip install bilab
Data Availability
The bilab package is an API for interacting with publicly deposited data. In that directory, each recording session has its own identifier under the data directory. For instance, "U201130_01" is the first session by subject U on 2020-11-30.
This is a public distribution of an internal API, and not all data types are publicly available for all sessions. Public datasets are deposited incrementally. The API contains methods for signals that will raise a FileNotFoundError if those signals have not been published. The deposition is growing incrementally to permit reproduction and extension upon published results.
Quickstart
See demo/md/quickstart.md.
from bil.api import get
# Initialize a study using a session ID
# Data will be fetched over HTTPS from the Stanford Digital Repository
study = get("U201130_01", download_dir="my_data")
# Access trial metadata
print(f"Number of trials: {len(study)}")
df = study.df
# Get a span of data for the first trial
# This is an accessor for a continuous segment of time
span = study.spans[0]
# Retrieve LFP data from that period of time from the Utah array in motor cortex
# This well get deposited in my_data/U201130_01
lfp = span.lfp(region="m1") # (96, T) ndarray
Contributing
This is a public distribution of an internal API; at this time, development is proceeding internally.
Metadata
Release files for bilab 0.1.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 |
|---|---|---|---|---|
| bilab-0.1.6.tar.gz | 26.0 kB | Without provenance | Details for bilab-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bilab-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for bilab-0.1.6-py3-none-any.whl |
Total release size: 57.0 kB
Release files / bilab-0.1.6.tar.gz
| Download URL | bilab-0.1.6.tar.gz |
|---|---|
| Size | 26.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7dbba1fece68a5ba7947a24ea8f8d0ddaa533e12a7a047e98cbc1446591ab8cc
|
|
BLAKE2b-256 checksum How to use checksums |
fe80549a71c7bf972f23432a538eb77f06afff4eb74b4e49a4ec73d59f10ec1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / bilab-0.1.6-py3-none-any.whl
| Download URL | bilab-0.1.6-py3-none-any.whl |
|---|---|
| Size | 31.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d3d94bcef967f640306b61ceadf58a4dc2b137733de435b643efcce6f595d7bb
|
|
BLAKE2b-256 checksum How to use checksums |
3e105870ca1aee26511bc7e715a84c4f5883c40bb17e65f477f966140893ab1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for bilab 0.1.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.