Conversation
Agent-Logs-Url: https://github.com/bigbio/pIR/sessions/d7d24d5a-a425-41ae-9707-f4eebb2237a0 Co-authored-by: enriquea <8707954+enriquea@users.noreply.github.com>
Fix R-CMD-check LaTeX PDF failures by installing missing TinyTeX font package
…ild artifacts Agent-Logs-Url: https://github.com/bigbio/pIR/sessions/c9ea60ab-c41a-46c6-ab86-22634f1dc0aa Co-authored-by: enriquea <8707954+enriquea@users.noreply.github.com>
Agent-Logs-Url: https://github.com/bigbio/pIR/sessions/40aea4d8-7747-4d1d-b80a-90ca05ea668c Co-authored-by: enriquea <8707954+enriquea@users.noreply.github.com>
Agent-Logs-Url: https://github.com/bigbio/pIR/sessions/d92b0c7a-4d11-411b-adaa-3c60f04bc66c Co-authored-by: enriquea <8707954+enriquea@users.noreply.github.com>
Agent-Logs-Url: https://github.com/bigbio/pIR/sessions/d92b0c7a-4d11-411b-adaa-3c60f04bc66c Co-authored-by: enriquea <8707954+enriquea@users.noreply.github.com>
…sting WARNINGs Agent-Logs-Url: https://github.com/bigbio/pIR/sessions/040c64c9-3bfa-47fa-b541-76e20d138bba Co-authored-by: enriquea <8707954+enriquea@users.noreply.github.com>
Fix CI: install all BiocStyle LaTeX dependencies, remove stale build artifacts
📝 WalkthroughWalkthroughThe PR removes the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (2)
R/pISVM.R (1)
358-361: Descriptor aggregation is fixed; consider key-aligned multiplication to prevent future silent drift.Line 358 currently relies on positional alignment between
aaTableandaaZimmermanDes$value. IndexingaaTablebyaaZimmermanDes$keymakes this robust if ordering changes later.Proposed refactor
- temp <- as.vector(aaTable) * aaZimmermanDes$value + counts <- as.integer(aaTable[aaZimmermanDes$key]) + temp <- counts * aaZimmermanDes$value🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@R/pISVM.R` around lines 358 - 361, The multiplication currently assumes positional alignment between aaTable and aaZimmermanDes$value; change the aggregation to key-aligned lookup by indexing aaTable with aaZimmermanDes$key (e.g., use aaTable[aaZimmermanDes$key] when building temp) so temp is computed as the elementwise product of aaTable entries matched by key and aaZimmermanDes$value, then sum temp into zimm as before (ensure aaZimmermanDes$key exists and handles missing keys appropriately)..github/workflows/R-CMD-check.yaml (1)
77-77: Consider tightening warning policy after baseline cleanup.Line 77 currently lets warnings pass (
error-on: '"error"'), which is fine as a temporary stabilization step, but it can let new quality regressions accumulate. Consider tracking current warnings and moving back to warning-level enforcement once the backlog is resolved.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/R-CMD-check.yaml at line 77, The workflow currently sets the R-CMD-check policy to treat only errors as failures via the "error-on" setting (error-on: '"error"'), which allows warnings to pass; change this to tighten the policy once the current warning backlog is cleared by switching the "error-on" value to include warnings (for example set error-on to '"warning"') or implement a baseline-tracking approach (store current warnings and fail only on new warnings) and update the "error-on" configuration accordingly so new regressions are enforced; look for the "error-on" key to update its value or add baseline-handling logic in the workflow.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.github/workflows/R-CMD-check.yaml:
- Line 77: The workflow currently sets the R-CMD-check policy to treat only
errors as failures via the "error-on" setting (error-on: '"error"'), which
allows warnings to pass; change this to tighten the policy once the current
warning backlog is cleared by switching the "error-on" value to include warnings
(for example set error-on to '"warning"') or implement a baseline-tracking
approach (store current warnings and fail only on new warnings) and update the
"error-on" configuration accordingly so new regressions are enforced; look for
the "error-on" key to update its value or add baseline-handling logic in the
workflow.
In `@R/pISVM.R`:
- Around line 358-361: The multiplication currently assumes positional alignment
between aaTable and aaZimmermanDes$value; change the aggregation to key-aligned
lookup by indexing aaTable with aaZimmermanDes$key (e.g., use
aaTable[aaZimmermanDes$key] when building temp) so temp is computed as the
elementwise product of aaTable entries matched by key and aaZimmermanDes$value,
then sum temp into zimm as before (ensure aaZimmermanDes$key exists and handles
missing keys appropriately).
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 6eab422e-f19c-48e3-a7f9-befda4dee348
⛔ Files ignored due to path filters (3)
vignettes/pIR.logis excluded by!**/*.logvignettes/pIR.outis excluded by!**/*.outvignettes/pIR.pdfis excluded by!**/*.pdf
📒 Files selected for processing (9)
.github/workflows/R-CMD-check.yaml.gitignoreR/pISVM.Rvignettes/pIR-concordance.texvignettes/pIR.auxvignettes/pIR.bblvignettes/pIR.blgvignettes/pIR.texvignettes/pIR.toc
💤 Files with no reviewable changes (6)
- vignettes/pIR-concordance.tex
- vignettes/pIR.aux
- vignettes/pIR.bbl
- vignettes/pIR.blg
- vignettes/pIR.tex
- vignettes/pIR.toc
This pull request introduces several improvements and fixes related to the R package's isoelectric point prediction functionality and its documentation, as well as enhancements to the CI workflow for building vignettes. The main changes are grouped into workflow improvements, code fixes, and documentation cleanup.
Workflow improvements:
.github/workflows/R-CMD-check.yamlto only test on R versions 4.3, 4.4, and release, removing 4.1 and 4.2 from the test matrix for efficiency.Code fixes:
aaIndexfunction inR/pISVM.Rby properly vectorizing the multiplication and summation of amino acid descriptors, which should correct the calculation of the Zimmerman index.Documentation cleanup:
vignettes/pIR-concordance.tex,vignettes/pIR.aux,vignettes/pIR.bbl,vignettes/pIR.blg,vignettes/pIR.out,vignettes/pIR.toc, andvignettes/pIR.tex) to keep the repository clean and avoid tracking build artifacts. [1] [2] [3] [4] [5] [6] [7]These changes improve the reliability of CI builds, correct a calculation in the code, and reduce repository clutter.
Summary by CodeRabbit
Documentation
Chores