Skip to content

Simulation output

Kamil S. Jaron edited this page May 21, 2018 · 2 revisions

First of all, log of the simulation is always printed to standard error stream, even when success is reported. The reason is to separated log of the process with the summary of simulation, which is printed to standard output stream.

The summary is printed in the end of every simulation and every time, when any output file is saved. Saved files are defined using four parameters in setting. Parameter

NUMBERofSAVES = 5

specifies number of saves. The save is done every NUMBERofGENERATIONS / NUMBERofSAVES generations, if DELAY is not specified. Parameter

NAMEofOUTPUTfile = simul_out

specifies the name of output. If user specified parameters using vectors this information will be added to the end of the filename as well as .tsv sulfix. Latter the sulfix might be dependent on parameter TYPEofOUTPUTfile, but so far it is always generic .tsv.

TYPEofOUTPUTfile = summary

TYPEofOUTPUTfile outputed data
hybridIndices Every line starts by an index of deme and it is followed by tab delimited hybrid indices of all [[individuals
hybridIndicesJunctions Hybrid indices and Number of junctions of all individuals (2 lines per deme)
complete Hybrid indices, Number of junctions and Heterozygocity of all individuals (3 lines per deme)
blocks Each line represents a full genotype of an individual, this is the full information that is simulated. Details in block output.
backtrace Each line represents an individual per generation, tracking parents and recombination events allowing to reconstruct full coalescence. Details are in page Backtrace output.
summary Saves the summary printed to standard output stream also to files
raspberrypi This is just fun mode. It slows down the simulation (1 generation per second) and prints on the standard output RGB colors of 8x8 demes (required by definition). The stream can be used for real time visualization of the simulation on the grid of 64 LED attached to computer RasberryPi in the same network using [[this

DELAY = 500

Allows to delay the start of saving files. Then the save will be done every (NUMBERofGENERATIONS - DELAY) / NUMBERofSAVES generations. If number is not round, it is rounded down, but the final save is done after the last generation anyway.

Hint: You can set empty NAMEofOUTPUTfile = , if you wish to work only with statistics of demes printed to standard output.

Clone this wiki locally