
Step: UMAP
step_umap.RdPerform UMAP analysis using glystats::gly_umap() and
plot a UMAP plot using glyvis::plot_umap().
Note that the result of UMAP largely depends on the n_neighbors parameter.
Usually it's a trial-and-error process to find the best value iteratively.
If you are not satisfied with the result,
manually call glyvis::plot_umap() with different n_neighbors values
to find the best one.
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.
Usage
step_umap(
on = "exp",
n_neighbors = 15,
n_components = 2,
plot_width = 5,
plot_height = 5,
...
)Arguments
- on
Name of the experiment to run UMAP 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".
- n_neighbors
Number of neighbors to consider for each point. Default is 15.
- n_components
Number of output dimensions. Default is 2.
- plot_width
Width of the plot in inches. Default is 5.
- plot_height
Height of the plot in inches. Default is 5.
- ...
Additional arguments passed to
uwot::umap().
Details
Data required:
exp(ifon = "exp"): The experiment to perform UMAP ontrait_exp(ifon = "trait_exp"): The trait experiment to perform UMAP ondynamic_motif_exp(ifon = "dynamic_motif_exp"): The dynamic motif experiment to perform UMAP onbranch_motif_exp(ifon = "branch_motif_exp"): The branch motif experiment to perform UMAP on
Data generated (with suffixes):
umap: The UMAP result
Plots generated (with suffixes):
umap: The UMAP plot
AI Prompt
This section is for AI in inquire_blueprint() only.
Include this step only when the user explicitly asks for UMAP.