
Step: Partial Least Squares Discriminant Analysis (PLS-DA)
step_plsda.RdPerform PLS-DA using glystats::gly_plsda() and plot it with glyvis::plot_plsda().
PLS-DA is a supervised method that finds components maximizing covariance between
predictors and the response variable (group membership).
Arguments
- on
Name of the experiment to run PLS-DA on. Can be "exp", "sig_exp", "trait_exp", "sig_trait_exp", "motif_exp", "sig_motif_exp".
- ncomp
Number of components to include. Default is 2.
- scale
Logical indicating whether to scale the data. Default is TRUE.
- plot_width
Width of plots in inches. Default is 5.
- plot_height
Height of plots in inches. Default is 5.
- ...
Additional arguments passed to
glystats::gly_plsda().
Details
Data required:
exp(ifon = "exp"): The experiment to run PLS-DA ontrait_exp(ifon = "trait_exp"): The trait experiment to run PLS-DA onmotif_exp(ifon = "motif_exp"): The motif experiment to run PLS-DA on
Tables generated (with suffixes):
plsda_samples: A table containing the PLS-DA scores for each sampleplsda_variables: A table containing the PLS-DA loadings for each variableplsda_variance: A table containing the explained variance for each componentplsda_vip: A table containing the Variable Importance in Projection (VIP) scoresplsda_perm_test: A table containing permutation test results
Plots generated (with suffixes):
plsda_scores: A PLS-DA score plot colored by groupplsda_loadings: A PLS-DA loading plotplsda_variance: A PLS-DA variance (scree) plotplsda_vip: A PLS-DA VIP score plot
AI Prompt
This section is for AI in inquire_blueprint() only.
Include this step when users explicitly asks for PLS-DA.