Coding-agent fixes to get RcisTarget passing Bioc build/check/test#44
Open
lwaldron wants to merge 12 commits into
Open
Coding-agent fixes to get RcisTarget passing Bioc build/check/test#44lwaldron wants to merge 12 commits into
lwaldron wants to merge 12 commits into
Conversation
- Coerce subselected data frame to a matrix - Skip the rankAtMax metadata column in the incidence matrix - Use graph_from_biadjacency_matrix instead of deprecated graph.incidence Co-authored-by: Antigravity <gemini@google.com>
- Use match() and explicit NA check instead of which() for robustness - Use graph_from_incidence_matrix() instead of graph_from_biadjacency_matrix() Co-authored-by: Antigravity <gemini@google.com>
Fix example graph.incidence coercion failure
- Use Authors@R instead of deprecated Author/Maintainer fields in DESCRIPTION - Replace single-letter logical variables T/F with TRUE/FALSE Co-authored-by: Antigravity <gemini@google.com>
Co-authored-by: Antigravity <gemini@google.com>
Co-authored-by: Antigravity <gemini@google.com>
Co-authored-by: Antigravity <gemini@google.com>
Fix BiocCheck errors and warnings
There was a problem hiding this comment.
Pull request overview
This PR updates RcisTarget to pass current Bioconductor build/check by modernizing package metadata, tightening R style compliance, and making documentation/examples more robust against missing suggested resources.
Changes:
- Modernizes
DESCRIPTIONby migratingAuthor/MaintainertoAuthors@R. - Updates examples/docs to avoid hard failures when the suggested rankings DB package is not installed, and updates deprecated
igraphexample usage. - Replaces shorthand logical constants /
data.tablearguments (T/F,with=F) with explicitTRUE/FALSE, plus adds a Bioconductor check GitHub Actions workflow.
Reviewed changes
Copilot reviewed 9 out of 13 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| R/priv_calcErn.R | Replaces na.rm=T with na.rm=TRUE in ranking matrix initialization. |
| R/aux_getDbRegionsLoc.R | Replaces \dontrun{} example with a runnable arrow/feather-based example. |
| R/aux_convertToTargetRegions.R | Replaces \dontrun{} example with a runnable GRanges example. |
| R/aux_addLogo.R | Replaces invert = T and with=F with TRUE/FALSE. |
| R/02_addMotifAnnotation.R | Replaces with=F with with=FALSE in a data.table subset. |
| man/getDbRegionsLoc.Rd | Mirrors the new runnable arrow/feather example in Rd. |
| man/convertToTargetRegions.Rd | Mirrors the new runnable GRanges example in Rd. |
| man/calcAUC.Rd | Guards workflow example behind requireNamespace() for suggested rankings DB package. |
| man/addSignificantGenes.Rd | Updates incidence-matrix example column selection and replaces deprecated igraph example call. |
| inst/examples/example_workflow.R | Guards workflow script behind requireNamespace() for suggested rankings DB package. |
| inst/examples/example_addSignificantGenes.R | Updates igraph incidence plotting example. |
| DESCRIPTION | Migrates to Authors@R. |
| .github/workflows/check-bioc.yml | Adds Bioconductor-flavored R CMD check workflow via reusable workflow. |
Files not reviewed (4)
- man/addSignificantGenes.Rd: Generated file
- man/calcAUC.Rd: Generated file
- man/convertToTargetRegions.Rd: Generated file
- man/getDbRegionsLoc.Rd: Generated file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Antigravity <gemini@google.com>
Co-authored-by: Antigravity <gemini@google.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.
Hi Stein, I'm part of the Bioconductor leadership (VP of the technical advisory board) and am developing a "rescue" system for Bioconductor packages at https://github.com/bioc-package-rescue. This is the first package I have tested it on, since 1) it's slated for deprecation, and 2) it has a lot of downloads. This PR fixes all ERRORs and some easier WARNINGs; see https://github.com/bioc-package-rescue/RcisTarget/actions/runs/29108369941. Please take a look, and if it looks OK, merge, push upstream to the devel and cherry-pick to RELEASE_3_23, and email Lori Shepherd <lori.shepherd@roswellpark.org > to request de-deprecation. Let me know if you have any questions, whether you do want to keep RcisTarget alive, and whether this is helpful. Thanks, -Levi
Pull Request: Modernize Package Metadata and Fix iGraph Coercion Issues
Summary
This pull request resolves critical check failures, warnings, and styling issues in
RcisTargetto restore compatibility with the latest Bioconductor check pipelines.Changes
1. Fix
igraphCoercion and Incidence Errorsgraph.incidence()call withgraph_from_incidence_matrix()to restore compatibility with newer versions of theigraphpackage.data.tableanddata.frameobjects to a numeric matrix viaas.matrix()before passing them to the network generation function."rankAtMax"column position index viamatch()with an safety check to prevent indexing failures.2. Modernize Package Metadata
Authors@R: Removed the deprecatedAuthorandMaintainerfields fromDESCRIPTIONand fully migrated them to the modernAuthors@Rstructure with proper role designations (e.g.,[cre]).3. Guard Suggested Database Example Dependencies
requireNamespaceChecks: Guarded examples that depend on the suggested rankings databaseRcisTarget.hg19.motifDBs.cisbpOnly.500bpwithif (requireNamespace(..., quietly = TRUE))blocks. This avoids hard errors in testing and user environments where suggested datasets might not be pre-installed.4. Code Style & Quality Cleanup
TandF,with=F) with explicitTRUEandFALSEvalues across multiple R source files to satisfyBiocCheckstyle guidelines.Verification
bioconductor/bioconductor_docker:develcontainer image.R CMD checkandBiocCheckwith zero errors.