
Step: t-SNE
step_tsne.RdPerform t-SNE analysis using glystats::gly_tsne() and
plot a t-SNE plot using glyvis::plot_tsne().
Note that the result of t-SNE largely depends on the perplexity 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_tsne() with different perplexity 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.
Arguments
- on
Name of the experiment to run t-SNE 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".
- dims
Number of output dimensions. Default is 2.
- perplexity
Perplexity parameter for t-SNE. Default is 30.
- 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
Rtsne::Rtsne().
Details
Data required:
exp(ifon = "exp"): The experiment to perform t-SNE ontrait_exp(ifon = "trait_exp"): The trait experiment to perform t-SNE ondynamic_motif_exp(ifon = "dynamic_motif_exp"): The dynamic motif experiment to perform t-SNE onbranch_motif_exp(ifon = "branch_motif_exp"): The branch motif experiment to perform t-SNE on
Data generated (with suffixes):
tsne: The t-SNE result
Plots generated (with suffixes):
tsne: The t-SNE plot
AI Prompt
This section is for AI in inquire_blueprint() only.
Include this step only when the user explicitly asks for t-SNE.