Subsections


heapsize

Resize the Heap.

Synopsis :

The CarthaGene heapsize command is invoked as either one of :

Description :

heapsize enables to resize the heap. Even if the heap already contains maps, the $k$ best maps are kept where $k$ is the new size. If the size of a full heap is decreased, the worst maps are lost. The size of the heap as a limited simpact on CarthaGène efficiency and sizes up to 1023 should be fine.

Arguments :

Example :

# starting with a heap of size 7
CG> heapsize 7

# filling it
CG> dsload Data/bc1.cg
{1 f2 backcross 17 208 /homes/thomas/carthagene/test/Data/bc1.cg}
CG> sem

Map -1 : log10-likelihood =  -485.24
-------:
 Set : Marker List ...
   1 : MS4 MS5 MS13 MS6 MS11 MS17 MS16 MS8 MS7 MS2 MS3 MS9 MS15 MS12 MS20 MS1\
9 MS1

CG> flips 3 3.0 1
...
CG> heaprint

Map  0 : log10-likelihood =  -454.74
-------:
 Set : Marker List ...
   1 : MS6 MS5 MS4 MS11 MS13 MS16 MS17 MS8 MS7 MS2 MS3 MS9 MS12 MS15 MS19 MS2\
0 MS1

Map  2 : log10-likelihood =  -454.58
-------:
 Set : Marker List ...
   1 : MS4 MS5 MS6 MS11 MS13 MS17 MS16 MS8 MS7 MS3 MS2 MS9 MS12 MS15 MS19 MS2\
0 MS1

Map  6 : log10-likelihood =  -454.09
-------:
 Set : Marker List ...
   1 : MS6 MS5 MS4 MS11 MS13 MS16 MS17 MS8 MS7 MS3 MS2 MS9 MS12 MS15 MS19 MS2\
0 MS1

Map  1 : log10-likelihood =  -452.77
-------:
 Set : Marker List ...
   1 : MS4 MS5 MS6 MS11 MS13 MS16 MS17 MS8 MS7 MS2 MS3 MS9 MS12 MS15 MS20 MS1\
9 MS1

Map  4 : log10-likelihood =  -452.11
-------:
 Set : Marker List ...
   1 : MS4 MS5 MS6 MS11 MS13 MS16 MS17 MS8 MS7 MS3 MS2 MS9 MS12 MS15 MS20 MS1\
9 MS1

Map  5 : log10-likelihood =  -451.97
-------:
 Set : Marker List ...
   1 : MS4 MS5 MS6 MS11 MS13 MS16 MS17 MS8 MS7 MS2 MS3 MS9 MS12 MS15 MS19 MS2\
0 MS1

Map  3 : log10-likelihood =  -451.32
-------:
 Set : Marker List ...
   1 : MS4 MS5 MS6 MS11 MS13 MS16 MS17 MS8 MS7 MS3 MS2 MS9 MS12 MS15 MS19 MS2\
0 MS1

# keeping the 3 best one.
CG> heapsize 3

CG> heaprint

Map  0 : log10-likelihood =  -452.11
-------:
 Set : Marker List ...
   1 : MS4 MS5 MS6 MS11 MS13 MS16 MS17 MS8 MS7 MS3 MS2 MS9 MS12 MS15 MS20 MS1\
9 MS1

Map  1 : log10-likelihood =  -451.97
-------:
 Set : Marker List ...
   1 : MS4 MS5 MS6 MS11 MS13 MS16 MS17 MS8 MS7 MS2 MS3 MS9 MS12 MS15 MS19 MS2\
0 MS1

Map  2 : log10-likelihood =  -451.32
-------:
 Set : Marker List ...
   1 : MS4 MS5 MS6 MS11 MS13 MS16 MS17 MS8 MS7 MS3 MS2 MS9 MS12 MS15 MS19 MS2\
0 MS1

CG>

See also :

Thomas Schiex 2009-10-27