Skip to content

Commit 6ba99b5

Browse files
authored
feat: Export the create_hdf5 function. (#83)
This will enable users and other scripts the ability to write out the intermediate h5 file.
1 parent f60ccd8 commit 6ba99b5

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-2
lines changed

NAMESPACE

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
export(counts_matrix_from_assay)
44
export(create_bugreport)
55
export(create_bugreport_from_seurat)
6+
export(create_hdf5)
67
export(create_loupe)
78
export(create_loupe_from_seurat)
89
export(read_feature_ids_from_tsv)

R/hdf5.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#'
1515
#' @return TRUE on success, FALSE on error
1616
#'
17-
#' @noRd
17+
#' @export
1818
create_hdf5 <- function(
1919
count_mat,
2020
clusters,
@@ -23,7 +23,7 @@ create_hdf5 <- function(
2323
feature_ids,
2424
seurat_obj_version) {
2525
if (file.exists(h5path)) {
26-
return(err(sprintf("cannot create h5 file %s", h5path)))
26+
return(err(sprintf("cannot create h5 file as it already exists: %s", h5path)))
2727
}
2828

2929
# create hdf5 file and matrix groups

man/create_hdf5.Rd

+37
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)