Here's the issue: if I submit a "clean" assay, anyNA() returns FALSE. However, if one of the columns of the assay has variance near 0, then scaling (which happens in CreateOmics()) will create columns with NA values. Therefore, the user will get the error "Missing observations are not permitted in the assay data.", but they will have no missing values.
Solution: move the calls to CheckAssay() and CheckPwyColl() from the nested CreateOmics*() functions into the CreateOmics() wrapper.
Here's the issue: if I submit a "clean" assay,
anyNA()
returnsFALSE
. However, if one of the columns of the assay has variance near 0, then scaling (which happens inCreateOmics()
) will create columns withNA
values. Therefore, the user will get the error "Missing observations are not permitted in the assay data.", but they will have no missing values.Solution: move the calls to
CheckAssay()
andCheckPwyColl()
from the nestedCreateOmics*()
functions into theCreateOmics()
wrapper.