Skip to content

Commit bfde429

Browse files
authored
Update 0004_add_gnomad_svs.py
1 parent 21d0527 commit bfde429

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

v03_pipeline/migrations/annotations/0004_add_gnomad_svs.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,8 @@ def migrate(ht: hl.Table, **_) -> hl.Table:
4545
)
4646
gnomad_svs_ht = ReferenceDataset.gnomad_svs.get_ht(ReferenceGenome.GRCh38)
4747
ht = ht.annotate(gnomad_svs=sv.gnomad_svs(ht, gnomad_svs_ht))
48-
return ht.drop('info.GNOMAD_V4.1_TRUTH_VID')
48+
ht = ht.drop('info.GNOMAD_V4.1_TRUTH_VID')
49+
return ht.annotate_globals(
50+
versions=ht.globals.versions.annotate(gnomad_svs='1.0'),
51+
enums=ht.globals.enums.annotate(gnomad_svs=hl.Struct()),
52+
)

0 commit comments

Comments
 (0)