Commit 0c0bb11d authored by Ryan Herbert's avatar Ryan Herbert
Browse files

sample_set.py multistat add distribution

replace the barchat data with the actual distribution data
parent ee11d0b5
......@@ -672,7 +672,7 @@ def getStatHeaders():
#('bool', 'parser', b),
#('bool_true', 'parser', b),
('loci', 'parser', l),
('barchart', 'parser', bc)
('distribution', 'parser', lbc)
]
def getResultsFileStats(file_name, dest):
......@@ -725,15 +725,9 @@ def getFusedStats(file_name, res, dest):
#dest['bool'] = False
#dest['bool_true'] = True
dest['loci'] = [x for x in data['reads']['germline'] if data['reads']['germline'][x][result_index] > 0]
dest['barchart'] = [68, 27, 18, 45, 89, 63, 53, 64, 93, 21, 47, 5, 64, 68, 46, 68, 18,
72, 36, 70, 39, 21, 84, 32, 29, 4, 76, 51, 33, 67, 14, 57, 75, 61,
29, 11, 81, 71, 91, 32, 40, 71, 87, 54, 50, 88, 72, 59, 29, 80, 48,
94, 12, 60, 1, 16, 29, 93, 53, 19, 32, 97, 13, 98, 80, 69, 7, 73,
7, 83, 71, 90, 12, 57, 92, 26, 73, 35, 15, 47, 52, 88, 86, 10, 51,
51, 87, 37, 33, 23, 62, 80, 14, 26, 40, 32, 34, 60, 98, 46]
dest['distribution'] = sorted([(x[0], 100.0*x[1][result_index]/reads) for x in data['reads']['distribution'].items()], key=operator.itemgetter(0))
return dest
def getStatData(results_file_ids):
mf = ModelFactory()
set_types = [defs.SET_TYPE_PATIENT, defs.SET_TYPE_RUN, defs.SET_TYPE_GENERIC]
......
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