get_su_for_feature_table_and_vector: Symmetrical Uncertainty diagnostic

Description Usage Arguments Value Examples

View source: R/ranking_of_features.R

Description

This functions runs symmetrical uncertainty for a feature table and a class, returning the scores of symmetrical uncertainty for all features

Usage

1
2
3
4
5
6
get_su_for_feature_table_and_vector(
  feature_table,
  target_vector,
  samples_in_rows = FALSE,
  bar_of_progress = FALSE
)

Arguments

feature_table

A table of features (observations in rows, variables in columns)

target_vector

A target vector, factor containing classes of the observations. Note: the observations must be in the same order as the parameter x.

samples_in_rows

A flag for the case in which samples are in rows and variables/genes in columns. Defaults to FALSE.

bar_of_progress

A flag to show progress. Defaults to FALSE.

Value

A dataframe containing the SU values for each feature

Examples

1
2
3
4
5
6
7
data(scDengue)
exprs <- SummarizedExperiment::assay(scDengue, 'logcounts')
discrete_expression <- as.data.frame(discretize_exprs(exprs))
infection <- SummarizedExperiment::colData(scDengue)
target <- infection$infection
su_values <- get_su_for_feature_table_and_vector(discrete_expression[,],target[])
su_values[1:10,]

lubianat/FCBF documentation built on March 3, 2021, 12:35 a.m.