comparison Marea/marea.py @ 89:84da46340c39 draft default tip

Uploaded
author bimib
date Mon, 07 Jun 2021 14:15:45 +0000
parents 19d704e24977
children
comparison
equal deleted inserted replaced
88:66432fdf1768 89:84da46340c39
640 count = 0 640 count = 0
641 max_F_C = 0 641 max_F_C = 0
642 for l1, l2 in zip(class_pat.get(i), class_pat.get(j)): 642 for l1, l2 in zip(class_pat.get(i), class_pat.get(j)):
643 try: 643 try:
644 stat_D, p_value = st.ks_2samp(l1, l2) 644 stat_D, p_value = st.ks_2samp(l1, l2)
645 #sum(l1) da errore secondo me perchè ha null
646 avg = fold_change(sum(l1) / len(l1), sum(l2) / len(l2)) 645 avg = fold_change(sum(l1) / len(l1), sum(l2) / len(l2))
647 if not isinstance(avg, str): 646 if not isinstance(avg, str):
648 if max_F_C < abs(avg): 647 if max_F_C < abs(avg):
649 max_F_C = abs(avg) 648 max_F_C = abs(avg)
650 tmp[ids[count]] = [float(p_value), avg] 649 tmp[ids[count]] = [float(p_value), avg]