Closed smgogarten closed 2 years ago
o `seqAlleleCount()` returns NA instead of zero when all genotypes are missing at a site
Here, no sample selected is treated as missing genotypes. Returning NA is a way to distinguish the case of all missing genotypes from no polymorphism.
I am afraid that you might replace NA by zero in your codes, and check is.na()
if call seqAlleleCount()
and seqAlleleFreq()
.
In addition, the previous and current seqAlleleFreq()
could return NaN.
seqAlleleCount()
and seqAlleleFreq()
never return Inf, -Inf.
Ok, I updated the SeqVarTools code to accommodate the change.
Previously
seqAlleleCount
returned 0 if no samples were selected in the filter; the current version returnsNA
, which breaks some code in SeqVarTools.Running this on an earlier version of SeqArray: