import_scExp {ChromSCape}R Documentation

Read single-cell matrix(ces) into scExp

Description

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

Usage

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

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)

[Package ChromSCape version 1.0.0 Index]