compare_annotate: Compare two sets of cluster assignments for the same set of...

View source: R/annotate.R

compare_annotateR Documentation

Compare two sets of cluster assignments for the same set of cells

Description

Compare two sets of cluster assignments for the same set of cells

Usage

compare_annotate(
  cl,
  ref.cl,
  ref.cl.df = NULL,
  reorder = TRUE,
  rename = TRUE,
  do.droplevels = TRUE,
  min.th = 1
)

Arguments

cl

A cluster factor object to compare to a reference

ref.cl

A cluster factor object for the reference clusters

ref.cl.df

A data.frame with reference cluster annotations that includes a "cluster_label" column

reorder

Whether or not to reorder the overlaps by overlap size. Default = TRUE

rename

a logical indicating whether or not to rename the results.

Value

a list with 5 objects:

  • cl

  • cl.df

  • g A ggplot2 dot plot object for the comparison.

  • tb.df

  • cl.id.map


AllenInstitute/scrattch.hicat documentation built on Oct. 20, 2023, 6:55 a.m.