EricArcher / strataG

strataG is a toolkit for haploid sequence and multilocus genetic data summaries, and analyses of population structure.
25 stars 11 forks source link

readGenData doesn't exclude NA's #35

Closed PAMorin closed 3 years ago

PAMorin commented 4 years ago

readGenData with na.strings = c(NA, "NA", "", " ", "?", ".") incorporates "NA" as an allele, not missing data.

EricArcher commented 4 years ago

There seems to be an issue with the na.strings argument in data.table::fread() not recognizing "NA" in some circumstances. I've bypassed that in an edit toreadGenData() so that all strings in na.strings will be converted to NA after the data is read in.