Closed zkamvar closed 3 years ago
I have found the problem. poppr:::fill_zero()
assumes that the incoming data is numeric. This procedure was bypassed in the fix for #108 by assuming that all SNP data was haploid.
The solution I'm going with is to modify the mat = FALSE
flag of fill_zero
-> fill_zero_locus
-> generate_bruvo_mat
that will accept non-numeric data. I am changing it to mat_type = character(0)
by default and accepting one of three scenarios:
character(0)
: should produce a data frame with one locus per column"numeric"
: produces a numeric matrix with one allele per column"character"
: produces a character matrix with one allele per column.
From https://groups.google.com/g/poppr/c/FfDlDWArQsA/m/UWp8h6ISDQAJ
genind2genalex()
is producing all zeroes for output when it should produce SNP data. It's clear the error lies with thegenind2genalex()
and notdf2genind()
.Created on 2021-01-25 by the reprex package (v0.3.0)