Commit f10783ee authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team
Browse files

controllers/patient.py: patient/stats, hack to output 'IGH_av_clones'

parent 8c26aa48
......@@ -224,6 +224,16 @@ def stats():
else:
row[key] = ''
# Re-process some data
keys += ['IGH_av_clones']
for row in d['query']:
if 'IGH_av_reads' in row:
try:
row['IGH_av_clones'] = '%.4f' % (1.0 / float(row['IGH_av_reads']))
found['IGH_av_clones'] = True
except:
pass
# Keep only non-empty columns
d['stats'] = []
for key in keys:
......
Supports Markdown
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