Skip to content

Commit

Permalink
Fix import of tads and geneinfo (#625).
Browse files Browse the repository at this point in the history
Related-Issue: #625
Closes: #625
Projected-Results-Impact: none
  • Loading branch information
holtgrewe committed Aug 29, 2022
1 parent ead24d0 commit 846b15c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions HISTORY.rst
Expand Up @@ -95,6 +95,7 @@ Full Change List
- Fix bug with thousand genomes frequencies in SV filtration (#619).
- Displaying disease gene icon also for SVs (#620).
- Fix bug with gene constraint display for intergenic variants (#620).
- Fix import bug in import_tables.py (#625).

------
v1.2.0
Expand Down
7 changes: 3 additions & 4 deletions importer/management/commands/import_tables.py
Expand Up @@ -370,8 +370,7 @@ def _truncate(self, models):
def _import_tad_set(self, path, tables, subset_key, force, truncate):
"""TAD import"""
release_info = self._get_table_info(path, tables[0].__name__)[1]
if not self._create_import_info_record(release_info):
return False
self._create_import_info_record(release_info)

# Truncate tables if asked to do so.
if truncate:
Expand Down Expand Up @@ -417,8 +416,8 @@ def _import_gene_interval(self, path, tables, subset_key, force, truncate):
"""Common code for RefSeq and ENSEMBL gene import."""
release_info = self._get_table_info(path, tables[0].__name__)[1]
release_info["table"] += ":%s" % subset_key
if not self._create_import_info_record(release_info):
return False
self._create_import_info_record(release_info)

# Truncate tables if asked to do so.
if truncate:
self._truncate((GeneInterval,))
Expand Down

0 comments on commit 846b15c

Please sign in to comment.