Skip to content

Commit

Permalink
Fix a variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Eagles committed Nov 2, 2023
1 parent a5f7a58 commit 1197146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/multi_gene.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spot_plot_z_score <- function(spe, genes, sample_id, assayname = "logcounts", mi
# For each spot, average expression Z-scores across all selected genes
a <- assays(spe)[[assayname]]
gene_z <- (a - rowMeans(a)) / rowSds(a)
spe$temp_var <- colMeans(gene_z, na.rm = TRUE)
spe$Z_score <- colMeans(gene_z, na.rm = TRUE)

# Plot spatial distribution of averaged expression Z-scores for this
# sample
Expand Down

0 comments on commit 1197146

Please sign in to comment.