Commit bf297c70 authored by Ryan Herbert's avatar Ryan Herbert

sample_set.py multi sample stats reads to float

when calculating the perecentage for mapped reads, convert values to
floats.
parent fbaaa085
......@@ -681,9 +681,10 @@ def getFusedStats(file_name, res, dest):
dest['main_clone'] = data['clones'][0]['name']
reads = data['reads']['total'][result_index]
dest['reads'] = reads
dest['mapped'] = "%d (%d%%)" % (data['reads']['segmented'][result_index], 100 * (data['reads']['segmented'][result_index]/reads))
dest['mapped'] = "%d (%d%%)" % (data['reads']['segmented'][result_index], 100.0 * (float(data['reads']['segmented'][result_index])/float(reads)))
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