writeSparseTsvChunks: Used by 'ExportToCellbrowser': Write a big sparse matrix to a...

writeSparseTsvChunksR Documentation

Used by ExportToCellbrowser: Write a big sparse matrix to a .tsv.gz file by writing chunks, concating them with the Unix cat command, then gziping the result. This does not work on Windows, we'd have to use the copy /b command there.

Description

Used by ExportToCellbrowser: Write a big sparse matrix to a .tsv.gz file by writing chunks, concating them with the Unix cat command, then gziping the result. This does not work on Windows, we'd have to use the copy /b command there.

Usage

writeSparseTsvChunks(inMat, outFname, sliceSize = 1000)

Arguments

inMat

input matrix

outFname

output file name, has to end with .gz

sliceSize=1000

size of each chunk in number of lines

Value

Invisibly returns NULL

Examples

## Not run: 
writeSparseTsvChunks( pbmc_small@data, "exprMatrix.tsv.gz")

## End(Not run)


satijalab/seurat-wrappers documentation built on April 10, 2024, 3:25 p.m.