Commit cc467833 authored by Your Name's avatar Your Name

predict add sample id

parent 67ef1075
...@@ -170,10 +170,13 @@ def main(te_file): ...@@ -170,10 +170,13 @@ def main(te_file):
# for prob in preds: # for prob in preds:
# fo.write("%f\t%f\t%f\n" % (prob['pctr'], prob['pcvr'], prob['pctcvr'])) # fo.write("%f\t%f\t%f\n" % (prob['pctr'], prob['pcvr'], prob['pctcvr']))
ctcvr = [] # ctcvr = []
str_result = ""
for prob in preds: for prob in preds:
ctcvr.append([prob["sample_id"][0],prob['pctcvr']]) # ctcvr.append((prob["sample_id"][0],prob['pctcvr']))
return ctcvr str_result = str_result + str(prob["sample_id"][0]) + ":" + str(prob['pctcvr']) + ";"
# return ctcvr
return str_result[:-1]
# indices = [] # indices = []
# for prob in preds: # for prob in preds:
......
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