Skip to content

Channel Selection

The Channel Selection step allows you to select specific EMG channels for further processing using an external channel selection application. This step is crucial for excluding noisy or irrelevant channels from your analysis.

Overview

In this step, you can: 1. Launch the external channel selection application 2. Process multiple files in sequence 3. Track the processing progress 4. Save selected channels for further analysis

Requirements

Before using the Channel Selection step: - The external channel selection application path must be configured in the Settings - Files must have been processed through the ROI definition step - The workspace must be properly initialized

Interface Components

Main Button

  • "Select Channels" button with loading animation
  • Shows processing state visually
  • Disabled when no files are available or settings are incomplete

Progress Indicator

  • Shows current progress as "processed/total" files
  • Updates dynamically during processing
  • Example: "3/10" means 3 out of 10 files processed

Process Flow

  1. Initialization
  2. System checks for cropped input files
  3. Verifies external application path
  4. Enables/disables action button based on validation

  5. Processing Start

  6. User clicks "Select Channels" button
  7. Button shows loading animation
  8. Progress counter is reset
  9. File processing begins

  10. File Processing

  11. Files are processed sequentially
  12. External application is launched for each file
  13. Progress indicator updates after each file
  14. Results are saved automatically

  15. Completion

  16. Loading animation stops
  17. Final progress count is displayed
  18. Step is marked as complete
  19. System ready for next step

Configuration

Required Settings

The following must be configured in the application settings:

Settings > Channel Selection App Executable Path

File Handling

Input files: - Located in the ROI output directory - Must be in .mat format - Must contain valid EMG channel data

This should be a given since the files are generated by the hdsemg-pipe application.

Output files: - Saved in the channel selection output directory - Maintain original file names - Include only selected channels

Error Handling

Common Issues

  1. Missing Executable
  2. Error Message: "Channel Selection App Executable Path is not set"
  3. Solution: Configure the path in Settings

  4. No Input Files

  5. Warning: "No .mat files found"
  6. Solution: Ensure ROI step was completed successfully

  7. Processing Errors

  8. Check external application logs
  9. Verify file permissions
  10. Ensure sufficient disk space

Best Practices

  1. Before Processing
  2. Verify external application configuration
  3. Check input file availability
  4. Ensure workspace has sufficient space

  5. During Processing

  6. Allow each file to process completely
  7. Monitor progress indicator
  8. Don't close the application during processing

  9. After Processing

  10. Verify output files
  11. Check processing counts match expected totals
  12. Proceed to next step only after completion

Next Steps

After channel selection is complete: 1. Verify the number of processed files matches your input 2. Check output directory for processed files 3. Proceed to Grid Association

Technical Notes

  • The step uses a LoadingButton component for visual feedback
  • Progress is tracked through the global state
  • File processing is handled by the external application
  • The step is automatically marked as complete when all files are processed

Troubleshooting

If you encounter issues: 1. Check application settings 2. Verify input file integrity 3. Ensure external application is working correctly 4. Check workspace permissions 5. Review application logs for error messages