Skip to content

Commit c070c7c

Browse files
committed
agg does not work with strings :/
1 parent cf242f1 commit c070c7c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

v03_pipeline/lib/reference_datasets/dbnsfp.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ 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-
**{f: hl.agg.max(ht[f]) for f in ht.row_value},
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+
},
8386
)
8487

8588

0 commit comments

Comments
 (0)