Skip to contents

This function calculates the specialization index for a given mmo object, normalization method, and optional filtering by groups and features.

Usage

GetSpecializationIndex(
  mmo,
  normalization = "None",
  filter_group = FALSE,
  group_list = NULL,
  filter_feature = FALSE,
  feature_list = NULL
)

Arguments

mmo

The mmo object containing feature data and metadata

normalization

The normalization method to use for feature data. Options are 'None', 'Log', 'Meancentered', or 'Z' (default: 'None')

filter_group

A boolean indicating whether to filter the feature data by a specific group list (default: FALSE)

group_list

A list of groups to filter the feature data by, if filter_group is TRUE (default: NULL)

filter_feature

A boolean indicating whether to filter the feature data by a specific list (default: FALSE)

feature_list

A list of feature names to filter the feature data by, if filter_feature is TRUE (default: NULL)

Value

A data frame containing the specialization index for each group in the metadata, with columns for group and specialization index.