convertAPAtrapData: Convert the scExpMa list generated by scAPAtrap to other...

View source: R/scAPAtrap_funlib.R

convertAPAtrapDataR Documentation

Convert the scExpMa list generated by scAPAtrap to other format

Description

Given peaks' count and annotation file, this function can filter peaks with low expression levels and generate different types of objects, including data.frame (df), list with data.frame peaks.meta and Sparse Matrix peaks.count (list), SeuratObject (Seurat), SingleCellExperiment (sce), movAPA's PACdataset (PAC).

Usage

convertAPAtrapData(traplist, oformat, ...)

Arguments

traplist

A list with data.frame peaks.meta and Sparse Matrix peaks.count generated by generatescExpMa.

oformat

A character string of df/seurat/sce/pac to generate different types of objects: data.frame (df), SeuratObject (Seurat), SingleCellExperiment (sce), movAPA's PACdataset (PAC). Generally, the output includes peaks.count (SparseMatrix) and peaks.meta (peakID/chr/start/end/strand/coord). oformat=df may be problematic when the peak-cell matrix is very large. If oformat=df failed, please set oformat to other strings to represent the peak-cell counts matrix as Sparse Matrix.

...

Arguments passed to other methods and/or advanced arguments. Advanced arguments:

verbose

If 'TRUE' basic status updates will be printed along the way.

logf

If not NULL, then it should be a character string denoting a file name. Then message will be written to 'logf'.

Examples

## Not run: 
convertAPAtrapData(from=peakslist, to='pac')

## End(Not run)

BMILAB/scAPAtrap documentation built on Oct. 13, 2023, 2:36 a.m.