benchmark.integration: Benchmarks the cluster assignmentws

Description Usage Arguments Value Examples

Description

Adopting scones method of Average Silhouette Width determination between batches. A depleted value is superior.

Usage

1
2
3
4
5
6
7
8
benchmark.intergation(
  object,
  batch,
  assays,
  reduction,
  result.names,
  n.components = 2
)

Arguments

object

IBRAP S4 class object

batch

Character. Whcih column in the metadata dataframe contains the batches.

reduction

Character. Which reduction(s) should be used to observe integration.

result.names

Character. A vector of names for the benchmarking results.

n.components

Numerical. How many components of the reduced embeddings should be used. Default = 2

assay

Character. String containing indicating which assay to use

Value

Benchmarking scores for the supplied integrations

Examples

1
2
3
4
5
6
7
8
9
object <- benchmark.intergation(object = object, 
                                          batch = 'original.project', 
                                          assays = c('SCT','SCRAN','SCANPY'), 
                                          reduction = c('pca_umap', 'pca_harmony_umap', 
                                                        'scanorama_umap', 'pca_bbknn_bbknn:umap',
                                                        'CCA_pca_umap'), 
                                          result.names = c('uncorrected', 'harmony', 
                                                           'scanorama', 'bbknn', 'cca'), 
                                          n.components = 2)

connorhknight/IBRAP_no_decontX documentation built on Feb. 13, 2022, 2:32 p.m.