Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delayedsubset fix #95

Merged
merged 2 commits into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/check-bioc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ jobs:
matrix:
config:
# This needs to be updated after each Bioconductor release. Please make sure we have the matching R and Bioc versions in it.
- { os: ubuntu-latest, r: '4.3', bioc: '3.18', cont: "bioconductor/bioconductor_docker:RELEASE_3_18", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
- { os: ubuntu-latest, r: 'next', bioc: '3.19', cont: "bioconductor/bioconductor_docker:devel", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
- { os: macOS-latest, r: '4.3', bioc: '3.18'}
- { os: windows-latest, r: '4.3', bioc: '3.18'}
- { os: ubuntu-latest, r: '4.4', bioc: '3.20', cont: "bioconductor/bioconductor_docker:RELEASE_3_20", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
- { os: ubuntu-latest, r: 'next', bioc: '3.21', cont: "bioconductor/bioconductor_docker:devel", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
- { os: macOS-latest, r: '4.4', bioc: '3.20'}
- { os: windows-latest, r: '4.4', bioc: '3.20'}
## Check https://github.com/r-lib/actions/tree/master/examples
## for examples using the http-user-agent
env:
Expand Down
12 changes: 10 additions & 2 deletions R/saveHDF5Objects.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,16 @@ loadFraserDataSet <- function(dir, name=NULL, file=NULL, upgrade=FALSE){
path(assay(fds, aname, withDimnames=FALSE)) <- afile
} else if("DelayedMatrix" ==
class(assay(fds, aname, withDimnames=FALSE))){
slot(slot(slot(assay(fds, aname, withDimnames=FALSE),
"seed"), "seed"), "filepath") <- afile
tryCatch(
{
slot(slot(slot(assay(fds, aname, withDimnames=FALSE),
"seed"), "seed"), "filepath") <- afile
},
error = function(e) {
slot(slot(slot(slot(assay(fds, aname, withDimnames = FALSE),
"seed"), "seed"), "seed"), "filepath") <- afile
}
)
# if its a HDF5 matrix we have one seed less
} else {
slot(slot(assay(fds, aname, withDimnames=FALSE),
Expand Down
Loading