def get_gene_summary(gene):
    """Gets gene summary from a model's gene."""
    return {
        gene.id: {
            "name": gene.name,
            "is_functional": gene.functional,
            "reactions": [{rxn.id: rxn.name} for rxn in gene.reactions],
            "annotation": gene.annotation,
            "notes": gene.notes,
        }
    }