=======================================================================================
How to make and run DIDA (our distribute and parallel indexing and alignment framework)
=======================================================================================
1. Build DIDA from Source
1.1. Download & Unpack:
	$ wget http://www.bcgsc.ca/platform/bioinfo/software/dida/releases/1.0.0/dida.tar.gz
	$ gzip -dc dida-0.1.1.tar.gz | tar -x
We also need to install ABySS-map from ABySS Package:
	http://www.bcgsc.ca/platform/bioinfo/software/abyss/releases/1.3.7 	
1.2. Build binaries
	$ make
1.3. For test reason: run on a workstation (without mpi) (using abyss-map as a baseline aligner for example)
	1.3.1. ./prt -p <partition> <target>
	  
	1.3.2. abyss-index <subtarget>
	||
	1.3.2. ./dsp -p <partition> -b <b-mer> <query>
	
	1.3.3. abyss-map -l <MEM> -j<threads> --order <subquery> <subtarget>
	
	1.3.4. ./mrg -p <partition> -a <aligner> -m <mode>
	
2. Exmple of DIDA+ABySS-map on a subset of chromosome 14 reads on 4 nodes:
Target: CHR14.fa, CHR14.adj
Query: chr14.in
 
	2.1. 
 		./prt -p4 CHR14.fa 
 
	2.2. 
		for i in {1..4}
		do
			abyss-index mref-$i.fa
		done
||
	2.2.
		./dsp -p4 -b28 chr14.in 
 
	2.3. 
		for i in {1..4}
		do
			abyss-map -l28 -j12 --order mreads-$i.fa mref-$i.fa > aln-$i.sam
		done 	
	2.4. 
		./mrg -p4 -a abyss-map -m ord
	
3. On SGE Cluster, the whole DIDA framework can be parallelized using qmake utility.

- Exmple of DIDA+ABySS-map on a subset of chromosome 14 reads on 4 nodes using qmake utility:
	1.3.1. qsub qsub-qmake-dida.sh 
	
	
4. To build and run MPI version of DIDA on a cluster (using abyss-map) 
	3.1. make dida_mpi_intel // build with intel mpi library
	3.2. mpirun -np <partition>+2 dida_mpi -p <partition> -b <b-mer> query target

