Repository navigation
Conversation
S4Vectors 0.53.0 (commit 904dc54) removed the standardGeneric ->
FilterClosure coercion, so passing the isSNV generic directly to
FilterRules() now fails at evaluation time with "call to
standardGeneric("isSNV") apparently not from the body of that generic
function". This broke vignette building on r-universe for every
platform. Wrapping the generic in an ordinary closure works with both
old and new S4Vectors.
Co-Authored-By: Claude <noreply@anthropic.com>
Author
|
Upstream report: Bioconductor/S4Vectors#146 |
This branch has not been deployed
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.
Problem
VariantAnnotation's source build fails on r-universe (build page, run 42372061105), so every binary build fails as well. One of the two vignette failures is in
filterVcf.Rmd:The vignette passes the S4 generic directly as a filter rule:
S4Vectors 0.53.0 (Bioconductor/S4Vectors@904dc54) disabled
setAs("standardGeneric", "FilterClosure"). A generic is now coerced as a plain function into aFilterClosure, and calling it fails insidestandardGeneric().Fix
Wrap the generic in a closure:
isSNV=function(x) isSNV(x). This works with both old and new S4Vectors. No otherFilterRules()call inman/orinst/unitTests/passes a generic directly.Verification
Run locally against S4Vectors 0.53.0 (built from the S4Vectors devel branch):
filterVcf(..., filters=FilterRules(list(isSNV=isSNV)))reproduces the r-universe error exactly.filterVcf(..., filters=FilterRules(list(isSNV=function(x) isSNV(x))))completes (1050 lines written fromchr7-sub.vcf.gz).rmarkdown::render("vignettes/filterVcf.Rmd")completes.Related
ensemblVEP.Rmdhitting an Ensembl REST 503, is handled by Fix ensemblVEP.Rmd: guard API-dependent chunks against Ensembl REST failures #121.