import_scExp: Read single-cell matrix(ces) into scExp

Description Usage Arguments Value Examples

View source: R/preprocessing_filtering_reduction.R

Description

Combine one or multiple matrices together to create a sparse matrix and cell annotation data.frame.

Usage

1
import_scExp(file_names, path_to_matrix = NULL)

Arguments

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)

Value

A list containing:

Examples

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)

ChromSCape documentation built on Nov. 8, 2020, 6:57 p.m.