runAutoencoderDenoising.Rd
This function constructs and uses a neural network to denoise expression levels spatially.
runAutoencoderDenoising(
object,
activation,
bottleneck,
mtr_name_output = "denoised",
layers = c(128, 64, 32),
dropout = 0.1,
epochs = 20,
display_plot = FALSE,
genes,
set_as_active = FALSE,
verbose = TRUE,
of_sample = NA
)
A valid spata-object.
Character value. Denotes the activation function. (defaults to 'relu')
Numeric value. Denotes the number of bottleneck neurons.
Character value. Denotes the name under which the denoised matrix is stored in the data slot.
Numeric vector of length 3. Denotes the number of neurons in the three hidden layers. (default = c(128, 64, 32))
Numeric value. Denotes the dropout. (defaults to 0.1)
Numeric value. Denotes the epochs of the neural network. (defaults to 20)
Logical. If set to TRUE a scatter plot of the result is displayed in the viewer pane.
See documentation for plotAutoencoderResults()
for more information.
Character vector of length two. Denotes the genes to be used for the validation plot.
Logical. If set to TRUE the denoised matrix is set as the active matrix via
setActiveExpressionMatrix()
.
A spata-object containing the denoised expression matrix in slot @data$denoised. This matrix is then denoted as the active matrix.