Skip to content

Custom Upload and Assay Updates (bug fixes) - #16

Closed
sabila-bernard wants to merge 1 commit into
AyadLab:drug_signature_updatefrom
sabila-bernard:updates
Closed

sabila-bernard wants to merge 1 commit into
AyadLab:drug_signature_updatefrom
sabila-bernard:updates

Conversation

@sabila-bernard

Copy link
Copy Markdown
Collaborator

Summary

Fixes five bugs identified during code review of the custom upload and assay selection features:

  • Bug 1 — corrMat orientation: Removed erroneous t() in corrMatUpload() so the compound dropdown shows drug names, not cell barcodes
  • Bug 2 — referenceCompound_ui not evaluating: Added outputOptions(output, 'referenceCompound_ui', suspendWhenHidden = FALSE) so the dropdown populates correctly when inside a hidden conditionalPanel
  • Bug 4 — pre-upload crash: assay_to_use() now guards with req(rdsSeurat()) before calling isOrthogonAL() so navigating the app before uploading a Seurat file doesn't crash
  • Bug 5 — gene case mismatch: drugSignatures() normalises gene names with toupper() so lowercase uploads don't produce 0-gene overlap and a silent crash
  • Latent bug — seq_len fix: Four for (i in 1:length(...)) loops in the combination analysis replaced with seq_len(nrow(...)) to avoid the 1:0 = c(1, 0) trap on empty data frames

Testing

Added a shinytest2 regression suite (inst/shiny/tests/testthat/) with tests for all five bugs. CI runs on every PR via .github/workflows/shinytest2.yml. The 134 MB Seurat fixture is tracked via Git LFS; tests that need it skip gracefully when LFS is unavailable.

test_path() can return a relative path if testthat state is not active
when the argument is evaluated (e.g. after AppDriver changes the working
directory). Resolve the fixture path to an absolute path at the top of
each test, before any AppDriver interaction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant