Skip to content

Commit

Permalink
Removed old commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
ctokheim committed Nov 7, 2016
1 parent 6d1760e commit 85ea9d3
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions prob2020/python/p_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,24 +127,14 @@ def calc_deleterious_p_value(mut_info,
# least meet some user-specified threshold
if num_del >= del_threshold:
# perform permutations
#if len(mut_info) > 0:
del_p_value = pm.deleterious_permutation(num_del,
context_cts,
context_to_mutations,
sc, # sequence context obj
gs, # gene sequence obj
num_permutations,
stop_thresh,
pseudo_count)
#else:
# no SNV mutation case
#null_del_list = [0 for i in range(num_permutations)]
#del_p_value = 1.0

# calculate p-value
#del_num_nulls = sum([1 for d in null_del_list
#if d+utils.epsilon >= num_del])
#del_p_value = del_num_nulls / float(num_permutations)
context_cts,
context_to_mutations,
sc, # sequence context obj
gs, # gene sequence obj
num_permutations,
stop_thresh,
pseudo_count)
else:
del_p_value = None
else:
Expand Down

0 comments on commit 85ea9d3

Please sign in to comment.