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)

Arguments

G

a GSP tibble

add

amount to add to each label

Value

Returns a GSP just like the input, but with the identity numbers of the individuals in it incremented by add.

Examples

# get an example GSP
G <- create_GSP(pop1 = "p1", pop2 = "p2", F1B2 = TRUE)