Spaces:
Sleeping
Sleeping
convert to float
Browse files- methods/gdc_api_calls.py +2 -2
methods/gdc_api_calls.py
CHANGED
|
@@ -291,7 +291,7 @@ def return_joint_single_cnv_frequency(cnv, cnv_change, cnv_change_5_category):
|
|
| 291 |
(len(shared_cases) / total_number_of_cases_with_cnv_data) * 100, 2
|
| 292 |
)
|
| 293 |
except Exception as e:
|
| 294 |
-
joint_frequency = 0
|
| 295 |
gdc_result = "joint frequency in {} is {}%".format(ce, joint_frequency)
|
| 296 |
print('prepared GDC Result: {}'.format(gdc_result))
|
| 297 |
result_text.append(gdc_result)
|
|
@@ -302,7 +302,7 @@ def return_joint_single_cnv_frequency(cnv, cnv_change, cnv_change_5_category):
|
|
| 302 |
try:
|
| 303 |
frequency = round((num_cases_with_cnvs / total_number_of_cases_with_cnv_data) * 100, 2)
|
| 304 |
except Exception as e:
|
| 305 |
-
frequency = 0
|
| 306 |
for k2, v2 in v.items():
|
| 307 |
print('preparing a GDC Result for query augmentation...')
|
| 308 |
gdc_result = "The frequency of {} {} in {} is {}%".format(
|
|
|
|
| 291 |
(len(shared_cases) / total_number_of_cases_with_cnv_data) * 100, 2
|
| 292 |
)
|
| 293 |
except Exception as e:
|
| 294 |
+
joint_frequency = 0.0
|
| 295 |
gdc_result = "joint frequency in {} is {}%".format(ce, joint_frequency)
|
| 296 |
print('prepared GDC Result: {}'.format(gdc_result))
|
| 297 |
result_text.append(gdc_result)
|
|
|
|
| 302 |
try:
|
| 303 |
frequency = round((num_cases_with_cnvs / total_number_of_cases_with_cnv_data) * 100, 2)
|
| 304 |
except Exception as e:
|
| 305 |
+
frequency = 0.0
|
| 306 |
for k2, v2 in v.items():
|
| 307 |
print('preparing a GDC Result for query augmentation...')
|
| 308 |
gdc_result = "The frequency of {} {} in {} is {}%".format(
|