Tutorials¶
Welcome to the sleap-roots tutorials! These interactive Jupyter notebooks provide hands-on walkthroughs of analyzing plant root systems with different pipeline types.
Overview¶
Each tutorial demonstrates a complete analysis workflow from loading SLEAP predictions to computing and exporting morphological traits. The notebooks include:
- Step-by-step code examples
- Visualization of intermediate results
- Trait computation and interpretation
- Export to CSV for downstream analysis
Available Tutorials¶
Primary Pipelines¶
-
Dicot Pipeline
Analyze dicot root systems with primary and lateral roots (soy, canola, arabidopsis).
-
Younger Monocot Pipeline
Process early-stage monocots with primary and crown roots (rice, maize).
-
Older Monocot Pipeline
Analyze mature monocots with crown roots only (rice, maize).
Multi-Plant Pipelines¶
Specialized Pipelines¶
How to Use These Tutorials¶
Option 1: View Online¶
All tutorials are rendered directly in the documentation. You can read through them and copy code snippets as needed.
Option 2: Run Interactively¶
To run the notebooks yourself:
-
Clone the sleap-roots repository:
-
Install with dev dependencies:
-
Launch Jupyter:
-
Open any tutorial notebook and run the cells.
Data Requirements¶
The tutorials use example data included in the repository's test fixtures. To use your own data:
- Replace file paths with your SLEAP prediction files (
.h5,.slp) - Ensure your SLEAP models match the expected node structure for each pipeline
- See Data Formats for details
Troubleshooting¶
Notebook won't run:
- Ensure you've installed sleap-roots: pip install sleap-roots
- Check that Git LFS data is downloaded: git lfs pull
Missing data files:
- The example data is stored with Git LFS
- Run git lfs install && git lfs pull to download
Trait values look wrong: - Verify your SLEAP predictions use the correct skeleton structure - Check pixel-to-mm conversion if needed (see Trait Reference)
Next Steps¶
After completing a tutorial:
- Read the Pipeline Guide for in-depth explanations
- Explore the Trait Reference to understand computed traits
- Check the Cookbook for advanced recipes
- See Batch Processing for high-throughput analysis