Skip to content

Add saveHDF5GSVA() / loadHDF5GSVA()#269

Merged
rcastelo merged 8 commits into
develfrom
268-add-savehdf5gsvarnorm-loadhdf5gsvarnorm
Jun 8, 2026
Merged

Add saveHDF5GSVA() / loadHDF5GSVA()#269
rcastelo merged 8 commits into
develfrom
268-add-savehdf5gsvarnorm-loadhdf5gsvarnorm

Conversation

@rcastelo

@rcastelo rcastelo commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Added two new functions saveHDF5GSVA() and loadHDF5GSVA() that replace saveHDF5GSVAranks() and loadHDF5GSVAranks(), and allow one to save and load the output from gsvaColRanks() as well as from gsvaRowNorm(). The former saveHDF5GSVAranks() and loadHDF5GSVAranks() have been deprecated, and documentation and unit tests have been updated.

Copilot AI review requested due to automatic review settings June 8, 2026 14:40
@rcastelo rcastelo linked an issue Jun 8, 2026 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces new HDF5 serialization helpers for GSVA intermediate outputs, enabling save/load of both gsvaRowNorm() and gsvaColRanks() results while deprecating the older rank-only serialization API.

Changes:

  • Added saveHDF5GSVA() / loadHDF5GSVA() to serialize GSVA row-normalized and rank outputs (with metadata) via HDF5.
  • Deprecated saveHDF5GSVAranks() / loadHDF5GSVAranks() and routed them through the new API.
  • Updated internal assay naming and documentation/tests to reflect the new serialization scope.

Reviewed changes

Copilot reviewed 8 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
R/gsvaRanks_serialization.R Removed the old rank-only serialization implementation (moved to deprecated wrappers).
R/gsva.R Updated row-normalization assay naming and internal parameter pulling behavior.
R/gsva-serialization.R Added the new generalized HDF5 save/load functions and helper to choose the GSVA assay.
R/GSVA-pkg-deprecated.R Added deprecated wrappers for the previous rank-only serialization functions.
NAMESPACE Exported saveHDF5GSVA() and loadHDF5GSVA().
man/gsvaRanks.Rd Updated docs to reflect the renamed row-normalized assay.
man/gsvaRanks_serialization.Rd Removed the old rank-only serialization man page.
man/gsva-serialization.Rd Added documentation for the new generalized serialization API.
man/GSVA-pkg-deprecated.Rd Documented newly deprecated serialization wrappers.
inst/unitTests/test_serialization.R Added/updated unit tests covering serialization for both row-normalized and rank outputs.
inst/unitTests/test_ranksserialization.R Removed the old rank-only serialization unit tests.
Files not reviewed (3)
  • man/GSVA-pkg-deprecated.Rd: Language not supported
  • man/gsva-serialization.Rd: Language not supported
  • man/gsvaRanks.Rd: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread R/gsva-serialization.R Outdated
Comment thread R/gsva-serialization.R Outdated
Comment thread R/gsva.R Outdated
rcastelo and others added 3 commits June 8, 2026 16:47
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@rcastelo rcastelo merged commit 6f06ac7 into devel Jun 8, 2026
2 checks passed
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.

Add saveHDF5GSVA() / loadHDF5GSVA()

2 participants