Skip to content

Commit f7195b2

Browse files
committed
restore the initialization and convergence criteria to allow unit tests to pass
increase loci to 4 as well
1 parent 9c0ae54 commit f7195b2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/emhaplofreq/emhaplofreq.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,21 @@ MODIFICATIONS. */
3636
#define LINE_LEN 132 /* RS changed from 120 to 132=6*2*(10+1) */
3737
#define MAX_ROWS 10000 /* increased from 1023 */
3838
#define MAX_ALLELES 200 /* increased from 80 for a large dataset */
39-
#define MAX_LOCI 2
39+
#define MAX_LOCI 4
4040
#define MAX_COLS MAX_LOCI * 2
4141
/* max genotypes: 2^max_loci*max_rows */
4242
#define MAX_GENOS 300000 /* RS changed from 64*MAX_ROWS and then 20000 */
4343
#define MAX_HAPLOS 30000 /* RS added and changed declaration in main_proc */
4444

45-
#define CRITERION 0.0001
46-
#define MAX_ITER 600 /* RS changed from 200 */
45+
#define CRITERION 0.000001
46+
#define MAX_ITER 400 /* RS changed from 200 */
4747

4848
#define FALSE 0
4949
#define TRUE 1
5050

51-
#define MAX_INIT 10
51+
#define MAX_INIT 50
5252

53-
#define MAX_GENOS_PER_PHENO 2 /* 2^(max_loci - 1) */
53+
#define MAX_GENOS_PER_PHENO 64 /* 2^(max_loci - 1) */
5454

5555
#define MAX_PERMU 1001
5656
#define MAX_INIT_FOR_PERMU 5

0 commit comments

Comments
 (0)