Skip to main content

DARTsort

Project description

badge coveralls

dartsort

:warning: Work in progress code repository

We do not currently recommend DARTsort for production spike sorting purposes. We are in the process of implementing a robust and documented pipeline in src/dartsort, and we will update this page accordingly.

A workflow described in our preprint (https://www.biorxiv.org/content/10.1101/2023.08.11.553023v1) is in uhd_pipeline.py, which is implemented using the legacy code in src/spike_psvae.

Suggested install steps

If you don't already have Python and PyTorch 2 installed, we recommend doing this with the Miniforge distribution of conda. You can find info and installers for your platform at Miniforge's GitHub repository. After installing Miniforge, conda will be available on your computer for installing Python packages, as well as the newer and faster conda replacement tool mamba. We recommend using mamba instead of conda below, since the installation tends to be a lot faster with mamba.

To install DARTsort, first clone this GitHub repository.

After cloning the repository, create and activate the mamba/conda environment from the configuration file provided as follows:

$ mamba env create -f environment.yml
$ mamba activate dartsort

Next, visit https://pytorch.org/get-started/locally/ and follow the PyTorch install instructions for your specific OS and hardware needs. We also need to install linear_operator from the gpytorch channel. For example, on a Linux workstation or cluster with NVIDIA GPUs available, one might use (dropping in mamba for conda commands):

# Example -- see https://pytorch.org/get-started/locally/ to find your platform's command.
(dartsort) $ mamba install pytorch torchvision torchaudio pytorch-cuda=11.8 linear_operator -c pytorch -c nvidia -c gpytorch

Finally, install the remaining pip dependencies and dartsort itself:

(dartsort) $ pip install -r requirements-full.txt
(dartsort) $ pip install -e .

To enable DARTsort's default motion correction algorithm DREDge, clone its GitHub repository, and then cd dredge/ and install the DREDge package with pip install -e ..

Soon we will have a package on PyPI so that these last steps will be just a pip install dartsort.

To make sure everything is working:

$ (dartsort) pytest tests/*

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

dartsort-0.3.6.4.tar.gz (4.1 MB view details)

Uploaded Source

Built Distribution

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

dartsort-0.3.6.4-py3-none-any.whl (2.5 MB view details)

Uploaded Python 3

File details

Details for the file dartsort-0.3.6.4.tar.gz.

File metadata

  • Download URL: dartsort-0.3.6.4.tar.gz
  • Upload date:
  • Size: 4.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dartsort-0.3.6.4.tar.gz
Algorithm Hash digest
SHA256 2f4a3e230e948a6a8e4a21f2dc8b26c42cc7439aefc4798ca0984473ba641a4e
MD5 81f75c7cca8b0b500b2db5856a3da21f
BLAKE2b-256 3a7e9cce3dbbff20ad578b72a493391c54f3e1dd22882a04374930b7277cb374

See more details on using hashes here.

Provenance

The following attestation bundles were made for dartsort-0.3.6.4.tar.gz:

Publisher: deploy.yml on cwindolf/dartsort

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dartsort-0.3.6.4-py3-none-any.whl.

File metadata

  • Download URL: dartsort-0.3.6.4-py3-none-any.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dartsort-0.3.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bb8486b35f51501ad50afe20437ef521ee92cc22528c2326280dc6546c5c841a
MD5 6d79c49c81b0575031b4d91abba2272c
BLAKE2b-256 81353a041285232854c8da6a605a53eaa8caca864bb1502023d55cf208f17d1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for dartsort-0.3.6.4-py3-none-any.whl:

Publisher: deploy.yml on cwindolf/dartsort

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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