Bug fix in subset.loom
authorPaul Hoffman <phoffman@nygenome.org>
Tue, 20 Mar 2018 22:51:27 +0000 (18:51 -0400)
committerPaul Hoffman <phoffman@nygenome.org>
Tue, 20 Mar 2018 22:51:27 +0000 (18:51 -0400)
R/loom.R

index 1ea8c36685dce9df55ce6b3cd27e98a1a59d0d1d..d75ba1537e38e6cddac02983c667e9c3d99e472a 100644 (file)
--- a/R/loom.R
+++ b/R/loom.R
@@ -1329,7 +1329,7 @@ subset.loom <- function(
     # Initialize datasets
     for (layer in layers) {
       new.loom[['layers']]$create_dataset(
-        name = basename(path = layers),
+        name = basename(path = layer),
         dtype = getDtype2(x = class(x = x[[layer]]$get_type())[1]),
         dims = matrix.dims
       )