Skip to content

Commit

Permalink
More Hgnc field updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Oct 20, 2021
1 parent b8373e3 commit 9729b70
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions geneinfo/migrations/0026_hgnc_gtrnadb.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Generated by Django 3.2.7 on 2021-10-20 07:15

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("geneinfo", "0025_auto_20211019_0829"),
]

operations = [
migrations.AddField(
model_name="hgnc", name="gtrnadb", field=models.CharField(max_length=32, null=True),
),
]
2 changes: 2 additions & 0 deletions geneinfo/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ class Hgnc(models.Model):
intermediate_filament_db = models.CharField(max_length=32, null=True)
#: RNACentral ID (rnacentral.org database)
rna_central_ids = models.CharField(max_length=32, null=True)
#: gtrna DB ID
gtrnadb = models.CharField(max_length=32, null=True)
#: lcipedia.org IDs
lncipedia = models.CharField(max_length=32, null=True)
#: Alliance of genome resources.
Expand Down
1 change: 1 addition & 0 deletions importer/management/commands/import_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ def _import(
self.stderr.write(
"Error during import to table %s:\n%s" % (table._meta.db_table, e)
)
traceback.print_exc(file=self.stderr)
# Remove already imported data.
sa_table = get_meta().tables[table._meta.db_table]
if "release" in sa_table.c:
Expand Down

0 comments on commit 9729b70

Please sign in to comment.