@staticmethod
def reorder_genes(x, genes, first_genes):
    """
        In case the order of the genes needs to be changed:
        puts the gene present in ordered_genes first, conserving
        the same order.
        """
    new_order_first = []
    for ordered_gene in range(len(first_genes)):
        for gene in range(len(genes)):
            if first_genes[ordered_gene].lower() == genes[gene].lower():
                new_order_first.append(gene)
    new_order_second = [x for x in range(len(genes)) if x not in
        new_order_first]
    new_order = new_order_first + new_order_second
    return x[:, (new_order)], genes[new_order]
