Skip to main content

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

  • upload CLI tool is provided, which uses the np_session interface 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 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 the aind-data-transfer tool 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

np_codeocean-0.3.13.tar.gz (24.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

np_codeocean-0.3.13-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file np_codeocean-0.3.13.tar.gz.

File metadata

  • Download URL: np_codeocean-0.3.13.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

Hashes for np_codeocean-0.3.13.tar.gz
Algorithm Hash digest
SHA256 c642f0e3d90af9ab96ad996b825a129a2771e4984cb887159f99c458fee32e61
MD5 2a9a8dfbe884d935e6d045dc6b1052d9
BLAKE2b-256 6e4f865893c7d62c2febabb17f9b9406e6e1129df50b8cce0a6430698913ef7d

See more details on using hashes here.

File details

Details for the file np_codeocean-0.3.13-py3-none-any.whl.

File metadata

  • Download URL: np_codeocean-0.3.13-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

Hashes for np_codeocean-0.3.13-py3-none-any.whl
Algorithm Hash digest
SHA256 a1181c8aefa700bf75c0e6afd6ea0671439c818ad92891043bba00b010cf38d3
MD5 f8c5f0a522312dcf04e81ab5d85f3247
BLAKE2b-256 515f46522d4b29b18811102efe4f8c359dd74a5ea739083e98ed66307a8ccb1a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page