Mercurial > repos > jjohnson > data_manager_snpeff
diff data_manager/data_manager_snpEff_databases.py @ 3:c6769a700e55
Update loc data to separate version 4 databases
author | Jim Johnson <jj@umn.edu> |
---|---|
date | Tue, 21 Oct 2014 14:04:33 -0500 |
parents | bc50aa3b328a |
children | 78bcf4ac437c |
line wrap: on
line diff
--- a/data_manager/data_manager_snpEff_databases.py Mon Oct 20 13:17:12 2014 -0500 +++ b/data_manager/data_manager_snpEff_databases.py Tue Oct 21 14:04:33 2014 -0500 @@ -37,7 +37,7 @@ databases_output.close() try: data_manager_dict['data_tables'] = data_manager_dict.get( 'data_tables', {} ) - data_manager_dict['data_tables']['snpeff_databases'] = data_manager_dict['data_tables'].get( 'snpeff_databases', [] ) + data_manager_dict['data_tables']['snpeff4_databases'] = data_manager_dict['data_tables'].get( 'snpeff4_databases', [] ) data_table_entries = [] fh = open(databases_path,'r') for i,line in enumerate(fh): @@ -51,7 +51,7 @@ continue description = fields[1].strip() + ' : ' + genome_version data_table_entries.append(dict(value=genome_version, name=description)) - data_manager_dict['data_tables']['snpeff_databases'] = data_table_entries + data_manager_dict['data_tables']['snpeff4_databases'] = data_table_entries except Exception, e: stop_err( 'Error parsing %s %s\n' % (config,str( e )) ) else: