compute-prior-dist

Usage: compute-prior-dist <numbins> <psp-filename>

Description:

compute-prior-dist computes the distribution of priors from a file in MEME PSP format. The disbution is scaled and binned into the number of bins specified on the command line.

Input:

The PSP file must be in MEME PSP format.

Output:

The output is sent to stdout, and contains one double per line. The first two lines are the minimum and maximum priors. Each succeeding line contains the probability that a prior is in the bin. The prior is derived from the bin number using the formula

prior = ((bin #) / (num bins) * (max prior - min prior)) + (min prior)

Sample output