sce_cbind: Combind several 'SingleCellExperiment' objects from different...

Description Usage Arguments Value Author(s) Examples

View source: R/sce_cbind.R

Description

Combind several SingleCellExperiment objects from different batches/experiments.

Usage

1
2
3
4
5
6
7
8
9
sce_cbind(
  sce_list,
  method = "intersect",
  cut_off_batch = 0.01,
  cut_off_overall = 0.01,
  exprs = c("counts", "logcounts"),
  colData_names = NULL,
  batch_names = NULL
)

Arguments

sce_list

A list contains the SingleCellExperiment Object from each batch

method

A string indicates the method of combining the gene expression matrix, either union or intersect. Default to intersect. union only supports matrix class.

cut_off_batch

A numeric vector indicating the cut-off for the proportion of a gene is expressed within each batch

cut_off_overall

A numeric vector indicating the cut-off for the proportion of a gene is expressed overall data

exprs

A string vector indicating the expression matrices to be combined. The first assay named will be used to determine the proportion of zeores.

colData_names

A string vector indicating the colData that are combined

batch_names

A string vector indicating the batch names for the output sce object

Value

A SingleCellExperiment object with the list of SCE objects combined.

Author(s)

Yingxin Lin

Examples

1
2
3
4
5
data('example_sce', package = 'scMerge')
batch_names<-unique(example_sce$batch)
sce_list<-list(example_sce[,example_sce$batch=='batch2'],
               example_sce[,example_sce$batch=='batch3'])
sce_combine<-sce_cbind(sce_list,batch_names=batch_names)

scMerge documentation built on Nov. 8, 2020, 7:04 p.m.