This software was developed by The Institute for Genomic Research, 
                               932 Clopper Road                    
                               Gaithersburg, MD, USA, 20878.       
                                                                    
This software was written by Owen White (owhite@tigr.org), in
collaboration with Ted Dunning (ted@nmsu.edu). Ted wrote the tres
brilliant function chi2 which uses a log-likelihood function that is
described in "Accurate methods for the statistics of surprise and
coincidence" Dunning, (in press). He also created getline.

a description of the files:

Makefile		Makefile for compiling all the programs
README			this file


C-source code:

hybridize.c 		performs the log-likelihood comparison
random_clip.c		clips a windows randomly from lines of DNA
random_line.c		randomly selects lines of DNA from a file
counter.c		counts oligonucleotides in DNA
normalize.c		normalize the output from hybridize
stringpool.c		used by random_line
error.c			used by random_line


Scripts:
script.limits		a script that builds the calibration curves
script.compare		a script that performs the analysis of test data


calibration sets:
bact.all		E coli DNA, GenBank accession M87049
human.all		human coding exon and intron DNA
chromosomeIII.all	Saccharomyces cerevisiae, GenBank accession X59720
worm.all		C. elegans coding exon and intron

human and worm files are an exon or intron on a single line,
chromosome III and coli were from long continuious sequences, and were
arbitrarily broken up into 300bp segments, each on a single line.

to build a calibration curves, run:
% chmod a+x script.limits
% script.limits human chromosomeIII
wait 120 minutes.
this is a disk-intensive process.

to view the calibration curves:
% xgraph human_chromosomeIII.results


you can obtain xgraph from archie.

to run an anaylsis of your favorite set of sequences, do the
following. remember: YOUR SEQUENCES MUST BE ROUGHLY THE SAME SIZE AS
THE SEQUENCES IN THE CALIBRATION SETS:

% chmod a+x script.limits
% script.limits human chromosomeIII your_sequences
wait 20 minutes.
this is a disk-intensive process.

to view the calibration curves:

% xgraph human_chromosomeIII_your_sequences.results


other files:
surprize_doc/surprize.ps.Z	Dunning's paper about log-likelihoods
qc_doc/qc_algorithm.ps.Z	White's paper applying log-likelihoods for
					quality control.
qc_doc/qc_fig*.ps.Z		figures for the qc paper.


relevant reference:
White, O., T. Dunning, G. Sutton, M. Adams, J. C. Venter, and C.
Fields (1993). A quality control algorithm for DNA sequencing
projects.  Nucleic Acids Research (in press).
