Welcome to NeuraLib’s documentation!
API Reference
Packages
Installation
Installation
Release Notes
Checkout Release notes
Modules
neuralib.atlas
Module for whole brain, slice view visualization and rois classification
neuralib.atlas.ccfCustomized hierarchical classification for the mouse brain atlas
neuralib.atlas.brainrenderCLI-based wrapper for brainrender
neuralib.atlas.cellatlasVolume and cell types counts for each brain region, refer to Cell Atlas
neuralib.imaging
Module for 2-photon calcium imaging acquisition and result parsing
neuralib.imaging.scan_imageData acquired from ScanImage (under DEV)
neuralib.imaging.scanboxData acquired from Scanbox
neuralib.imaging.suite2pResult parser for suite2p
neuralib.imaging.spikesdF/F to spike activity (OASIS/Cascade)
neuralib.imaging.widefieldWide-field image sequence processing
neuralib.segmentation
Module for neuronal segmentation
neuralib.segmentation.cellposeResult parser and batch running for cellpose
neuralib.segmentation.stardistResult parser and batch running for stardist
neuralib.locomotion
Module for handle animal’s locomotion
neuralib.locomotion.epochSelection of specific epoch (i.e., running, stationary)
neuralib.locomotion.positionPosition in environment, current only support 1D circular (i.e., linear treadmill)
neuralib.model
neuralib.model.bayes_decodingPosition decoding using population neuronal activity
neuralib.model.rastermapRun and result parser for rastermap
neuralib.morpho
Morphological reconstruction data presentation
neuralib.tracking
neuralib.tracking.deeplabcutResult parser for DeepLabCut
neuralib.tracking.facemapResult 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.sqlp
Python functions to build a SQL (sqlite3) statement.
neuralib.dashboard
Interactive dashboard visualization
neuralib.plot
Module for general plotting purpose
neuralib.imglib
Image processing library
neuralib.io
File IO and example dataset
neuralib.tools.gspread
Google spreadsheet API wrapper for read/write
neuralib.tools.slack_bot
Real-time Slack notification bot for analysis pipeline
neuralib.util.color_logging
Logging with color format
neuralib.util.gpu
OS-dependent GPU info
neuralib.util.profile
Simple benchmark profile testing and debugging
neuralib.util.table
Rich table visualization
neuralib.util.segments
Epoch or value segments
CLI project.scripts
neuralib_brainrender
See examples in api
neuralib_brainrender -h
neuralib_widefield
See example in api
neuralib_widefield -h
Doc for Array type
Array[DType, [*Shape]]DType= array datatype.Shape= array shape.|= Union
Example
intorboolwith (N,3) array ->Array[int|bool, [N, 3]]floatarray with union shape (N,2) or (N,T,2) ->Array[float, [N, 2]|[N, T, 2]]
Notebook Example
Notebook
- Example notebook
neuralib.argp - Example notebook
neuralib.imaging(cellular) - Example notebook
neuralib.tracking.facemap - Example notebook
neuralib.model.rastermap(two-photon) - Example notebook
neuralib.model.rastermap(widefield) - Example notebook
neuralib.segmentation - Example notebook
neuralib.atlas - Example notebook
neuralib.plot