dend_to_list: Convert R dendrogram to a list

View source: R/required_scripts.R

dend_to_listR Documentation

Convert R dendrogram to a list

Description

Converts an R dendrogram to a list format. This step is necessary for outputting a dendrogram in json format. NOTE: If this function crashes, the "omit_names" variable may need to be updated to exclude additional variables in dend.

Usage

dend_to_list(dend, omit_names = c("markers", "markers.byCl", "class"))

Arguments

dend

any R dendrogram of annotated cell types

omit_names

character vector of attributes to exclude from the conversion to list format. This is necessary because attributes in complex formats sometimes cannot be properly converted without the function crashing

Value

The R dendgram information in list format, with all but the omitted attributes


AllenInstitute/CCN documentation built on April 15, 2023, 10:48 p.m.