This function takes h5 or mtx file from cellranger output and convert it in a csv table.

h5tocsv(group = c("sudo", "docker"), file, type = c("h5", "10xgenomics"))

Arguments

group,

a character string. Two options: sudo or docker, depending to which group the user belongs

file,

path of the sparse matrix file. For h5 file the full path MUST be included. For mtx matrix the folder MUST contain tsv and mtx files and the FULL path to mtx matrix MUST be provided

type,

h5 refers to h5 files and 10xgenomics to the folder containing barcodes.tsv, genes.tsv and matrix.mtx

Value

a dense matrix, with 0s, in csv and txt format

Examples