Skip to content

About

A web-based tool for proofreading mitochondria segmentation skeletons with interactive 3D visualization and Neuroglancer integration.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Mitochondria Skeleton Proofreading Tool

Status Python Flask License

A web-based tool for proofreading mitochondria segmentation skeletons with interactive 3D visualization and Neuroglancer integration.

⚠️ Note: This project is currently under active development.

Features

✨ Interactive 3D Skeleton Visualization - View and interact with mitochondria skeletons in 3D
🔗 Neuroglancer Integration - Navigate directly to positions in the original EM data
📊 Cell-Based Filtering - Group and filter mitochondria by cell ID
⚡ Node Classification - Label branch nodes as correct or incorrect
📈 Progress Tracking - Monitor annotation progress with live statistics
🔍 Advanced Filtering - Filter by status, cell, size, and node count

Screenshots

Dataset & Segment Selection

Home Page

Interactive Annotation Interface

Annotation View

Quick Start

# Navigate to project directory
cd /groups/cellmap/cellmap/zouinkhim/skelaton_classifier

# Activate virtual environment
source .venv/bin/activate

# Install dependencies
pip install flask networkx numpy neuroglancer

# Run the application
python app.py

Access at http://localhost:5001

Workflow

  1. Select Dataset → Choose from available C. elegans datasets
  2. Filter Segments → Filter by cell ID, size, or annotation status
  3. Annotate Nodes → Label branch nodes as correct (Y) or incorrect (N)
  4. Navigate Data → Click nodes to jump to position in Neuroglancer
  5. Track Progress → Monitor completion statistics in real-time

Configuration

config.json

{
  "neuroglancer_split_ratio": 70.0,    // Graph vs Neuroglancer split
  "only_branches": true,                // Annotate only branch nodes
  "autofilter": true,                   // Enable cell-based filtering
  "get_top": 100,                       // Top N mitochondria per cell
  "biggest": true                       // Get biggest (true) or smallest (false)
}

datasets.json

Configure datasets with Neuroglancer URLs and metadata:

{
  "jrc_c-elegans-bw-1": {
    "name": "C. elegans BW-1",
    "neuroglancer_url": "https://neuroglancer-demo.appspot.com/...",
    "description": "C. elegans dataset"
  }
}

Key Features

🎯 Smart Filtering

  • Filter by cell ID to focus on specific cells
  • Hide segments with 0 nodes automatically
  • Sort by volume, cell, or annotation progress
  • Pagination for large datasets

📊 Data Management

  • Annotations saved per segment (JSON format)
  • Progress tracking with statistics
  • Support for multiple C. elegans datasets
  • Integration with CellMap data structure

🔧 Keyboard Shortcuts

  • Y - Mark node as correct
  • N - Mark node as incorrect
  • Click nodes → Auto-navigate to Neuroglancer

Architecture

app.py              # Flask application & routes
skeleton_parser.py  # Skeleton file parser & filtering
neuroglancer_manager.py  # Neuroglancer integration
config.json         # Application settings
datasets.json       # Dataset configurations
outputs/            # Per-dataset annotation files
  └── {dataset}/
      ├── segments/
      │   └── {segment_id}_node_labels.json
      └── segment_labels.json

License

BSD 3-Clause License - Copyright (c) 2024, Howard Hughes Medical Institute. See LICENSE for details.


Status: 🚧 Under Active Development
CellMap Project | Mitochondria Segmentation Research

About

A web-based tool for proofreading mitochondria segmentation skeletons with interactive 3D visualization and Neuroglancer integration.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages