Hi,
I'm analyzing spatial transcriptomics data. Instead of using the default log_umi as the latent_var, I would like to regress out cell volume. I have put cell volume for each cell as a column in seu@meta.data. However, I run the below code and got error:
seu$log_cell_volume <- log1p(seu$volume)
seu <- SCTransform(
seu,
assay = "RNA",
vars.to.regress = NULL,
latent_var = "log_cell_volume",
verbose = TRUE
)
error in h(simpleError(msg, call)) :
error in evaluating the argument 'x' in selecting a method for function 'as.matrix': undefined columns selected
The error should come from the step of Getting residuals for block 1(of 14) for counts dataset.
I have no NA in the log_cell_volume column.
Can you suggest if this is doable with SCT, and if so, how to correctly do it?
Thanks for any help!
Hi,
I'm analyzing spatial transcriptomics data. Instead of using the default log_umi as the latent_var, I would like to regress out cell volume. I have put cell volume for each cell as a column in seu@meta.data. However, I run the below code and got error:
The error should come from the step of Getting residuals for block 1(of 14) for counts dataset.
I have no NA in the log_cell_volume column.
Can you suggest if this is doable with SCT, and if so, how to correctly do it?
Thanks for any help!