Skip to content

Commit

Permalink
remove dup function definition
Browse files Browse the repository at this point in the history
  • Loading branch information
jburos committed Jan 12, 2017
1 parent d7a2b5b commit 9c9745d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions cohorts/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,6 @@ def indel_filter_fn(filterable_variant, **kwargs):
**kwargs)


@count_function
def missense_snv_count(row, cohort, filter_fn, normalized_per_mb, **kwargs):
def missense_filter_fn(filterable_effect, **kwargs):
assert filter_fn is not None, "filter_fn should never be None, but it is."
return (type(filterable_effect.effect) == Substitution and
filter_fn(filterable_effect, **kwargs))
# This only loads one effect per variant.
patient_id = row["patient_id"]
return cohort.load_effects(
only_nonsynonymous=True,
patients=[cohort.patient_from_id(patient_id)],
filter_fn=missense_filter_fn,
**kwargs)

@count_function
def effect_count(row, cohort, filter_fn, normalized_per_mb, **kwargs):
Expand Down

0 comments on commit 9c9745d

Please sign in to comment.