Skip to content

Commit

Permalink
codacy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hanars committed Aug 22, 2023
1 parent 68297fa commit e9ce30c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hail_search/hail_search_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ def _get_consequence_filter(self, allowed_consequence_ids, annotation_exprs):
annotation_exprs['allowed_transcripts'] = allowed_transcripts
return hl.is_defined(allowed_transcripts.first())

def _get_annotation_override_filters(self, annotations, pathogenicity=None):
def _get_annotation_override_filters(self, annotations, pathogenicity=None, **kwargs):
annotation_filters = []

for key in self.PATHOGENICITY_FILTERS.keys():
Expand Down Expand Up @@ -1089,7 +1089,7 @@ def _filter_variant_ids(self, ht, variant_ids):
variant_ids_set = hl.set(variant_ids)
return ht.filter(variant_ids_set.contains(ht.variant_id))

def _filter_annotated_table(self, parsed_intervals=None, exclude_intervals=False, **kwargs):
def _filter_annotated_table(self, *args, parsed_intervals=None, exclude_intervals=False, **kwargs):
if parsed_intervals:
interval_filter = hl.array(parsed_intervals).any(lambda interval: hl.if_else(
self._ht.start_locus.contig == self._ht.end_locus.contig,
Expand All @@ -1100,7 +1100,7 @@ def _filter_annotated_table(self, parsed_intervals=None, exclude_intervals=False
interval_filter = ~interval_filter
self._ht = self._ht.filter(interval_filter)

return super()._filter_annotated_table(**kwargs)
return super()._filter_annotated_table(*args, **kwargs)

@staticmethod
def get_x_chrom_filter(ht, x_interval):
Expand Down

0 comments on commit e9ce30c

Please sign in to comment.