if (FALSE) {
# For local files:
expression_matrix <- ReadMtx(
mtx = "count_matrix.mtx.gz", features = "features.tsv.gz",
cells = "barcodes.tsv.gz"
)
seurat_object <- CreateSeuratObject(counts = expression_matrix)
# For remote files:
expression_matrix <- ReadMtx(mtx = "http://localhost/matrix.mtx",
cells = "http://localhost/barcodes.tsv",
features = "http://localhost/genes.tsv")
seurat_object <- CreateSeuratObject(counts = data)
}
Run the code above in your browser using DataLab