Skip to content

Commit 9ae3929

Browse files
committed
zip metadata files
1 parent 35255c6 commit 9ae3929

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

singlecell/resources/chunks/Functions.R

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

0 commit comments

Comments
 (0)