Skip to content

Commit

Permalink
Merge c48726f into 0f7a0aa
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-l-kong authored Oct 2, 2020
2 parents 0f7a0aa + c48726f commit 448ca81
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 448ca81

Please sign in to comment.