A helper function to check that the input data frame is OK
Just checks to make sure that column types are correct.
check_refmix(D, gen_start_col, type = "reference")
D
: the data framegen_start_col
: the column in which the genetic data startstype
: For writing errors, supply "mixture" or "reference" as appropriate.It also checks the patterns of missing data, and from that infers whether markers are haploid or diploid.
Useful links