Skip to contents

Returns the numeric score vector for the currently active score column ("quantile_score" or "raw_score").

Usage

av_get_scores(obj)

Arguments

obj

An AlphaVarSet object.

Value

A numeric vector of length nrow(obj$data).

Examples

example_file <- system.file(
  "extdata", "bcl11a_rs1427407_example.csv",
  package = "AlphaVaR"
)
obj <- av_import_csv(example_file)
#> Reading bcl11a_rs1427407_example.csv ...
summary(av_get_scores(obj))
#>    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
#> -0.9795  0.1825  0.4218  0.3797  0.7156  0.9968 

# quantile_score is a bounded rarity measure, raw_score an unbounded
# directional effect, so the same call returns a different scale per mode.
obj_raw <- av_set_active_score(obj, "raw")
#> Switched active score: quantile_score -> raw_score. Statistics cleared.
summary(av_get_scores(obj_raw))
#>       Min.    1st Qu.     Median       Mean    3rd Qu.       Max. 
#>    -0.1610     0.0014     0.0078   139.7482     5.9280 10198.0000