Tools for uploading and interacting with Mindscope Neuropixels experiments on Code Ocean
Project description
np_codeocean
Tools for uploading Mindscope Neuropixels experiments to S3 (for Code Ocean).
Requires running as admin on Windows in order to create remote-to-remote symlinks on the Isilon.
Development workflow
- clone the repo, or pull with rebase
- sync the development environment using
uv(see below) - push changes to main (always commit changes to
uv.lock) - github action formats and publishes a new version
- pull the bump commit
Install
Setup/sync the development environment for working on a specific project:
uv sync --extra <dynamicrouting|openscope>
This ensures all developers are using the same package versions.
Add dependencies
For shared utilities:
uv add <package-name>
For project-specific utilities (added to optional dependency groups):
uv add <package-name> --optional <dynamicrouting|openscope>
Update dependencies
All:
uv lock --upgrade
Single package:
uv lock --upgrade-package <package-name>
Usage
-
uploadCLI tool is provided, which uses thenp_sessioninterface to find and upload raw data for one ecephys session:pip install np_codeocean upload <session-id>where session-id is any valid input to
np_session.Session(), e.g.:- a lims ID (
1333741475) - a workgroups foldername (
DRPilot_366122_20230101) - a path to a session folder (
\\allen\programs\mindscope\workgroups\np-exp\1333741475_719667_20240227)
- a lims ID (
-
a folder of symlinks pointing to the raw data is created, with a new structure suitable for the KS2.5 sorting pipeline on Code Ocean
-
the symlink folder, plus metadata, are entered into a csv file, which is submitted to
http://aind-data-transfer-service, which in turn runs theaind-data-transfertool on the HPC, which follows the symlinks to the original data, median-subtracts/scales/compresses ephys data, then uploads with the AWS CLI tool -
all compression/zipping acts on copies in temporary folders: the original raw data is not altered in anyway
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file np_codeocean-0.3.12.tar.gz.
File metadata
- Download URL: np_codeocean-0.3.12.tar.gz
- Upload date:
- Size: 24.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","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":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41880713e5e7189120f4c9f1e05b96581eba64fd4bd50ebe3ceb0f330a3019ee
|
|
| MD5 |
6d4e9dc008574e5683673d9f7bf6fc4f
|
|
| BLAKE2b-256 |
2766fa0ccb43d7b30d27dba32e824f458ea46b9d78af4135c828d14c8cc91eb2
|
File details
Details for the file np_codeocean-0.3.12-py3-none-any.whl.
File metadata
- Download URL: np_codeocean-0.3.12-py3-none-any.whl
- Upload date:
- Size: 25.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","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":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f72bac15d23a12d569d4d1885016f2b6700e08a4451df3a55a0185c48cca44c
|
|
| MD5 |
3ec9f2f4b36085b403629f4b3e688513
|
|
| BLAKE2b-256 |
67922733b36ef0082aabe83f4b6c00fc35fd7cbf1af39ff744841840602d787f
|