Skip to main content
Thalamus — real-time, closed-loop, multimodal data acquisition

Real-time, synchronized, closed-loop multimodal data acquisition — built for the operating room and the research lab.

Release Python Platforms License Docs Paper

Quick Start · How it works · Node Reference · Examples · Paper


Thalamus is an open-source platform for real-time, synchronized, closed-loop multimodal data capture, specifically tailored to meet the stringent demands of neurosurgical environments — while serving equally well in the research lab.

What's new

Highlights from the most recent releases (see CHANGELOG.md for the full history):

  • Behavioral tasks — author and run trial-based experiments with the Task Controller: a Qt task runtime, a library of ready paradigms, and a simple async task API.
  • Eye calibration — an interactive calibration tool that maps raw eye-camera signal to gaze/screen coordinates (Projective and Angular-Scaling models, point nudging, undo/redo, reward delivery).
  • Live state editing — inspect and change a running pipeline's configuration from the command line with the registry tool.
  • Extensible plugins — the plugin API lets native extensions read analog data from other nodes and inject data back in.
  • Reproducible recordings — every recording now stores the build type, version, and git commit, and archives the exact task code that ran.

How it works

Thalamus assembles experiments from a pipeline of nodes. Each node is a small, configurable unit that plays one of four roles:

Role Does Examples
🟢 Generators produce data WAVE, NIDAQ, INTAN, SPIKEGLX, GENICAM
🔵 Consumers record / output data STORAGE2, LOG, NIDAQ_OUT, OPHANIM
🟣 Transformers consume → produce data OCULOMATIC, ALGEBRA, LUA, NORMALIZE, ARUCO
🟠 Controllers coordinate the pipeline RUNNER2, TASK_CONTROLLER

You build an experiment by adding nodes, configuring them, and subscribing consumers to the producers they care about. Recorded data is written to a compact .tha capture file and converted to analysis-friendly formats (HDF5, CSV, Parquet, …) with the bundled tooling. See the Node Reference for the full catalog of node types and the Concepts guide for the data model and file format.

Overview

Thalamus facilitates the advancement of clinical applications of Brain-Computer Interface (BCI) technology by integrating behavioral and electrophysiological data streams.

Design requirements Thalamus prioritizes
  1. Requires minimal setup within an operating room, clinical and research environment and could be easily controlled and quickly modified by the experimenter​
  2. Operated with high reliability with few crashes​
  3. Fail-safe architecture that guarantees minimal data loss in the setting of a crash​
  4. Allows for real-time computation to support visualizations of research and clinical data streams​
  5. Closed-loop control based on research and/or clinical data streams​
  6. Acquires synchronous data from the available research and clinical sensors including relevant behavioral, physiologic, and neural sensors that could easily be scaled over time​
  7. Supports a high-bandwidth, low latency, parallel distributed architecture for modular acquisition and computation that could easily be upgraded as technology continues to advance​
  8. Open-source with source code available to support research use​
  9. Embodies best practice in software engineering using unit tests and validation checks​
  10. Supports advances in translational applications and, hence, also operates in research domains​

Installation

Download the wheel for your platform from the Releases page (or the Actions tab). The package is published as thalamus_neuro; the importable module remains thalamus. Builds are provided for Linux (manylinux), Windows (10+), and macOS (arm64). Thalamus requires Python 3.10+.

We recommend a virtual environment so the bundled grpc version is not disturbed:

python -m venv venv-thalamus
source venv-thalamus/bin/activate        # Linux/macOS
call venv-thalamus/scripts/activate      # Windows

Then install the wheel for your platform, for example:

# Linux
python -m pip install thalamus_neuro-1.0.16-py3-none-manylinux_2_39_x86_64.whl
# Windows
python -m pip install thalamus_neuro-1.0.16-py3-none-win_amd64.whl
# macOS (arm64)
python -m pip install thalamus_neuro-1.0.16-py3-none-macosx_12_0_arm64.whl

Note — Drivers and runtimes for third-party devices (e.g. GenTL/GenICam cameras, National Instruments DAQs) must be installed separately. Thalamus itself only needs a standard computer with enough RAM for in-memory operation.

Run

python -m thalamus.pipeline            # Data pipeline (no task controller)
python -m thalamus.task_controller     # Data pipeline and task controller
python -m thalamus.hydrate FILE        # Convert a .tha capture file to HDF5
python -m thalamus.dataframe ...        # Export a node's data to CSV/Parquet/…
python -m thalamus.record_reader2 FILE  # Inspect the contents of a .tha file

