Skip to content

Commit 0fe21a0

Browse files
committed
Bugfix to gzfile()
1 parent f55483e commit 0fe21a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

singlecell/resources/chunks/Functions.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ saveData <- function(seuratObj, datasetId) {
107107
# Write cell barcodes and metadata:
108108
metaDf <- seuratObj@meta.data
109109
metaDf$cellbarcode <- colnames(seuratObj)
110-
conn <- gzfile(metaDf)
111-
write.table(conn, file = metaFile, quote = T, row.names = F, sep = ',', col.names = T)
110+
conn <- gzfile(metaFile)
111+
write.table(metaDf, file = conn, quote = T, row.names = F, sep = ',', col.names = T)
112112
close(conn)
113113
write.table(data.frame(CellBarcode = colnames(seuratObj)), file = barcodeFile, quote = F, row.names = F, sep = ',', col.names = F)
114114
}

0 commit comments

Comments
 (0)