[Experimental]

This helper function returns the Z-score from an assay stored as a matrix.

colMeanZscores(x)

Arguments

x

(matrix)
containing numeric data with genes in rows and samples in columns, no missing values are allowed.

Value

A numeric vector containing the mean Z-score values for each column in x.

Examples

object <- hermes_data %>%
  add_quality_flags() %>%
  filter() %>%
  normalize() %>%
  assay("counts")

colMeanZscores(object)
#> 06520011B0023R 06520067C0018R 06520063C0043R 06520105C0017R 06520092C0017R 
#>   5.195107e-04  -1.189550e-03   1.155081e-04   3.308070e-04  -1.130575e-03 
#> 06520103C0017R 06520001B0023R 06520022C0017R 06520062C0017R 06520101B0017R 
#>   1.688234e-03   5.201127e-05  -1.145377e-03   1.922514e-03  -1.779591e-03 
#> 06520047C0017R 06520024B0014R 06520080B0023R 06520093C0017R 06520070C0018R 
#>   2.320730e-04  -4.893309e-04   9.562463e-04  -3.677371e-04  -9.567040e-04 
#> 06520023C0018R 06520099B0017R 06520015C0016R 06520019C0023R 
#>  -5.682047e-04   7.648360e-04   2.441182e-04   8.012106e-04