Description Usage Arguments Value Examples
View source: R/preprocessing_filtering_reduction.R
Combine one or multiple matrices together to create a sparse matrix and cell annotation data.frame.
1 | import_scExp(file_names, path_to_matrix = NULL)
|
file_names |
A character vector of file names towards single cell epigenomic matrices (features x cells) (must be .txt / .tsv) |
path_to_matrix |
In case matrices are stored in temporary folder, a character vector of path towards temporary files. (NULL) |
A list containing:
datamatrix: a sparseMatrix of features x cells
annot_raw: an annotation of cells as data.frame
1 2 3 4 5 6 7 8 9 | mat1 = mat2 = create_scDataset_raw()$mat
tmp1 = tempfile(fileext = ".tsv")
tmp2 = tempfile(fileext = ".tsv")
write.table(as.matrix(mat1),file=tmp1,sep = "\t",
row.names = TRUE,col.names = TRUE,quote = FALSE)
write.table(as.matrix(mat2),file=tmp2, sep = "\t",
row.names = TRUE,col.names = TRUE,quote = FALSE)
file_names = c(tmp1,tmp2)
out = import_scExp(file_names)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.