We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 718bc14 commit 07c05b0Copy full SHA for 07c05b0
R/functions.R
@@ -4,7 +4,8 @@
4
if (sum(k_singular) > 0)
5
warning(paste('Dropping single category variables:'),
6
paste(colnames(df)[k_singular], collapse=', '))
7
- df <- df[, !k_singular]
+ df <- df[, !k_singular, drop=F]
8
+ return(df)
9
}
10
11
seurat2anndata <- function(
@@ -52,7 +53,7 @@ seurat2anndata <- function(
52
53
)
54
55
if (!is.null(outFile))
- anndata$AnnData$write(adata, outFile, compression = 'gzip')
56
+ adata$write(outFile, compression = 'gzip')
57
58
adata
59
0 commit comments