hlpr_process_spatial_correlation_cluster: Process spatial correlation results

View source: R/h.R

hlpr_process_spatial_correlation_clusterR Documentation

Process spatial correlation results

Description

Helper function to be used in clusterSpatialCorrelationResults(). Takes a cutree data.frame and a distance data.frame and returns a named list:

  • assessment_df: A data.frame that attempts to evaluate all cluster's quality by providing the average distance between it's genes.

  • distances_list: A named list of data.frames. Each data.frame contains the gene-gene distances between all genes the cluster it corresponds to contains.

  • gene_names_list: A named list of character vectors. Each vector contains the unique gene names of the cluster it corresponds to.

  • k: k-value

  • h: h-value

Usage

hlpr_process_spatial_correlation_cluster(cutree_df, dist_df, input)

Arguments

cutree_df

Data.frame of two variables: gene and cluster-belonging.

dist_df

Data.frame of three variables: gene1, gene2, distance


kueckelj/SPATA2 documentation built on March 16, 2024, 10:25 a.m.