Documentation

Full documentation lives at https://cajigaslab.github.io/Thalamus/:

  • Quick Start — install, build a pipeline, record, and analyze your first dataset.
  • Concepts & Architecture — the node pipeline, data model, capture-file format, and tooling.
  • Examples — runnable, copy-paste tutorials (including a hardware-free walkthrough).
  • Node Reference — every node type and its configuration.

Runnable example scripts also live in the examples/ folder. For the figures in our paper, see the SimpleUseCase folder. Release history is in CHANGELOG.md.

Contributing

Like all open-source projects, Thalamus benefits from your involvement, suggestions, and contributions. Use the Issues tab to report bugs and request features, and see CONTRIBUTING.md for the repository layout, development setup, how to add a new node type, and the pull-request and release process.

License & citation

Thalamus is released under the GPL-3.0 license (see LICENSE). If you use Thalamus in your work, please cite our paper:

Thalamus: a real-time, closed-loop platform for synchronized multimodal data acquisition. Communications Engineering (Nature). https://www.nature.com/articles/s44172-026-00646-z

Metadata

Release files for thalamus-neuro 1.0.48

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

Built distributions (wheels)

Table of built distributions (wheels) for thalamus-neuro 1.0.48
File Interpreter ABI Platform
thalamus_neuro-1.0.48-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
thalamus_neuro-1.0.48-py3-none-manylinux_2_39_x86_64.whl Python 3 none Linux glibc 2.39+ x86-64 Details
thalamus_neuro-1.0.48-py3-none-macosx_12_0_arm64.whl Python 3 none macOS 12.0+ ARM64 Details

Total release size: 112.9 MB

Release files / thalamus_neuro-1.0.48-py3-none-win_amd64.whl

Download URL thalamus_neuro-1.0.48-py3-none-win_amd64.whl
Size 43.6 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
74d0a40da4982ec398ed6b743fb3a82d9ad32a5a54777846cafed90c641102c1
BLAKE2b-256 checksum
How to use checksums
4bd590920a9f0654272d2cf623da38c6b10c2874e2e07b3ab0e35c06be128085
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / thalamus_neuro-1.0.48-py3-none-manylinux_2_39_x86_64.whl

Download URL thalamus_neuro-1.0.48-py3-none-manylinux_2_39_x86_64.whl
Size 40.6 MB
Tags Linux glibc 2.39+ x86-64 Python 3
SHA-256 checksum
How to use checksums
15f39e71951d46f863f6a87b45e4d9e9e879bcb62da7c6e32be83fb4ac84d44c
BLAKE2b-256 checksum
How to use checksums
4dbe9787d64d4a00e68da269d1ac541d22d24c710f2f185ed75495bd3a490023
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / thalamus_neuro-1.0.48-py3-none-macosx_12_0_arm64.whl

Download URL thalamus_neuro-1.0.48-py3-none-macosx_12_0_arm64.whl
Size 28.7 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
6674a2bc7149b0ef66e3f3919e49bf578f8115e05d7da584fd748f1969980f54
BLAKE2b-256 checksum
How to use checksums
8840372a7883512cafe53f7c071660a6e409b7e5068f4857a41adb1e31d3b66a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

1.0.55

3 release files

1.0.54

3 release files

This release

1.0.48 This release

3 release files

1.0.47

3 release files

1.0.46

3 release files

1.0.45

3 release files

1.0.43

3 release files

1.0.42

3 release files

1.0.41

3 release files

1.0.40

3 release files

1.0.39

3 release files

1.0.37

3 release files

1.0.36

3 release files

1.0.31

3 release files

1.0.27

3 release files

1.0.25

3 release files

1.0.24

3 release files

1.0.22

3 release files

1.0.20

3 release files

1.0.19

3 release files

1.0.18

3 release files

1.0.13

3 release files

1.0.12

3 release files

1.0.11

3 release files

1.0.6

3 release files

1.0.4

3 release files

1.0.3

3 release files

1.0.2

3 release files

1.0.1

3 release files

0.3.49

3 release files

0.3.48

3 release files

0.3.47

3 release files

0.3.46

3 release files

0.3.42

3 release files

0.3.41

3 release files

0.3.40

1 release file

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