Calculate scores of each cell on given features

gs_score_init(score, features = NULL)

Arguments

score

matrix, features in row and samples in column

features

vector, feature names to compute score

Value

a vector of score

Examples

data <- matrix(rnorm(100), 10, dimnames = list(1:10))
gs_score_init(data, 1:5)
#>  [1]  0.10758661  0.05618128 -0.26852295  0.37570022 -0.03272035 -0.20791226
#>  [7]  1.04099738  0.28757079  0.13642772  0.49718951