Installation¶
This guide will help you install SPIMquant and its dependencies.
Prerequisites¶
Hardware Requirements¶
SPIMquant is computationally intensive and requires:
- Memory: At least 16GB RAM (32GB+ recommended)
- The
greedydeformable registration can consume significant memory - More memory allows for faster parallel processing
- Storage: Fast local storage for temporary files
- Processing generates large intermediate files
- SSD storage recommended for performance
- CPU: Multiple cores benefit parallelization
- More cores = faster processing
- Recommended: 8+ cores
Software Requirements¶
- Operating System: Linux (64-bit)
- pixi: Package manager for managing dependencies
- Manages Python packages and external tools automatically
- Handles tools like
greedy,ANTs,c3d
Installation Steps¶
1. Install pixi¶
If you don't have pixi installed, install it using:
After installation, restart your terminal or source your shell configuration:
2. Clone the Repository¶
3. Install Dependencies¶
For regular usage:
For development (includes formatters, linters, and visualization tools):
This will create a conda environment and install all required dependencies including:
- Python packages (snakemake, snakebids, zarr, dask, etc.)
- Image processing tools (greedy, ANTs, c3d)
- Cloud storage plugins (for S3, GCS)
Verify Installation¶
Test that SPIMquant is installed correctly:
You should see the command-line interface help message.
Sample Dataset¶
A sample dataset for testing is available here.
The sample includes:
- Down-sampled mouse brain OME-Zarr data in BIDS format
- Reference template files
- Example configuration file
Next Steps¶
- Quick Start Guide: Run your first SPIMquant workflow
- Configuration: Learn about configuration options
- CLI Reference: Explore command-line options
Troubleshooting¶
Common Issues¶
Installation fails with conda/mamba errors:
- Try updating pixi:
curl -fsSL https://pixi.sh/install.sh | bash - Clear pixi cache:
rm -rf ~/.pixi/cache
"Command not found" after installation:
- Ensure pixi is in your PATH
- Restart your terminal
- Use
pixi run spimquantinstead of justspimquant
Out of memory errors:
- Reduce the number of parallel jobs:
--cores 4instead of--cores all - Process smaller regions or lower resolution data first
- Increase available system memory
Getting Help¶
If you encounter issues:
- Check the FAQ
- Search GitHub Issues
- Open a new issue with:
- Your system information (
uname -a) - SPIMquant version (
pixi run spimquant --version) - Full error message and stack trace