compute_consensus: Compute consensus matrix.

Description Usage Arguments Details Value A brief description of subfunctions Author(s) See Also Examples

Description

Computes the consensus matrix using a data.frame of cluster labels across different BEARscc simulated technical replicates.

Usage

1
compute_consensus(cluster_labels)

Arguments

cluster_labels

A data.frame of labels assigned to each sample (rownames) across various simulated technical replicates designed by BEARscc (colnames).

Details

We provide a visual and quantitative representation of the clustering variation on a cell-by-cell level by using cluster labels to compute the number of times any given pair of cells associates in the same cluster; this forms the 'noise consensus matrix'. Each element of this matrix represents the fraction of simulated technical replicates in which two cells cluster together (the 'association frequency'), after using a clustering method of the user's choice to generate a data.frame of clustering labels. This consensus matrix may be used to compute BEARscc metrics at both the cluster and cell level.

Value

When the number of samples are n, then the noise consensus resulting from this function is an n x n matrix describing the fraction of simulated technical replicates in which each cell of the experiment associates with another cell.

A brief description of subfunctions

compute_consensus relies on the following subfunction to compute the noise consensus. This function obtains all of the necessary information form the options of compute_consensus.

Author(s)

David T. Severson <david_severson@hms.harvard.edu>

Maintainer: Benjamin Schuster-Boeckler <benjamin.schuster-boeckler@ludwig.ox.ac.uk>

See Also

Examples

1
2
3
4

seversond12/BEARscc documentation built on June 8, 2020, 8:04 a.m.