patpy.pp.prepare_data_for_phemd

patpy.pp.prepare_data_for_phemd#

patpy.pp.prepare_data_for_phemd(adata, sample_col, n_top_var_genes=100)#

Convert the expression data to the input format of PhEMD (R implementation)

Returns:

-all_expression_data (list)

Expression data of G genes for the cells of each of S samples

all_geneslist[str]

Names of the genes for the expression data

selected_geneslist[str]

Subset of genes to use

samples_nameslist[str]

List of S names for the samples