
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).
This step depends on the on parameter (default: exp).
When
on = "exp", requiresexp(usually afterstep_preprocess()).When
on = "sig_exp", requiressig_expfrom one ofstep_dea_limma(),step_dea_ttest(),step_dea_wilcox(),step_dea_anova(), orstep_dea_kruskal().When
on = "trait_exp", requirestrait_expfromstep_derive_traits().When
on = "sig_trait_exp", requiressig_trait_expfrom DEA on traits.When
on = "dynamic_motif_exp", requiresdynamic_motif_expfromstep_quantify_dynamic_motifs().When
on = "sig_dynamic_motif_exp", requiressig_dynamic_motif_expfrom DEA on motifs.When
on = "branch_motif_exp", requiresbranch_motif_expfromstep_quantify_branch_motifs().When
on = "sig_branch_motif_exp", requiressig_branch_motif_expfrom DEA on motifs.
Arguments
- on
Name of the experiment to run PLS-DA on. Can be "exp", "sig_exp", "trait_exp", "sig_trait_exp", "dynamic_motif_exp", "sig_dynamic_motif_exp", "branch_motif_exp", "sig_branch_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 ondynamic_motif_exp(ifon = "dynamic_motif_exp"): The dynamic motif experiment to run PLS-DA onbranch_motif_exp(ifon = "branch_motif_exp"): The branch 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.