Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
datasome committed Jan 2, 2024
1 parent 1b2c781 commit 66c357e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cellphonedb/utils/scoring_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,11 @@ def heteromer_geometric_expression_per_cell_type(
complex_name_2_subunits = dict(zip(d['name'], d['subunits']))

# Iterate over the complexes to calculate the geometric mean of expressions of their constituents
# If any member of the subunit is not present in the means matrix
# If any member of the subunit is not present in the means matrix then
# the geometric mean expression is not calculated
# The geometric mean is always lower than the arithmetic mean due to a compounding effect. Note that this is different
# than in CellphoneDB methods themselves where the minimum expression across all parts of a heteromer is taken
# as its overall expression.
complex_geom_mean = dict()
for complex_id in complex_name_2_subunits:

Expand Down

0 comments on commit 66c357e

Please sign in to comment.