-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…1249) Co-authored-by: Meghna Ahuja Bhasin <[email protected]>
- Loading branch information
Showing
28 changed files
with
1,104 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from django.contrib import admin | ||
|
||
from .models import SmallVariantQueryGestaltMatcherScores, SmallVariantQueryPediaScores | ||
|
||
# Register your models here. | ||
admin.site.register(SmallVariantQueryGestaltMatcherScores) | ||
admin.site.register(SmallVariantQueryPediaScores) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from django.apps import AppConfig | ||
|
||
|
||
class ExtGestaltmatcherConfig(AppConfig): | ||
default_auto_field = "django.db.models.BigAutoField" | ||
name = "ext_gestaltmatcher" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.20 on 2023-10-20 07:18 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="SmallVariantQueryGestaltMatcherScores", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, primary_key=True, serialize=False, verbose_name="ID" | ||
), | ||
), | ||
("gene_id", models.CharField(help_text="Entrez gene ID", max_length=64)), | ||
("gene_symbol", models.CharField(help_text="The gene symbol", max_length=128)), | ||
("priority_type", models.CharField(help_text="The priority type", max_length=64)), | ||
("score", models.FloatField(help_text="The gene score")), | ||
( | ||
"query", | ||
models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, to="variants.SmallVariantQuery" | ||
), | ||
), | ||
], | ||
) | ||
] |
33 changes: 33 additions & 0 deletions
33
backend/ext_gestaltmatcher/migrations/0002_smallvariantquerypediascores.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.20 on 2023-11-14 07:18 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [("ext_gestaltmatcher", "0001_initial")] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="SmallVariantQueryPediaScores", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, primary_key=True, serialize=False, verbose_name="ID" | ||
), | ||
), | ||
("gene_id", models.CharField(help_text="Entrez gene ID", max_length=64)), | ||
("gene_symbol", models.CharField(help_text="The gene symbol", max_length=128)), | ||
("score", models.FloatField(help_text="The gene score")), | ||
( | ||
"query", | ||
models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, to="variants.SmallVariantQuery" | ||
), | ||
), | ||
], | ||
) | ||
] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
from django.db import models | ||
|
||
|
||
# Create your models here. | ||
class SmallVariantQueryGestaltMatcherScores(models.Model): | ||
"""Annotate ``SmallVariantQuery`` with Gestalt Matcher scores (if configured to do so).""" | ||
|
||
#: The query to annotate. | ||
query = models.ForeignKey("variants.SmallVariantQuery", on_delete=models.CASCADE) | ||
|
||
#: The Entrez gene ID. | ||
gene_id = models.CharField(max_length=64, null=False, blank=False, help_text="Entrez gene ID") | ||
|
||
#: The gene symbol. | ||
gene_symbol = models.CharField( | ||
max_length=128, null=False, blank=False, help_text="The gene symbol" | ||
) | ||
|
||
#: The priority type. | ||
priority_type = models.CharField( | ||
max_length=64, null=False, blank=False, help_text="The priority type" | ||
) | ||
|
||
#: The score. | ||
score = models.FloatField(null=False, blank=False, help_text="The gene score") | ||
|
||
|
||
class SmallVariantQueryPediaScores(models.Model): | ||
"""Annotate ``SmallVariantQuery`` with PEDIA scores (if configured to do so).""" | ||
|
||
#: The query to annotate. | ||
query = models.ForeignKey("variants.SmallVariantQuery", on_delete=models.CASCADE) | ||
|
||
#: The Entrez gene ID. | ||
gene_id = models.CharField(max_length=64, null=False, blank=False, help_text="Entrez gene ID") | ||
|
||
#: The gene symbol. | ||
gene_symbol = models.CharField( | ||
max_length=128, null=False, blank=False, help_text="The gene symbol" | ||
) | ||
|
||
#: The score. | ||
score = models.FloatField(null=False, blank=False, help_text="The gene score") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.