aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/maintenance/load_genotypes.py5
1 files changed, 4 insertions, 1 deletions
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:")