Getting Started with hdsemg-pipe¶
This guide will help you get started with the hdsemg-pipe application and walk you through the basic workflow for processing HD-sEMG data.
Installation¶
Before you begin, make sure you have installed hdsemg-pipe and its dependencies as described in the Installation Guide.
Initial Setup¶
- Launch hdsemg-pipe
- Configure the application settings (Settings -> Preferences):
- Set the work folder path where your data will be processed
- Configure the Channel Selection App path
- Set the OpenHD-EMG virtual environment path
See Application Settings for detailed configuration instructions.
Basic Workflow¶
The hdsemg-pipe application guides you through five main steps to process your HD-sEMG data:
1. Open Files¶
- Click on the "Open File" button
- Select your
.otb
file(s) from OT Bioelettronica devices - The application will automatically create a workspace structure
- Files are automatically preprocessed (DC offset correction)
2. Grid Association¶
- Select grids from your loaded files
- Combine multiple grids if needed
- Name your grid associations
- Save the configuration
Learn more about Grid Association
3. Define Region of Interest (ROI)¶
- Visualize your signals
- Select the time range of interest
- Apply the selection to all files
- Review the cropped data
Learn more about ROI Definition
4. Channel Selection¶
- Launch the external channel selection application
- Process each file to select valid channels
- Monitor the progress
- Verify the results
Learn more about Channel Selection
5. Decomposition Results¶
- Map decomposition results to channel selections
- Review the mappings
- Launch OpenHD-EMG to visualize results
Learn more about Decomposition Results
Workspace Structure¶
The application automatically creates and manages the following folder structure:
. ├── original_files/ ├── associated_grids/ ├── channelselection/ ├── decomposition/ └── cropped_signal/
Each folder serves a specific purpose in the processing pipeline:
- original_files/
: Contains your imported and preprocessed data
- associated_grids/
: Stores grid association configurations
- cropped_signal/
: Contains the ROI-defined data segments
- channelselection/
: Stores the results of channel selection
- decomposition/
: Contains final decomposition results
Progress Tracking¶
The Dashboard provides visual feedback on your progress: - Completed steps are marked with a check icon - Current step is highlighted - Upcoming steps are shown but may be disabled until prerequisites are met
Resume where you left off¶
If you close the application or need to pause your work, since the application saves a file during each step, we have implemented a feature where you can resume your work by reopening a hdsemg-pipe workfolder. The application automatically detects the last completed step and allows you to continue from there. To do that, you have two options: 1. Click on the Folder Button next to the Folder Stucture display, which will open a file explorer where you can select your old workfolder. 2. Settings -> Open Existing Workfolder**: This will open a dialog where you can select your old workfolder.
Now the application will look for all expected folders in the selected path and reconstruct the folder state based on the files in the specific subfolders. This allows you to continue processing without losing any progress.
Common Issues¶
- File Loading Problems
- Verify file format compatibility
- Check file permissions
-
Ensure sufficient disk space
-
External Application Errors
- Verify paths in settings
- Check application compatibility
-
Review connection settings
-
Processing Delays
- Large files may take longer to process
- Multiple files increase processing time
- Consider available system resources
Getting Help¶
If you encounter issues: 1. Check the detailed documentation for each step 2. Set logging level to DEBUG in settings 3. Open an issue on GitHub with: - Detailed description of the problem - Steps to reproduce - Application logs - System information