Skip to contents

This function performs regression analysis of a specific feature against a phenotype performance in the metadata. It can use linear mixed models (LMM), simple linear regression (LM), or Pearson correlation.

Usage

FeaturePerformanceRegression(
  mmo,
  target,
  phenotype,
  groups,
  model = "lmm",
  normalization = "Z",
  output
)

Arguments

mmo

The mmo object with feature data and metadata

target

The name of the feature to analyze

phenotype

The name of the phenotype performance in the metadata

groups

A vector of group names from the metadata containing performance data

model

The type of regression model to use. Options are 'lmm' for linear mixed model, 'lm' for simple linear regression, or 'pearson' for Pearson correlation (default: 'lmm')

normalization

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

output

The output file path for the regression plot