From f8ea5626edffbe358215f8c31bc257c9c8b7be34 Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 3 Jun 2022 19:31:42 +0000 Subject: Allow GenoFreezeId to be passed in configurations to load_genotypes.py --- scripts/maintenance/load_genotypes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/maintenance/load_genotypes.py b/scripts/maintenance/load_genotypes.py index 51278d48..e3d594ab 100755 --- a/scripts/maintenance/load_genotypes.py +++ b/scripts/maintenance/load_genotypes.py @@ -15,7 +15,10 @@ def fetch_parameters(config): config_dic = {} config_dic['inbredsetid'] = config.get('config', 'inbredsetid') config_dic["speciesid"] = datastructure.get_species(config_dic['inbredsetid'])[0] - config_dic['genofreezeid'] = datastructure.get_genofreeze_byinbredsetid(config_dic['inbredsetid'])[0] + if config.has_option('config', 'genofreezeid'): + config_dic['genofreezeid'] = config.get('config', 'genofreezeid') + else: + config_dic['genofreezeid'] = datastructure.get_genofreeze_byinbredsetid(config_dic['inbredsetid'])[0] config_dic['dataid'] = datastructure.get_nextdataid_genotype() config_dic['genofile'] = config.get('config', 'genofile') print("config dictionary:") -- cgit v1.2.3