read10x | R Documentation |
Reads 10X Genomics dataset files (gzipped) including matrix, features, and barcodes, to a single expression matrix. This function handles the unzipping of these files, reads the data, and re-compresses the files back to their original gzipped format.
read10x(dir)
dir |
A character string specifying the path to the directory containing the 10X dataset files.
This directory should contain |
This function facilitates the loading of 10X Genomics datasets into R for analysis with
the Seurat package. It specifically caters to gzipped versions of the matrix.mtx
, features.tsv
,
and barcodes.tsv
files, automating their decompression, reading, and subsequent recompression.
The function relies on Seurat's Read10X
function for data reading and object construction.
A Seurat object containing the single-cell RNA-seq data extracted from the provided 10X Genomics dataset.
Ensure that the specified directory contains the required gzipped files.
If the features.tsv.gz
file is named differently (e.g., genes.tsv.gz
), please rename it
accordingly before running this function.
Read10X
for the underlying function used to read the 10X data.
## Not run:
if (interactive()) {
# Replace `path_to_10x_data` with the path to your 10X data directory
seuratObject <- read10x(dir = "path_to_10x_data")
# `seuratObject` is now a Seurat object containing the loaded 10X data
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.