This distribution of binreg includes 9 files.

readme.txt	(this file)
binreg.dll	(main program)
binreg.fig	(supporting file)
imagecf.dll	(supporting file)
Mbinregsvd.dll	(supporting file)
normalise.dll	(supporting file)
preference.mat	(supporting file)
run_binreg.m	(supporting file)
txt2mat.m	(supporting file, use to generate description file from text file)

To use binreg program:
1. create a folder and put all 8 files in it;
2. start matlab and set the current directory as the folder contains this program;
3. type binreg at the matlab command line window and a window should pop up;
4. fill in the parameters you want the program to run;
5. click on run to do the analysis;
6. once the program stops to run, you will be able to check results in three formats:
	a. figures;
	b. text output within the command window;
	c. output text files under the same directory where the program is.
	   Four(or three) files will be generated:
		imagegenelist.txt:  a list which tell the gene names of figure 11;
		normalisedX.txt(optional output): normalised X;
		topgenecoeffs.txt:	beta values for top genes uses in the analysis;
		validationcases.txt(optional output): the validation results;


To convert a txt description file into a file that can be used by binreg, type
		txt2mat('filename.txt') 
where filename.txt is your description file in text format.Once the program is done, 
it will generate a file called description.mat within the current folder. rename it as you wish and then you can use with binreg.
 	   