create_cluster_annotation: create_cluster_annotation

View source: R/loom.R

create_cluster_annotationR Documentation

create_cluster_annotation

Description

Create a named list where names are the cell IDs and the values are the annotation stored in the given cluster.description.cn column of the given cluster.meta.data.df. If cluster.meta.data.df is set to NULL, annotation of cells are set to "NDA - Cluster X" where X is the cluster ID.

Usage

create_cluster_annotation(
  clusters,
  cluster.meta.data.df = NULL,
  cluster.id.cn = NULL,
  cluster.description.cn = NULL
)

Arguments

clusters

A named list of the cell id and the assigned cluster id generated by a clustering method (e.g.: Seurat).

cluster.meta.data.df

A data.frame object with at least 2 columns named cluster.id.cn and cluster.description.cn.

cluster.id.cn

The column name to use for the IDs of the clusters.

cluster.description.cn

The column name to use for the description of the clusters.


aertslab/SCopeLoomR documentation built on April 19, 2022, 11:25 a.m.