The following Matlab project contains the source code and Matlab examples used for fast algorithm for the log p value of fisher's exact test or hypergeometric distribution.
example: after identifying a list of 30 genes from the entire genome of
20000 genes, 5 genes are related to cycle, while there are totally 200
cell cylce gene in the genome, then the log p-value will be:
% or, in 10 based log p-value
% or, the decimal p-value