Skip to content

Commit

Permalink
fixing issues related to saveRDS
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperdanielhansen committed Oct 17, 2024
1 parent 220215f commit 42f23af
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: bsseq
Version: 1.41.0
Version: 1.41.1
Encoding: UTF-8
Title: Analyze, manage and store whole-genome methylation data
Description: A collection of tools for analyzing and visualizing whole-genome
Expand Down
2 changes: 1 addition & 1 deletion R/BSmooth.R
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ BSmooth <- function(BSseq,
dir <- dirname(h5_path)
x <- BSseq
x@assays <- HDF5Array::shorten_assay2h5_links(x@assays)
saveRDS(x, file = file.path(dir, "se.rds"))
base::saveRDS(x, file = file.path(dir, "se.rds"))
}
BSseq
}
Expand Down
2 changes: 1 addition & 1 deletion R/BSseq-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ strandCollapse <- function(BSseq, shift = TRUE, BPPARAM = bpparam(),
# HDF5Array::saveHDF5SummarizedExperiment().
x <- bsseq
x@assays <- HDF5Array::shorten_assay2h5_links(x@assays)
saveRDS(x, file = file.path(dir, "se.rds"))
base::saveRDS(x, file = file.path(dir, "se.rds"))
}
bsseq
}
Expand Down
2 changes: 1 addition & 1 deletion R/collapseBSseq.R
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ collapseBSseq <- function(BSseq, group, BPPARAM = bpparam(),
# HDF5Array::saveHDF5SummarizedExperiment().
x <- bsseq
x@assays <- HDF5Array::shorten_assay2h5_links(x@assays)
saveRDS(x, file = file.path(dir, "se.rds"))
base::saveRDS(x, file = file.path(dir, "se.rds"))
}
bsseq
}
2 changes: 1 addition & 1 deletion R/read.bismark.R
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ read.bismark <- function(files,
# HDF5Array::saveHDF5SummarizedExperiment().
x <- bsseq
x@assays <- HDF5Array::shorten_assay2h5_links(x@assays)
saveRDS(x, file = file.path(dir, "se.rds"))
base::saveRDS(x, file = file.path(dir, "se.rds"))
}
bsseq
}
Expand Down
5 changes: 5 additions & 0 deletions inst/NEWS.Rd
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
\name{bsseqnews}
\title{bsseq news}
\encoding{UTF-8}
\section{Version 1.41.x}{
\itemize{
\item Changing saveRDS to base::saveRDS following upstream changes.
}
}
\section{Version 1.39.x}{
\itemize{
\item{Changing the default value of k in \code{BSmooth.tstat} from
Expand Down

0 comments on commit 42f23af

Please sign in to comment.