Skip to content

wrap dataloader and model init in try block for MMSplice#91

Open
ramprasadn wants to merge 1 commit intokircherlab:masterfrom
ramprasadn:fixmmsplice
Open

wrap dataloader and model init in try block for MMSplice#91
ramprasadn wants to merge 1 commit intokircherlab:masterfrom
ramprasadn:fixmmsplice

Conversation

@ramprasadn
Copy link

Previously, only the predict_table_fast call was inside the try/except ValueError block. If SplicingVCFDataloader or MMSplice() raised a ValueError, which can happen when no input variants fall within splice regions, the exception was unhandled and the script would crash.

This fix extends the try block to include the dataloader and model initialization, ensuring the same graceful fallback to an empty pred_dict applies regardless of where the ValueError originates.

  Extends the ValueError catch to include SplicingVCFDataloader and
  MMSplice() initialization, not just the prediction step, to handle
  cases where no variants fall in splice regions.
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.

1 participant