Commit cc467833 authored by Your Name's avatar Your Name

predict add sample id

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