Skip to content

Commit

Permalink
Fix enrichment stat p_pos from >= to > (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-l-kong committed Oct 2, 2020
1 parent 0f7a0aa commit eaf429e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ark/utils/spatial_analysis_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def calculate_enrichment_stats(close_num, close_num_rand):
# Calculate z score based on distribution
z[j, k] = (close_num[j, k] - muhat[j, k]) / sigmahat[j, k]
# Calculate both positive and negative enrichment p values
p_pos[j, k] = (1 + (np.sum(tmp >= close_num[j, k]))) / (bootstrap_num + 1)
p_pos[j, k] = (1 + (np.sum(tmp > close_num[j, k]))) / (bootstrap_num + 1)
p_neg[j, k] = (1 + (np.sum(tmp < close_num[j, k]))) / (bootstrap_num + 1)

# Get fdh_br adjusted p values
Expand Down

0 comments on commit eaf429e

Please sign in to comment.