Commit b7238712 authored by Thonier Florian's avatar Thonier Florian Committed by Mathieu Giraud

pear_structured_log; export now number value as int

parent 572e1c05
......@@ -75,12 +75,12 @@ def pear_converter(fileIn, fileOut):
### number of reads
elif "Assembled reads" in line :
json_data["reads"]["reads_assembled_number"] = convert_value(line)[0].replace(",","")
json_data["reads"]["reads_total_number"] = convert_value(line)[1].replace(",","")
json_data["reads"]["reads_assembled_number"] = int(convert_value(line)[0].replace(",",""))
json_data["reads"]["reads_total_number"] = int(convert_value(line)[1].replace(",",""))
elif "Discarded reads" in line :
json_data["reads"]["reads_discarded_number"] = convert_value(line)[0].replace(",","")
json_data["reads"]["reads_discarded_number"] = int(convert_value(line)[0].replace(",",""))
elif "Not assembled reads" in line :
json_data["reads"]["reads_not_assembled_number"] = convert_value(line)[0].replace(",","")
json_data["reads"]["reads_not_assembled_number"] = int(convert_value(line)[0].replace(",",""))
### Warnings
json_data["warning"] = []
......
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