Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/p/i/picrust-HEAD/picrust/evaluate_test_datasets.py   picrust(Download)
from numpy import  array,ravel,around,ceil
from copy import copy
from cogent.maths.stats.test import correlation,spearman,correlation_test 
from cogent.maths.stats.distribution import tprob,t_high
from biom.table import table_factory,DenseOTUTable
 
    #pearson correlation (using new method from pycogent 1.5.3)
    pearson_r,pearson_para_p,pearson_permuted_r,pearson_nonpara_p,pearson_ci =correlation_test(obs,exp,method='pearson',permutations=0)
    result['pearson_r']=pearson_r
    #result['pearson_permuted_r']=pearson_permuted_r
 
    #spearman correlation (using new method from pycogent 1.5.3)
    spearman_r,spearman_para_p,spearman_permuted_r,spearman_nonpara_p,spearman_ci =correlation_test(obs,exp,method='spearman',permutations=0)
    result['spearman_r']=spearman_r
    #result['spearman_permuted_r']=spearman_permuted_r