Repository navigation
Conversation
Recent S4Vectors versions build the aggregate() evaluation environment from an object's mcols columns via makeFixedColumnEnv(), which requires a same-named accessor function for every column. Columns without one (e.g. rmsk's "swScore") abort with "object 'swScore' of mode 'function' was not found", breaking the vignette and any annot_from_gr()/annot_snps() call. Replace all aggregate(x, by, expr, drop=FALSE) calls with explicit grouped reductions that do not rely on S4Vectors' non-standard evaluation: - add internal collapse_hits_annotations() helper for the annotation-string collapses in annot_from_gr() and annot_snps() - use extractList() + mean()/sum() for the numeric mispriming reductions in utils.R Behavior is preserved, including empty groups collapsing to "" and annot_from_gr() converting those to NA. Bump version to 1.11.1. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Recent S4Vectors versions build the aggregate() evaluation environment from an object's mcols columns via makeFixedColumnEnv(), which requires a same-named accessor function for every column. Columns without one (e.g. rmsk's "swScore") abort with "object 'swScore' of mode 'function' was not found", breaking the vignette and any annot_from_gr()/annot_snps() call.
Replace all aggregate(x, by, expr, drop=FALSE) calls with explicit grouped reductions that do not rely on S4Vectors' non-standard evaluation:
Behavior is preserved, including empty groups collapsing to "" and annot_from_gr() converting those to NA. Bump version to 1.11.1.