File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def validate_no_duplicate_variants(
53
53
ht = ht .select ()
54
54
if ht .count () > 0 :
55
55
variant_format = dataset_type .table_key_format_fn (reference_genome )
56
- msg = f'Variants are present multiple times in the callset: { [variant_format (v ) for v in ht .collect ()][: 10 ]} '
56
+ msg = f'Variants are present multiple times in the callset: { [variant_format (v ) for v in ht .take ( 10 ) ]} '
57
57
raise SeqrValidationError (msg )
58
58
59
59
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ def get_ht(
39
39
.map (hl .float32 ),
40
40
)
41
41
ht = ht .annotate (delta_score = hl .max (ht .delta_scores ))
42
- return ht .annotate (
42
+ ht = ht .annotate (
43
43
splice_consequence_id = hl .if_else (
44
44
ht .delta_score > 0 ,
45
45
# Splice Consequence enum ID is the index of the max score
@@ -48,3 +48,4 @@ def get_ht(
48
48
num_delta_scores ,
49
49
),
50
50
).drop ('delta_scores' )
51
+ return ht .group_by (* ht .key ).aggregate (splice_consequence_id = hl .agg .min (ht .splice_consequence_id ))
You can’t perform that action at this time.
0 commit comments