Commit 101e49eb authored by Roman SARRAZIN GENDRON's avatar Roman SARRAZIN GENDRON
Browse files

updated FDR comments

parent 650146c8
......@@ -15,7 +15,22 @@ import pickle
import random
top = []
INITIAL_LAMBDA = 0.35
def correct_lambda_error(mod,scores,size_dist,Lambda=0.35):
scores2 = []
for seq in i:
if len(seq)<3:
i2.append([])
continue
seqscore = seq[3]
struct_score = (seq[2]-seq[3])/INITIAL_LAMBDA
scores2.append([seq[0],seq[1],seqscore-abs(Lambda*struct_score)])
scores2.sort(key=lambda k: (k[0],k[2]),reverse=True)
return scores2
"""
def correct_lambda_error(mod,i,size_dist,Lambda=0.35):
i2 = []
for seq in i:
......@@ -32,7 +47,7 @@ def correct_lambda_error(mod,i,size_dist,Lambda=0.35):
i2.sort(key=lambda k: (k[0],k[2]),reverse=True)
return i2
"""
def threshold (N,Beta = 0.2):
return Beta
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment