Skip to main content

Toolbox for preprocessing and analyzing neurobehavioral field data

Project description

FieldNeuroToolbox (fnt)

Preprocessing and analysis toolbox for neurobehavioral data.

Authored by Caleb C. Vogt, PhD in collaboration with Claude.

Overview

Pre-requisites

  • Github desktop
  • Anaconda
  • ffmpeg (and the bin file saved to windows environmental path variable, look up youtube tutorial)
  • VS Code
  • R and R studio (converting code to python slowly but surely)

Windows Installation

Clone the fnt github repo.

Install the package in editable mode. Any changes made to the code within the github repo will be availbale within the conda environment.

conda create --name fnt python
conda activate fnt 
cd C:\GitHub\fnt 
pip install -e . 

GPU Support for Video Tracking (Recommended)

For SAM-based video tracking, GPU acceleration provides ~50x speedup. Install PyTorch with CUDA support:

conda activate fnt
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118

Note: This requires an NVIDIA GPU with CUDA support. The tracker will work on CPU but will be significantly slower (~10s per SAM frame vs ~0.1s on GPU).

To verify GPU detection:

python -c "import torch; print('CUDA available:', torch.cuda.is_available()); print('GPU:', torch.cuda.get_device_name(0) if torch.cuda.is_available() else 'None')"

You should see CUDA available: True and your GPU name.

Launch the GUI

After installation, you can launch the FieldNeuroToolbox GUI in several ways:

Option 3: Console script (if properly registered)

conda activate fnt
fnt-gui

Mac Installation

Open terminal

conda create --name fnt python
conda activate fnt 
cd ~/Documents/GitHub/fnt # relative to home directory
pip install -e . 

Notes:

  • if things aren't runnning in the jupyter notebooks, try restarting the kernel/environment.
  • package dependencies listed in the pyproject.toml

Organization and general notes

  • Core functions are stored in fnt folder
  • The Notebooks folder contains notebooks and analyses that are either in progress and will eventually be made into standalone functions or are notebooks for processing data.
  • Analyses for projects are located in the notebooks folder, and organized by projects
  • I attempt to use csv files as much as possible

General contribution guidelines

  • Functions should always be written in lower case with underscores.

QuickScripts

  • Here are python scripts that can be directly dragged and dropped within a folder of interest and ran via cmd line (or opened with cmd line) in order to a quick operation. Most of these QuickScripts are (or will be) included as standalone functions within the main FNT repo, but sometimes it is just faster and easier to drag and drop a file and delete it when it is done.
  • I try to make most scripts compatible with both MacOS and windows.

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

fnt-0.1.0.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

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

fnt-0.1.0-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fnt-0.1.0.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for fnt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 01c49a0e66f30214a46eca3f70030b829aec23078d66a0879b6f01266c5fdff0
MD5 b488e819926df2c1a3d9c5a9ac743b46
BLAKE2b-256 2fe633bc49a4091ea0532d888ac6c108add61075c472cc722e18b37f53865cfd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fnt-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for fnt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0d6d9e1956802389a449d401ba3577d09f5e4809a45128d674b917a67105c09
MD5 0ac61d0cb2387a9d83d9f0eccba56b3f
BLAKE2b-256 d1dd7ad6f8849b3e466c119bbcd3beea65b947c2ef08b1ea087d154fce240712

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