statistics.py
def generateHealthyDist(g, genes, mutation_num):
    """ Generates a random distribution for each gene by propagating from
        mutation_num random nodes. """
    gene_dists = {}
    for gene in genes:
        gene_dists[gene] = []
    for i in range(HEALTHY_ITERATIONS):
        scores, iterations = propagation.propagate(g, 'RAND_MT', RANDOM_PRIORS=mutation_num)
        ranks = len(g.nodes) - stats.rankdata(scores)
        for gene in genes:
            gene_dists[gene].append(ranks[g.gene2index[gene]])
    for gene in genes:
        gene_dists[gene] = sorted(gene_dists[gene])
    return gene_dists
 Generates a random distribution for each gene by propagating from
        mutation_num random nodes. 
Generates a random distribution for each gene by propagating from
mutation_num random nodes.
Generates a random distribution for each gene by propagating from mutation_num random nodes .
def generateHealthyDist(g, genes, mutation_num):
    gene_dists = {}
    for gene in genes:
        gene_dists[gene] = []
    for i in range(HEALTHY_ITERATIONS):
        scores, iterations = propagation.propagate(g, 'RAND_MT', RANDOM_PRIORS=mutation_num)
        ranks = len(g.nodes) - stats.rankdata(scores)
        for gene in genes:
            gene_dists[gene].append(ranks[g.gene2index[gene]])
    for gene in genes:
        gene_dists[gene] = sorted(gene_dists[gene])
    return gene_dists
def generateHealthyDist ( g , genes , mutation_num ) : gene_dists = { } for gene in genes : gene_dists [ gene ] = [ ] for i in range ( HEALTHY_ITERATIONS ) : scores , iterations = propagation . propagate ( g , 'RAND_MT' , RANDOM_PRIORS = mutation_num ) ranks = len ( g . nodes ) - stats . rankdata ( scores ) for gene in genes : gene_dists [ gene ] . append ( ranks [ g . gene2index [ gene ] ] ) for gene in genes : gene_dists [ gene ] = sorted ( gene_dists [ gene ] ) return gene_dists
Generates a random distribution for each gene by propagating from
mutation_num random nodes.
Generates a random distribution for each gene by propagating from mutation_num random nodes .
""" Generates a random distribution for each gene by propagating from
        mutation_num random nodes. """
g
genes
mutation_num