| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README_MATLAB.txt | 2016-11-03 | 1.4 kB | |
| AltHapSimple.sh | 2016-11-03 | 58 Bytes | |
| AltHapSimulation.sh | 2016-11-03 | 61 Bytes | |
| SimDataAltHap.m | 2016-11-03 | 1.4 kB | |
| AltHap-output.txt | 2016-11-03 | 8.1 kB | |
| AltHap.m | 2016-11-03 | 7.7 kB | |
| sim0.txt | 2016-11-03 | 177.3 kB | |
| simple_example.m | 2016-11-03 | 21 Bytes | |
| Totals: 8 Items | 196.0 kB | 0 | |
MATLAB implementation 1. Usage in terminal: matlab -nojvm -r "AltHap(ploidy,'input_file.txt','output_file.txt');exit" The first two inputs are mandatory. If output_file is not given, the results will be saved in 'AltHap-output.txt'. Please refer to the source code for a detailed explanation of other options which are mainly related to the stopping criteria. Please refer to the end of this file for a detailed explanation of input and output files format. 2. Run a simple example: In this example, 'sim0.txt' is the input fragment file, ploidy = 3, and the results are saved in 'AltHap-output.txt'. There are 3 ways to run this example: - In terminal write: matlab -nojvm -r "AltHap(3,'sim0.txt');exit" - In terminal write: matlab -nojvm -nodesktop < ./simple_example.m - Run the 'AltHapSimple.sh' file in terminal. This file would then run the 'simple_example.m' file. 3. Reproduce the simulation results on simulated data: First unzip the 'SimData.zip' file in the directory that 'AltHap.m', 'SimDataAltHap.m', and 'AltHapSimulation.sh' are located. There are 2 ways to reproduce the results: - In terminal write: matlab -nojvm -nodesktop < ./SimDataAltHap.m - Run the 'AltHapSimulation.sh' file in terminal. This file would then run the 'SimDataAltHap.m' file. The output for each input file will then be saved in the same directory.