Thanks to visit codestin.com
Credit goes to docs.datajoint.com

Skip to content

Tutorials

Learn DataJoint by building real pipelines.

These tutorials guide you through building data pipelines step by step. Each tutorial is a Jupyter notebook, published here with its code and its executed outputs, so you can follow the whole pipeline without leaving the page. Start with the basics and progress to domain-specific and advanced topics.

Want to run them yourself? Every notebook can be downloaded and executed against your own MySQL or PostgreSQL database. Installation covers the setup: DataJoint, a database, Jupyter, and getting the notebooks.

Learning Paths

Choose your learning path based on your goals:

🌱 New to DataJoint

Goal: Understand core concepts and build your first pipeline

Path:

  1. First Pipeline β€” 30 min β€” Tables, queries, four core operations
  2. Schema Design β€” 45 min β€” Primary keys, relationships, table tiers
  3. Data Entry β€” 30 min β€” Inserting and managing data
  4. Queries β€” 45 min β€” Operators, restrictions, projections
  5. Try an example: University Database β€” Complete pipeline with realistic data

Next: Read Relational Workflow Model to understand the conceptual foundation.


πŸš€ Building Production Pipelines

Goal: Create automated, scalable data processing workflows

Prerequisites: Complete basics above or have equivalent experience

Path:

  1. Computation β€” Automated processing with Imported/Computed tables
  2. Object Storage β€” Handle large data (arrays, files, images)
  3. Distributed Computing β€” Multi-worker parallel execution
  4. Practice: Fractal Pipeline or Blob Detection

Next:


πŸ§ͺ Domain-Specific Applications

Goal: Build scientific data pipelines for your field

Prerequisites: Complete basics, understand computation model

Production Software: DataJoint Elements

Standard pipelines for neurophysiology experiments, actively used in many labs worldwide. These are not tutorialsβ€”they are production-ready modular pipelines for calcium imaging, electrophysiology, array ephys, optogenetics, and more.

Learning tutorials (neuroscience):

Complete demo pipeline:

  • LC-MS Demo β€” Liquid chromatography-mass spectrometry pipeline showcasing DataJoint best practices with PostgreSQL: sample tracking, scan acquisition, mass spectral analysis, and parameterized peak detection

General patterns:


πŸ”§ Extending DataJoint

Goal: Customize DataJoint for specialized needs

Prerequisites: Proficient with basics and production pipelines

Path:

  1. Custom Codecs β€” Create domain-specific data types
  2. JSON Data Type β€” Semi-structured data patterns
  3. SQL Comparison β€” Understand DataJoint's query algebra

Next:


Basics

Core concepts for getting started with DataJoint:

  1. First Pipeline β€” Tables, queries, and the four core operations
  2. Schema Design β€” Primary keys, relationships, and table tiers
  3. Data Entry β€” Inserting and managing data
  4. Queries β€” Operators and fetching results
  5. Computation β€” Imported and Computed tables
  6. Object Storage β€” Blobs, attachments, and object stores

Examples

Complete pipelines demonstrating DataJoint patterns:

Domain Tutorials

Real-world scientific pipelines:

Advanced Topics

Extending DataJoint for specialized use cases: