Previous changeset 2:19644996bc2a (2017-03-17) Next changeset 4:284f64ad9d43 (2017-12-08) |
Commit message:
planemo upload for repository https://github.com/TGAC/earlham-galaxytools/tree/master/tools/gstf_preparation commit 77ed525b753e34d3e9dd4f07a239592ce764f7e6-dirty |
modified:
gstf_preparation.py |
b |
diff -r 19644996bc2a -r 7e11a7f4bdba gstf_preparation.py --- 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))) |