-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1157 - Variant details - few minor things, eg AlphaMissense help, sh…
…ow gnomAD version
- Loading branch information
Showing
3 changed files
with
38 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Generated by Django 4.2.15 on 2024-09-09 06:24 | ||
|
||
from django.db import migrations | ||
|
||
|
||
def _add_vgc_descriptions(apps, _schema_editor): | ||
VariantGridColumn = apps.get_model("snpdb", "VariantGridColumn") | ||
|
||
VGC_DESCRIPTIONS = { | ||
"alphamissense_rankscore": "AlphaMissense is an AI model developed by DeepMind that predicts pathogenicity of missense variants. See <a href='https://www.science.org/doi/10.1126/science.adg7492'>Paper</a>", | ||
"mavedb_urn": "DB identifier from <a href='https://www.mavedb.org/'>MaveDB</a> - a public repository for datasets from Multiplexed Assays of Variant Effect (MAVEs), such as those generated by deep mutational scanning or massively parallel reporter assay experiments.", | ||
"mavedb_score": "Score from <a href='https://www.mavedb.org/'>MaveDB</a> - a public repository for datasets from Multiplexed Assays of Variant Effect (MAVEs), such as those generated by deep mutational scanning or massively parallel reporter assay experiments.", | ||
} | ||
|
||
for pk, description in VGC_DESCRIPTIONS.items(): | ||
VariantGridColumn.objects.filter(pk=pk).update(description=description) | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('snpdb', '0143_one_off_rename_clinvar_variantgridcolumns'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(_add_vgc_descriptions, reverse_code=migrations.RunPython.noop) | ||
] |
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