From a558ed9cab7680d34fff541a15d392509995f412 Mon Sep 17 00:00:00 2001 From: Patrick Roelli Date: Mon, 11 Mar 2019 11:12:42 +0100 Subject: [PATCH] updated documentation to read sparse matrix --- docs/docs/Reading-the-output.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/docs/docs/Reading-the-output.md b/docs/docs/Reading-the-output.md index e8961b3..cf28e72 100644 --- a/docs/docs/Reading-the-output.md +++ b/docs/docs/Reading-the-output.md @@ -39,6 +39,7 @@ CITE-seq-Count Version: 1.4.0 Reads processed: 50000000 Percentage mapped: 95 Percentage unmapped: 5 +Uncorrected cells: 33 Correction: Cell barcodes collapsing threshold: 1 Cell barcodes corrected: 20000 @@ -65,7 +66,25 @@ Packages to read MTX I recommend using `Seurat` and their `Read10x` function to read the results. -Example: `Read10x('OUTFOLDER/umi_count', gene.column=1)` +With Seurat V3: + +`Read10x('OUTFOLDER/umi_count/', gene.column=1)` + + +With Matrix: + +``` +library(Matrix) +matrix_dir = "/path_to_your_directory/out_cite_seq_count/umi_count/" +barcode.path <- paste0(matrix_dir, "barcodes.tsv.gz") +features.path <- paste0(matrix_dir, "features.tsv.gz") +matrix.path <- paste0(matrix_dir, "matrix.mtx.gz") +mat <- readMM(file = matrix.path) +feature.names = read.delim(features.path, header = FALSE, stringsAsFactors = FALSE) +barcode.names = read.delim(barcode.path, header = FALSE, stringsAsFactors = FALSE) +colnames(mat) = barcode.names$V1 +rownames(mat) = feature.names$V1 +``` **Python**