Hey ya'll,

This is the error I am getting:

    > scfp3 <- SCTransform(scfp3, method = "glmGamPoi", vars.to.regress = "percent.mt", verbose = FALSE)

    Error in density.default(x = genes_log_gmean_step1, bw = "nrd", adjust = 1) : 
      'x' contains missing values
    In addition: Warning message:
    In vst(method = "glmGamPoi", umi = new("dgCMatrix", i = c(0L, 2L,  :
      NaNs produced

I think this error might be because there are zero integers in the expression matrix. For example the data frame looks like this ![enter image description here][1]


  [1]: /media/images/c9e3cf8a-d999-4fce-8ef6-fe5c78a6

Could someone help me solve this, please? I have been messing around with changing Na to zeros and vice versa, no solution yet. I will keep trying.
Turns out the data was already normalized (log-transformed).

This is why I wasn't able to run SCTransform on it.

[https://github.com/satijalab/seurat/issues/4546#issuecomment-850074482][1]


  [1]: https://github.com/satijalab/seurat/issues/4546#issuecomment-850074482