# Impute phenotype under some constraints

Errors happen frequently in the lab and I got one sample that we mixed one important information (the region of the sample) between two samples. Now we don't know which sample is from which region, but we know all the other variables (Date of the sample, patient, and other variables).

So far, my solution has been to make that values as NA to be able to analyze it, but I would like to know if there is any solution. If I can convey to test or other analysis downstream that sample A and sample B are from Location1 or Location2 and if A is from Location1, B is from Location2 and otherwise round.

There are several packages for imputing quantitative data, but I couldn't find any to store this kind of information or to impute qualitative data. I can recall a recent paper with single-cell sequencing that estimated phenotype and some other variables but I can't find it neither I think it is possible with RNAseq.

Although maybe I could build a classifier to actually do that (but that would be too long and I'm not sure if it is worth it)

Notes

1. My samples are from more than two locations.
2. My samples consist of 16S microbiome DNA-seq and RNA-seq