diff options
author | zsloan | 2022-06-03 19:31:42 +0000 |
---|---|---|
committer | zsloan | 2022-06-03 19:31:42 +0000 |
commit | f8ea5626edffbe358215f8c31bc257c9c8b7be34 (patch) | |
tree | 5564bc3cf0d207ce6e4bd17b8a60ed6c52a1e91c /scripts | |
parent | cba418b1953c36558f0bb05da98165d52cbfb52b (diff) | |
download | genenetwork2-f8ea5626edffbe358215f8c31bc257c9c8b7be34.tar.gz |
Allow GenoFreezeId to be passed in configurations to load_genotypes.py
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/maintenance/load_genotypes.py | 5 |
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:") |