From 514308a257e38f9b4363dc5f03a9a7a0ec1875b2 Mon Sep 17 00:00:00 2001 From: Alessio Buccino Date: Mon, 4 Mar 2024 18:17:19 +0000 Subject: [PATCH] Remove README and add cuda version to tag --- kilosort4/README.md | 39 --------------------------------------- kilosort4/build.sh | 2 +- 2 files changed, 1 insertion(+), 40 deletions(-) delete mode 100644 kilosort4/README.md diff --git a/kilosort4/README.md b/kilosort4/README.md deleted file mode 100644 index 83d3405..0000000 --- a/kilosort4/README.md +++ /dev/null @@ -1,39 +0,0 @@ -### Build this image -Build default image: -docker build -t pykilosort:latest -f dockerfiles/Dockerfile . - -Build image with additional testing components: -docker build -t pykilosort:test -f dockerfiles/Dockerfile.testing context - -### Run container -docker run --rm -it -v : --gpus all pykilosort:latest -flags: ---rm: removes container once it's stopped --it: for interactive session --v: mounted volumes (directories) ---gpus: enables GPU use within container - -### Test -Download Neuropixel 1.0 data to your data directory: https://catalystneuro.github.io/spike-sorting-hackathon/datasets/datasets.html#allen-institute-example -(see also https://github.com/int-brain-lab/pykilosort/tree/ibl_prod/examples, although apparently not up to date) - -$docker run --rm -it -v /my/dir/to/data:/data --gpus all pykilosort -#conda activate pyks2 -#cd /data - --- alternatively, get data from kachery (if installed and configured) --- - ``` - wget https://catalystneuro.github.io/spike-sorting-hackathon/datasets/examples/example_allen_NP1.py - python example_allen_NP1.py - ``` - -The either run tests in ipython console, or run example from /home/test_file directory (if using `.testing` image), after editing directory paths -#ipython -``` -from pathlib import Path -from pykilosort import run, add_default_handler, np1_probe, np2_probe - -data_path = Path('/data/Allen_Institute_NP1/continuous_1min.bin') -dir_path = Path('/data/Allen_Institute_NP1/output') -add_default_handler(level='INFO') # print output as the algorithm runs -run(data_path, dir_path=dir_path, probe=np1_probe(sync_channel=False)) -``` diff --git a/kilosort4/build.sh b/kilosort4/build.sh index dfda5b6..1c735c3 100755 --- a/kilosort4/build.sh +++ b/kilosort4/build.sh @@ -1,3 +1,3 @@ #!/bin/bash -docker build -t spikeinterface/kilosort4-base:latest -t spikeinterface/kilosort4-base:0.1.0 . +docker build -t spikeinterface/kilosort4-base:latest -t spikeinterface/kilosort4-base:4.0_cuda-12.0.0 .