Skip to content

Commit

Permalink
agg does not work with strings :/
Browse files Browse the repository at this point in the history
  • Loading branch information
bpblanken committed Nov 28, 2024
1 parent cf242f1 commit c070c7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion v03_pipeline/lib/reference_datasets/dbnsfp.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ def get_ht(path: str, reference_genome: ReferenceGenome) -> hl.Table:
ht = ht.rename(rename)
ht = key_by_locus_alleles(ht, reference_genome)
return ht.group_by(*ht.key).aggregate(
**{f: hl.agg.max(ht[f]) for f in ht.row_value},
MutationTaster_pred=hl.agg.take(ht.MutationTaster_pred, 1)[0],
**{
f: hl.agg.max(ht[f]) for f in ht.row_value if f != 'MutationTaster_pred'
},
)


Expand Down

0 comments on commit c070c7c

Please sign in to comment.