Closed akoontz11 closed 2 years ago
Thanks for flagging this and the reprex. The issue was in fsc2gtypes()
in that it was only checking the marker type to decide whether or not to make a haploid or polyploid gtypes object. I've changed that so that haploid objects are only created if ploidy = 1
and marker type is DNA. Your reprex now works as it should.
I'm using strataG (v2.5.01; R version 4.2.0) to run fastSimcoal2 simulations (with DNA markers) and convert the Arlequin outputs to gtype objects. However, when I run
fsc2gtypes
on my fsc parameters object, I get the error in the title. I was able to trace the error back to this line of thedf2gtypes
function, but I haven't been able to fix it yet.I've included a reprex below:
Ultimately, my goal is to convert the Arlequin outputs to genind, and I was planning on doing this by calling
gtypes2genind
next. If there's something I'm messing up, or there's another means of achieving this conversion (Arlequin to genind) using strataG, please let me know.Thank you for your time, and for creating an incredibly useful package!