Skip to main content

Utility tools for system neuroscience research, including Open Source Wrapper or Parser

Project description

neuralib

PyPI - Python Version PyPI version Downloads

Ruff Document Status

Utility tools for rodent system neuroscience research, including Open Source Wrapper or Parser

See the Documentation and Examples

Checkout Release notes

Installation

  • First, install common dependencies in the conda env with Python>=3.9 (>=3.11 not yet tested)

    • pip install neura-library
  • Install all dependencies using

    • pip install neura-library[all]
  • Install the minimal required dependencies according to usage purpose . For example:

    • Choices in []: atlas, scanner, calimg, segmentation, model, track, gpu, profile, imagelib, tools, all
    • Use atlas module: pip install neura-library[atlas]
    • Use segmentation module: pip install neura-library[segmentation]
  • For developer for anyone want to contribute, run also:

    • pip install neura-library[dev]
    • Setup pre-commit by: pre-commit install
    • Do dry run ruff lint check by: ruff check .

Module

atlas

  • Module for whole brain, slice view visualization and rois classification
    • neuralib.atlas.ccf: Customized hierarchical classification for the mouse brain atlas
    • neuralib.atlas.brainrender: cli-based wrapper for brainrender
    • neuralib.atlas.cellatlas: Volume and cell types counts for each brain region, refer to Cell Atlas
    • neuralib.atlas.ibl: Slice view plotting wrapper for ibllib and iblatlas

calimg

  • Module for 2photon calcium imaging acquisition and result parsing
    • neuralib.calimg.scan_image: Data acquired from ScanImage ( under DEV)
    • neuralib.calimg.scanbox: Data acquired from Scanbox
    • neuralib.calimg.suite2p: Result parser for suite2p
    • neuralib.calimg.spikes: dF/F to spike activity (OASIS/Cascade)

segmentation

  • Module for neuronal segmentation
    • neuralib.segmentation.cellpose: Result Parser and batch running for cellpose
    • neuralib.segmentation.stardist: Result Parser and batch running for stardist

model

  • neuralib.model.bayes_decoding: Position decoding using population neuronal activity

  • neuralib.model.rastermap: Run and result parser for rastermap

morpho

  • Morphological reconstruction data presentation

tracking

  • Module for other open-source tools wrapper
    • neuralib.tracking.deeplabcut: Result parser for DeepLabCut

    • neuralib.tracking.facemap: Result parser for facemap

Utilities Modules

  • neuralib.argp: Use argparse as dataclass field

  • neuralib.persistence: caching the analyzed results (i.e., concatenation for statistic purpose)

  • neuralib.bokeh_model: Interactive dashboard visualization

  • neuralib.sqlp: Python functions to build a SQL (sqlite3) statement.

  • neuralib.plot: Module for general plotting purpose

  • neuralib.imglib: Image processing library (under DEV)

  • neuralib.tools.gspread: Google spreadsheet API wrapper for read/write

  • neuralib.tools.slack_bot: Real-time slack notification bot for analysis pipeline

  • neuralib.util.cli_args: run script as subprocess

  • neuralib.util.color_logging: logging with color format

  • neuralib.util.gpu: OS-dependent gpu info

  • neuralib.util.profile_test: simple benchmark profile testing

  • neuralib.util.table: rich table visualization

  • neuralib.util.segments: Epoch or value segments

CLI project.scripts

  • brender: see examples in api

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

neura_library-0.3.3.tar.gz (218.9 kB view details)

Uploaded Source

Built Distribution

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

neura_library-0.3.3-py3-none-any.whl (271.0 kB view details)

Uploaded Python 3

File details

Details for the file neura_library-0.3.3.tar.gz.

File metadata

  • Download URL: neura_library-0.3.3.tar.gz
  • Upload date:
  • Size: 218.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.14

File hashes

Hashes for neura_library-0.3.3.tar.gz
Algorithm Hash digest
SHA256 fdda3c1830a4e61c442f146ebc20b917a3dc3c8a0f7a340a88a56176969bbd18
MD5 90b757fbea4c13f34b7e0851faa9cbb1
BLAKE2b-256 d4824d1fb373e1cf2cd582e7a8493672e9c8037f3556f619f2a544c052ca38a0

See more details on using hashes here.

File details

Details for the file neura_library-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: neura_library-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 271.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.14

File hashes

Hashes for neura_library-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5ebf872dbc23c0620ceca78957dae3b81d6cfe492fae658d171bf39fb0aced2a
MD5 ffeb1e4267b742d8b530fcf3e5693e6a
BLAKE2b-256 4771887f011373c6f71e2115e02afff031601275c82bebcb031c37d799af6d48

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