-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #365 from EBI-Metagenomics/add-new-analysis-files
Add new analysis files
- Loading branch information
Showing
5 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
emgapi/migrations/0018_genome_annotations_v2_4_downloads.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,48 @@ | ||
# Generated by Django 3.2.12 on 2024-08-15 00:00 | ||
|
||
from django.db import migrations | ||
|
||
|
||
def create_v2_4_genome_download_description(apps, schema_editor): | ||
DownloadDescriptionLabel = apps.get_model("emgapi", "DownloadDescriptionLabel") | ||
|
||
DownloadDescriptionLabel.objects.create( | ||
description="CAZy and putative polysaccharide utilization loci annotations produced by dbCAN", | ||
description_label="Genome dbCAN Annotation" | ||
) | ||
DownloadDescriptionLabel.objects.create( | ||
description="Anti-phage defence system annotations produced by Defense Finder", | ||
description_label="Genome Defense Finder Annotation" | ||
) | ||
DownloadDescriptionLabel.objects.create( | ||
description="BGC annotations produced by GECCO", | ||
description_label="Genome GECCO Annotation" | ||
) | ||
DownloadDescriptionLabel.objects.create( | ||
description="Completeness of identified KEGG pathways", | ||
description_label="KEGG Pathway Completeness" | ||
) | ||
|
||
|
||
def remove_v2_4_genome_download_description(apps, schema_editor): | ||
DownloadDescriptionLabel = apps.get_model("emgapi", "DownloadDescriptionLabel") | ||
DownloadDescriptionLabel.objects.filter(description_label__in=[ | ||
"Genome dbCAN Annotation", | ||
"Genome Defense Finder Annotation", | ||
"Genome GECCO Annotation", | ||
"KEGG Pathway Completeness", | ||
]).delete() | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('emgapi', '0017_auto_20240129_1401'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython( | ||
code=create_v2_4_genome_download_description, | ||
reverse_code=remove_v2_4_genome_download_description, | ||
), | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__: str = "2.4.48" | ||
__version__: str = "2.4.49" |
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