-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(getSubnetworkFromIndra): Fix bugs related to multiple matches for an HGNC ID #28
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## devel #28 +/- ##
==========================================
- Coverage 88.28% 86.69% -1.59%
==========================================
Files 7 7
Lines 384 406 +22
==========================================
+ Hits 339 352 +13
- Misses 45 54 +9 ☔ View full report in Codecov by Sentry. |
User description
Motivation and Context
Got this error
[Error in vapply ... values must be length 1, but FUN(X[[1]]) result is length 0](https://stackoverflow.com/questions/42426914/error-in-vapply-values-must-be-length-1-but-funx11-result-is-length-0)
Changes
Please provide a detailed bullet point list of your changes.
Testing
Please describe any unit tests you added or modified to verify your changes.
Checklist Before Requesting a Review
PR Type
Bug fix, Tests
Description
Fixed handling of multiple matches for HGNC IDs in
getSubnetworkFromIndra
.Improved error handling for invalid UniProt mnemonic ID inputs.
Enhanced unit tests to validate new error messages and edge cases.
Updated error messages for clarity and user guidance.
Changes walkthrough 📝
utils_annotateProteinInfoFromIndra.R
Enhanced error handling for UniProt mnemonic ID inputs
R/utils_annotateProteinInfoFromIndra.R
tryCatch
to handle conversion errors gracefully.utils_getSubnetworkFromIndra.R
Fixed HGNC ID matching and improved error messages
R/utils_getSubnetworkFromIndra.R
test-getSubnetworkFromIndra.R
Updated and enhanced unit tests for error handling
tests/testthat/test-getSubnetworkFromIndra.R