Skip to main content

No project description provided

Project description

InDeCa

repository of Interpretable Deconvolution for Calcium imaging.

Development Guide

pdm workflow (recommended)

  1. Obtain pdm globally on your system. Either follow the official guide, or if you prefer to use conda, conda install -c conda-forge pdm into your base environment.
  2. Clone the repo and enter:
    git clone https://github.com/Aharoni-Lab/indeca.git
    cd indeca
    
  3. If you want to use conda/mamba to handle dependencies, create a conda environment:
    conda create -n indeca -c conda-forge python=3.12
    conda activate indeca
    
    Otherwise skip to next step
  4. pdm install

setup cuosqp

  1. Install cuda-toolkit 11.8 into the environment:
    mamba env create -n indeca-dev -f environment/cuda.yml
    conda activate indeca-dev
    
  2. Obtain cuosqp source code:
    cd ..
    git clone https://github.com/osqp/cuosqp.git
    
  3. Find the computing capability of your GPU and modify line 120-125 of osqp_sources/CMakeLists.txt under the cuosqp repo accordingly:
    set(CMAKE_CUDA_ARCHITECTURES 89) # modify the compute capability 89 to match your GPU
    # if (DFLOAT)
    #     set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --gpu-architecture=compute_89 --gpu-code=sm_89")
    # else()
    #     # To use doubles we need compute capability 6.0 for atomic operations
    #     set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --gpu-architecture=compute_89 --gpu-code=sm_89")
    # endif()
    
  4. Obtain a copy of cuda examples 11.8 from here
  5. Add the extracted cuda examples folder to the include directories:
  6. Run CUDA_PATH=whatever python setup.py install. If you followed the steps correctly, CUDA_PATH shouldn't matter (but it has to be set).
  7. Verify that cuosqp is installed under your environment.

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

indeca-0.1.0.tar.gz (67.5 kB view details)

Uploaded Source

Built Distribution

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

indeca-0.1.0-py3-none-any.whl (44.1 kB view details)

Uploaded Python 3

File details

Details for the file indeca-0.1.0.tar.gz.

File metadata

  • Download URL: indeca-0.1.0.tar.gz
  • Upload date:
  • Size: 67.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.19.1 CPython/3.11.5 Linux/6.8.0-59-generic

File hashes

Hashes for indeca-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a578e946db964bb82a1291ec6b8374880fcc1cd142e4d0b5ef5bcc80e71f6515
MD5 b8e242dfc8e2cf45420b4fe7bde8c074
BLAKE2b-256 0635ed7ec9bf6965d19ae2aaec4c2e718581a2dd7bce691dfd54aebb6694c4b7

See more details on using hashes here.

File details

Details for the file indeca-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: indeca-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 44.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.19.1 CPython/3.11.5 Linux/6.8.0-59-generic

File hashes

Hashes for indeca-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d55483dbad524cb6aff95b76450f2c4b355fada82443ada7d98793056f932e8c
MD5 5900225c107c5ffe40d83212d10b80db
BLAKE2b-256 d4263a078598190bab280f69159f2718ff9956f02bbb24da99767a570ab956c2

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