Permutation Options in ‘gscramble’

When using the function segments2markers() there are two options that control the type of permutation of genetic data that is done:

The different values of these options can be applied together to yield 3 × 2 = 6 different permutation patterns as displayed in the figure below.

Genetic material is always permuted only among members of the same population.

Need to say more, but the result of different options is pretty clear.

You should only use preserve_haplotypes = TRUE if the data are phased.