diff --git a/bin/sce_to_anndata.R b/bin/sce_to_anndata.R index cdba9fcd..29a4c0f2 100755 --- a/bin/sce_to_anndata.R +++ b/bin/sce_to_anndata.R @@ -174,8 +174,8 @@ if (!is.null(opt$feature_name)) { # convert altExp } else { # check for output file - if (!(stringr::str_ends(opt$output_feature_h5, ".hdf5|.h5"))) { - stop("output feature file name must end in .hdf5 or .h5") + if (!(stringr::str_ends(opt$output_feature_h5, ".h5ad|.hdf5|.h5"))) { + stop("output feature file name must end in .h5ad, .hdf5, or .h5") } # extract altExp