cl_to_anno: Convert a cl factor object to an annotation data.frame

Description Usage Arguments Value

View source: R/annotation.R

Description

Convert a cl factor object to an annotation data.frame

Usage

1
cl_to_anno(cl, cl.df = NULL, cl_col = "cl", base = "cluster")

Arguments

cl

The cl factor object generated by clustering with scrattch.hicat

cl.df

Optional: A cluster annotation data.frame.

cl_col

The column to use to match cl.df to cl. Default is "cl", but if not found, will try to match using rownames(cl.df).

base

The base of the cluster annotation. Default is "cluster", which will result in "cluster_id","cluster_label", and "cluster_color" columns.

Value

a data.frame with columns "sample_name", base"_id", base"_label", and base"_color"


AllenInstitute/scrattch.io documentation built on Nov. 17, 2021, 10:06 a.m.