Bioconductor pre-review#10
Merged
Merged
Conversation
fixing makevars build issue on windows
Error in [.default(tb, cl, cl): subscript out of bounds Fix is build the confusion matrix over the union of actual and predicted labels via shared factor levels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1. Windows linker failure (Build R-release/devel/oldrel for Windows)
BLAS/LAPACK symbols (dgemm_, ddot_, etc.) were undefined because src/Makevars and src/Makevars.win never set PKG_LIBS.
Fix: added PKG_LIBS =$(LAPACK_LIBS) $ (BLAS_LIBS) $(FLIBS) to both.
2. R-devel/Linux arm64 test failure (Error in [.default(tb, cl, cl): subscript out of bounds)
In
swarmbHIVE.R, the classification metrics built table(actual_labels, predicted_labels), whose columns only contain classes the model actually predicted. Indexing tb[cl, cl] over the actual class names blew up whenever the model never predicted some class — an RNG-dependent condition, which is why only R-devel arm64 tripped it while R-release passed.Fix: build the confusion matrix over the union of actual and predicted labels via shared factor levels, so it's always square. Never-predicted classes now correctly score F1 = 0 instead of erroring. Same fix hardens balanced_accuracy and kappa, where the non-square table also silently misaligned diag().
Per run at: Bioconductor/BiocContributions#41