Skip to content

Gracefully handle pre-1.3.0 AQ XMLs when NULISAseqAQ unavailable#165

Merged
jcbeer merged 4 commits intomainfrom
graceful-aq-fallback
Jan 12, 2026
Merged

Gracefully handle pre-1.3.0 AQ XMLs when NULISAseqAQ unavailable#165
jcbeer merged 4 commits intomainfrom
graceful-aq-fallback

Conversation

@dwightkuo
Copy link
Member

@dwightkuo dwightkuo commented Jan 11, 2026

Summary

  • Changed behavior from throwing an error to issuing a warning when loading pre-1.3.0 AQ XML files without NULISAseqAQ installed
  • File now processes as RQ (relative quantification) instead of failing
  • Updated skeleton.Rmd to use the authoritative AbsAssay flag from loadNULISAseq() output

Changes

  • R/readNULISAseq.R: Replace stop() with warning() and set AbsAssay <- FALSE for graceful degradation
  • skeleton.Rmd: Use runs[[i]]$AbsAssay instead of checking ExecutionDetails directly
  • test-writeUpdatedXML.R: Update test to expect warning instead of error, verify RQ loading works

🤖 Generated with Claude Code

Changed behavior from throwing an error to issuing a warning and
processing the file as RQ (relative quantification) when:
- XML contains AQ metadata but version < 1.3.0
- NULISAseqAQ package is not installed

Changes:
- R/readNULISAseq.R: Replace stop() with warning() and set AbsAssay=FALSE
- skeleton.Rmd: Use runs[[i]]$AbsAssay instead of checking ExecutionDetails
- test-writeUpdatedXML.R: Update test to expect warning instead of error

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dwightkuo dwightkuo requested a review from jcbeer January 11, 2026 21:27
dwightkuo and others added 2 commits January 11, 2026 13:43
Skip NULISAseqAQ installation when building for NULISAseqR (public).
Only install when repository contains '_internal' (NULISAseqR_internal).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Skip NULISAseqAQ installation when NULISASEQAQ_BRANCH is empty.
This works with the workflow change to only set NULISASEQAQ_BRANCH
for internal repos.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dwightkuo dwightkuo requested a review from jcbeer January 12, 2026 05:05
@jcbeer jcbeer merged commit aed8301 into main Jan 12, 2026
5 checks passed
@jcbeer jcbeer deleted the graceful-aq-fallback branch January 12, 2026 16:47
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.

2 participants