Attention une mise à jour du serveur va être effectuée le vendredi 16 avril entre 12h et 12h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit bf297c70 authored by Ryan Herbert's avatar Ryan Herbert multi sample stats reads to float

when calculating the perecentage for mapped reads, convert values to
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