Under version 0.14 this fails with the following error:
> emptyHap <- haplotype(emptyDNA)
Error in `[.default`(x, i, , drop = FALSE) : subscript out of bounds
In addition: Warning message:
In haplotype.DNAbin(emptyDNA) :
no segregating site detected with these options
Could the old behavior (plus a warning) be restored?
Alternatively, is there a way to run haplotype() on an empty DNAbin object, or a way to produce an empty haplotype() object?
Hello,
I wanted to report an unexpected (to me) change in the behavior of
haplotype()
between versions 0.12 and 0.14.Under version 0.12 the following executes and produces an empty list:
Under version 0.14 this fails with the following error:
Could the old behavior (plus a warning) be restored? Alternatively, is there a way to run
haplotype()
on an empty DNAbin object, or a way to produce an empty haplotype() object?Thank you!