Skip to content

Conversation

@mattloose
Copy link
Contributor

Summary
This PR addresses several critical bugs and implements improvements across CNV analysis, fusion detection, and system performance. The changes enhance data handling robustness, fix pandas FutureWarnings, and improve overall system stability.

🔧 Fixes and Improvements

  1. CNV Analysis Enhancements
    Added comprehensive CNV analysis method (analyze_cytoband_cnv) with dynamic threshold detection
    Improved data validation with proper checks for cnv_dict and bin_width availability
    Enhanced logging with detailed debug information for CNV analysis processes
    Fixed regex patterns in file parsing (changed "\s+" to r"\s+" for proper regex handling)
    Improved cleanup handling in CNV analysis objects
  2. Fusion Detection Robustness
    Enhanced gene data handling in FusionSection with proper null checks
    Added validation to ensure complete gene information before processing fusion pairs
    Improved error handling with warning logs for missing or incomplete gene data
    Fixed pandas FutureWarning in FusionObjectClass by replacing deprecated groupby operations with explicit iteration
  3. System Performance and Stability
    Reduced telemetry update frequency from 2 minutes to 5 minutes to improve system performance
    Fixed string formatting issues in break point detector (removed stray backslashes)
    Updated version to 0.3.1 to reflect these improvements
  4. Code Quality Improvements
    Enhanced error handling throughout the codebase
    Improved logging with more descriptive debug messages
    Better resource management with proper timer cleanup

📊 Technical Details
Files modified: 6 files
Lines added: 343
Lines removed: 27

Key areas: CNV analysis, fusion detection, telemetry, error handling

🧪 Testing
All changes maintain backward compatibility
Enhanced error handling prevents crashes from missing data
Improved logging facilitates debugging and monitoring

�� Breaking Changes
None - all changes are backward compatible improvements and bug fixes.

…s, enhance gene data handling in FusionSection, and improve CNV analysis with dynamic thresholds and better logging.
@mattloose mattloose merged commit f0672e3 into dev Jul 21, 2025
1 check passed
@mattloose mattloose deleted the bugs/cnv_report branch July 21, 2025 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants