cluster_list_to_df: Reformat a long list of cluster members as a data.frame

cluster_list_to_dfR Documentation

Reformat a long list of cluster members as a data.frame

Description

Reformats long-form list of cluster members as a data.frame with all elements as rows and one or two columns per cluster indicating cluster membership and optionally central elements for each cluster

Usage

cluster_list_to_df(cluster_members, central_elements = NA)

Arguments

cluster_members

Long list of each cluster in each cluster count and the elements that belong to that cluster ( i.e. Cluster_002_001 <- Bindea_aDC, Bindea_BCells ... ).

central_elements

Optional list of central elements by cluster id ( i.e. Cluster_002_001 <- central element of that cluster ). If omitted, central element columns will not be added to return data.frame.

Value

Returns the data.frame containing cluster membership for each group of clusters in the cluster_members list and optionally the central element of each cluster.


Benjamin-Vincent-Lab/binfotron documentation built on Oct. 1, 2024, 8:33 p.m.