We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 026631f + cf5875c commit 94c30faCopy full SHA for 94c30fa
v03_pipeline/migrations/annotations/0004_add_gnomad_svs.py
@@ -29,12 +29,13 @@ class AddGnomadSVs(BaseMigration):
29
def migrate(ht: hl.Table, **_) -> hl.Table:
30
mapping_ht = hl.import_vcf(
31
PHASE_4_CALLSET_WITH_GNOMAD_V4,
32
- ReferenceGenome.GRCh38.value,
33
- ).rows()
+ reference_genome=ReferenceGenome.GRCh38.value,
+ force_bgz=True
34
+ ).key_rows_by('rsid').rows()
35
ht = ht.annotate(
36
**{
- 'info.GNOMAD_V4.1_TRUTH_VID': mapping_ht[ht.key][
37
- 'info.GNOMAD_V4.1_TRUTH_VID'
+ 'info.GNOMAD_V4.1_TRUTH_VID': mapping_ht[ht.key].info[
38
+ 'GNOMAD_V4.1_TRUTH_VID'
39
],
40
},
41
)
0 commit comments