Skip to content

Commit 94c30fa

Browse files
committed
Merge branch 'benb/sv_gnomad_v4_migration' of github.com:broadinstitute/seqr-loading-pipelines into benb/sv_gnomad_v4_migration
2 parents 026631f + cf5875c commit 94c30fa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

v03_pipeline/migrations/annotations/0004_add_gnomad_svs.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ class AddGnomadSVs(BaseMigration):
2929
def migrate(ht: hl.Table, **_) -> hl.Table:
3030
mapping_ht = hl.import_vcf(
3131
PHASE_4_CALLSET_WITH_GNOMAD_V4,
32-
ReferenceGenome.GRCh38.value,
33-
).rows()
32+
reference_genome=ReferenceGenome.GRCh38.value,
33+
force_bgz=True
34+
).key_rows_by('rsid').rows()
3435
ht = ht.annotate(
3536
**{
36-
'info.GNOMAD_V4.1_TRUTH_VID': mapping_ht[ht.key][
37-
'info.GNOMAD_V4.1_TRUTH_VID'
37+
'info.GNOMAD_V4.1_TRUTH_VID': mapping_ht[ht.key].info[
38+
'GNOMAD_V4.1_TRUTH_VID'
3839
],
3940
},
4041
)

0 commit comments

Comments
 (0)