Skip to content

Commit 75c23e7

Browse files
committed
Better
1 parent c070c7c commit 75c23e7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

v03_pipeline/lib/reference_datasets/dbnsfp.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,8 @@ def get_ht(path: str, reference_genome: ReferenceGenome) -> hl.Table:
7979
ht = ht.rename(rename)
8080
ht = key_by_locus_alleles(ht, reference_genome)
8181
return ht.group_by(*ht.key).aggregate(
82-
MutationTaster_pred=hl.agg.take(ht.MutationTaster_pred, 1)[0],
83-
**{
84-
f: hl.agg.max(ht[f]) for f in ht.row_value if f != 'MutationTaster_pred'
85-
},
82+
**{f: hl.agg.take(ht[f], 1)[0] for f in PREDICTOR_FIELDS},
83+
**{f: hl.agg.max(ht[f]) for f in ht.row_value if f not in PREDICTOR_FIELDS},
8684
)
8785

8886

0 commit comments

Comments
 (0)