discoal icon indicating copy to clipboard operation
discoal copied to clipboard

Repeated positions provided in simulation output

Open MattHartfield opened this issue 7 months ago • 3 comments

Hi, I noticed that some positions are repeated in the output file, so two different polymorphism states are assigned to the same location.

Minimal example: discoal 30 1 110000 -t 550 -r 110 > all_sims.out

Then obtaining positions and showing duplicates: sed -n 6p all_sims.out | awk -F ': ' '{print $2}' | awk '{for(i = 1; i <= NF; i++) printf ("%.6f\n",$i)}' | uniq -D

MattHartfield avatar Jul 22 '24 14:07 MattHartfield