From 4869492b24e23382a8eb1cd6b429cf201b72ea67 Mon Sep 17 00:00:00 2001
From: Hanna  JULIENNE <hanna.julienne@pasteur.fr>
Date: Tue, 15 Nov 2022 10:51:36 +0100
Subject: [PATCH] cast filtering parameter to float

---
 jass_preprocessing/__main__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jass_preprocessing/__main__.py b/jass_preprocessing/__main__.py
index 2081c68..ad6d58d 100644
--- a/jass_preprocessing/__main__.py
+++ b/jass_preprocessing/__main__.py
@@ -61,7 +61,7 @@ def launch_preprocessing(args):
         mgwas = jp.map_reference.map_on_ref_panel(gw_df, ref, gwas_map.loc[tag, "index_type"])
         mgwas = jp.map_reference.compute_snp_alignement(mgwas)
         mgwas = jp.compute_score.compute_z_score(mgwas)
-        mgwas = jp.compute_score.compute_sample_size(mgwas, args.diagnostic_folder, tag, args.percent_sample_size)
+        mgwas = jp.compute_score.compute_sample_size(mgwas, args.diagnostic_folder, tag, float(args.percent_sample_size))
         end = time.time()
 
         print("Preprocessing of {0} in {1}s".format(tag, end-start))
-- 
GitLab