This function assumes that all individuals are named as numerics and that their haplotypes in hap1 and hap2 are named Xa and Xb,respectively, and their samples are named sX, where X is an integer,
renumber_GSP(G, add)
a GSP tibble
amount to add to each label
Returns a GSP just like the input, but with the identity numbers
of the individuals in it incremented by add
.
# get an example GSP
G <- create_GSP(pop1 = "p1", pop2 = "p2", F1B2 = TRUE)