Mercurial > repos > earlhaminst > gstf_preparation
changeset 3:7e11a7f4bdba draft
planemo upload for repository https://github.com/TGAC/earlham-galaxytools/tree/master/tools/gstf_preparation commit 77ed525b753e34d3e9dd4f07a239592ce764f7e6-dirty
author | earlhaminst |
---|---|
date | Fri, 24 Nov 2017 12:32:39 -0500 |
parents | 19644996bc2a |
children | 284f64ad9d43 |
files | gstf_preparation.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gstf_preparation.py Fri Mar 17 07:58:27 2017 -0400 +++ b/gstf_preparation.py Fri Nov 24 12:32:39 2017 -0500 @@ -220,6 +220,9 @@ cur = conn.cursor() for gene in gene_dict.values(): + if gene is None: + # This can happen when loading a JSON file from Ensembl + continue gene_id = gene['id'] cur.execute('INSERT INTO gene (gene_id, gene_symbol, species, gene_json) VALUES (?, ?, ?, ?)', (gene_id, gene.get('display_name', None), gene['species'], json.dumps(gene)))