collapse_identical_clusters: Remove identical clusters

collapse_identical_clustersR Documentation

Remove identical clusters

Description

Preserves only one cluster instance per unique element combination

Usage

collapse_identical_clusters(c_list, cluster_id_width = NA)

Arguments

c_list

Named list with lists of clusters in which to look for duplicates. Assumes the cluster within each named item are all the same size and that cluster elements are all sorted the same ( i.e. all alphabetically sorted ).

cluster_id_width

Width of the cluster id's

Value

Returns original list of clusters with duplicates stored in cluster_ids attribute of each unique cluster. Names of list for each size cluster are Cluster_cluster-#-this_sizex#-instances-this-cluster ( i.e. Cluster_001x24 )


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