hrchy_cytocommunity.tools.data_preprocessing

Functions

compute_knn(coords, K, sample_id[, save_folder])

Construct a K-Nearest Neighbor (KNN) graph and optionally save it to file.

formulate_HRCHYCytoCommunity_input_from_anndata_singlecell(...)

Formulate HRCHY-CytoCommunity input files from a single-cell spatial transcriptomics AnnData object.

formulate_HRCHYCytoCommunity_input_from_anndata_spot(...)

Formulate HRCHY-CytoCommunity input files from an AnnData object of spatial transcriptomics data with cell type deconvolution results.