cmatkhan commited on
Commit
eb98083
·
verified ·
1 Parent(s): 6361045

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. scripts/quantify_regions.R +1 -1
scripts/quantify_regions.R CHANGED
@@ -142,7 +142,7 @@ calculate_poisson_pval <- function(total_background_hops,
142
  # Calculate p-value: P(X >= x) = 1 - P(X < x) = 1 - P(X <= x-1)
143
  # This is equivalent to: 1 - CDF(x) + PMF(x)
144
  # Using the upper tail directly with lower.tail = FALSE
145
- pval <- ppois(x - 1, lambda = mu, lower.tail = FALSE)
146
 
147
  return(pval)
148
  }
 
142
  # Calculate p-value: P(X >= x) = 1 - P(X < x) = 1 - P(X <= x-1)
143
  # This is equivalent to: 1 - CDF(x) + PMF(x)
144
  # Using the upper tail directly with lower.tail = FALSE
145
+ pval <- ppois(x - 1, lambda = mu, lower.tail = FALSE, ...)
146
 
147
  return(pval)
148
  }