def stree2gtree(stree, genes, gene2species):
    """Create a gene tree with the same topology as the species tree"""

    tree = stree.copy()

    for gene in genes:
        tree.rename(gene2species(gene), gene)
    return tree