gcell.cell.celltype.GETCellType.get_tf_exp_str

gcell.cell.celltype.GETCellType.get_tf_exp_str#

GETCellType.get_tf_exp_str(motif, m)[source]#

This method generates a formatted string of gene names and their corresponding predicted expression values. The expression values are averaged and sorted in descending order.

Parameters:
motif

The motif object containing the cluster gene list.

m

The index to access the specific cluster gene list from the motif object.

Returns:

str: A string representation of gene names and their corresponding predicted expression values.

The string is formatted as ‘gene_name pred’, where ‘pred’ is a 2 digit floating point number. Each gene name and its corresponding predicted expression value are separated by a ‘<br />’.

Example: ‘gene1 1.23<br />gene2 0.56<br />gene3 0.45’