Spreads genotype information into wider format for genotype filtering splits loci with more than 1 variant into separate rows.

loci_by_genotype(df)

Arguments

df

a data.frame / tibble for loci

Value

A tibble with the genotypes spread and the multivariant loci split into separate rows.