Description Usage Arguments Value Examples
A function to read the data from 10X
1 2 3 4 5 6 |
dir |
A character indicates the directory of the 10X files |
type |
A character indicates the format of the data, sparse or HDF5 |
feature_named_by |
A character indicates whehter the genes will be named by gene_id or gene_symbol |
filter_features |
A logical input indicates whether the features with all zeros will be removed |
a SingleCellExperiment object
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
tmpdir <- tempdir()
tenXdata <- "http://cf.10xgenomics.com/samples/cell-exp/3.1.0/connect_5k_pbmc_NGSC3_ch1/"
file <- "connect_5k_pbmc_NGSC3_ch1_filtered_feature_bc_matrix.tar.gz"
download.file(paste0(tenXdata, file),file.path(tmpdir, file))
untar(file.path(tmpdir,file),
exdir = tmpdir)
sce_citeseq_10X <- readFrom10X(file.path(tmpdir,
"filtered_feature_bc_matrix/"))
sce_citeseq_10X
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.