Skip to main content

HNCcorr

Current version Documentation Travis-CI status

The HNCcorr algorithm identifies cell bodies in two-photon calcium imaging movies. We provide a Python 3 implementation as well as a legacy Matlab implementation. The software is freely available for non-commercial use. See license file for details.

The HNCcorr algorithm is described in our ArXiv paper:

Q Spaen, R Asín-Achá, and DS Hochbaum. (2017). HNCcorr: A novel combinatorial approach for cell identification in calcium-imaging movies. arXiv:1703.01999.

Example (Python)

from hnccorr import HNCcorr, Movie
from hnccorr.example import load_example_data

movie = Movie(
    "Example movie", load_example_data()  # downloads sample Neurofinder dataset
)
H = HNCcorr.from_config()  # Initialize HNCcorr with default configuration
H.segment(movie)

H.segmentations  # List of identified cells
H.segmentations_to_list()  # Export list of cells (for Neurofinder)

See the quickstart guide for more details.

Installation Instructions for Python 3

You can install HNCcorr directly from the Python Package Index with pip:

pip install hnccorr

On Windows you may need to install a C-compiler for Python.

Installation Instructions for Matlab

The Matlab implementation was used to generate the results in the eNeuro manuscript and is now superseded by the Python implementation. The Matlab implementation is available in the matlab folder. See the README file in the matlab folder for instructions.

Documentation

The documentation is hosted at ReadTheDocs.

Tests

The tests for HNCcorr use the pytest package. You can execute them with the pytest command in the main directory.

Metadata

Release files for hnccorr 2020.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hnccorr 2020.5.1
File Size Uploaded
hnccorr-2020.5.1.tar.gz 33.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hnccorr 2020.5.1
File Interpreter ABI Platform
hnccorr-2020.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 65.0 kB

Release files / hnccorr-2020.5.1.tar.gz

Download URL hnccorr-2020.5.1.tar.gz
Size 33.7 kB
Tags Source
SHA-256 checksum
How to use checksums
281ffb4e50066c0f415b2110ba93988e53b47cddaf4729551214786018939d3a
BLAKE2b-256 checksum
How to use checksums
b0d13f768a763f60849c734fdb29949887a3ade97119a16d6bc8f92e83d9b8de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / hnccorr-2020.5.1-py3-none-any.whl

Download URL hnccorr-2020.5.1-py3-none-any.whl
Size 31.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa0836ed76c9259986a34e1e18a86ae3f9b9669538157d770bf3ab3e99eca193
BLAKE2b-256 checksum
How to use checksums
fdc0ae09b57581c9ddba19773b1571c0c1d4c1eff7753062b02cb7c219357f3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

2020.5.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page