Skip to content

Workflow to Explore Trajectories from Root Cluster #332

Description

@marcouderzo

Hi,
I am trying to find the possible trajectories from the root node, but I am not entirely sure I'm using the tool right. In the tutorial, it seems that you already know what to expect, since you're listing the root node and the target one.

My workflow has been the following:

  1. Custom preprocessing, Leiden clustering and cluster annotation (so, skipped all the stSME/Louvain code)
  2. Running pseudotime()
adata.uns["iroot"] = st.spatial.trajectory.set_root(adata,use_label="clusters",cluster=28,use_raw=False)
st.spatial.trajectory.pseudotime(adata,eps=50,use_rep="X_pca",use_label="clusters")

st.pl.trajectory.pseudotime_plot(adata_pseudo, use_label="clusters", edge_alpha = 0.01, node_size=0.1, dpi=300, spot_size=2)

The plot doesn't really show anything useful, not even in umap space.

  1. Now, I don't know if I should run pseudotimespace_global() or pseudotimespace_local() for my use case. I am confused on why I should specify a list_clusters=[] argument to construct a specific trajectory. If I don't, it will construct a trajectory with all clusters which doesn't start from my root at all. What is the actual use case of the two methods, and which should I choose if I want to explore possible trajectories between clusters from the root node to either all or a subset of target clusters. I guess what you're showing on the pseudotime_space tutorial using _global makes sense if you already know what you're looking for, right?

  2. st.pl.cluster_plot(adata,use_label="clusters", show_trajectories=True,show_subcluster=False) generates a plot with all clusters (of which half of them have the same color and I can't seem to change the cmap to have more than 20 colors), and besides that, only a couple of arrows appear. st.pl.trajectory.tree_plot(data) generates an empty canvas.

Could you please help me understand what's missing or what I am doing wrong? Thank you!

Best,

Marco Uderzo
Bioinformatics Engineer (IE) - Team "Spatio-Temporal Logic of Adult Neurogenesis"
Institute of Functional Genomics (IGFL) - CNRS UMR5242
ENS de Lyon

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions