import math


def get_log_expressions(grouped_expressions):
    """Get log(expression + 1) for all expressions."""
    log_expressions = {
        gene: {
            descriptor: [
                math.log(expression + 1.0, 2.0)
                for expression in grouped_expressions[gene][descriptor]
            ]
            for descriptor in grouped_expressions[gene]
        }
        for gene in grouped_expressions
    }
    return log_expressions