Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plot function: branch or leaf #116

Open
MingBit opened this issue Feb 26, 2021 · 2 comments
Open

plot function: branch or leaf #116

MingBit opened this issue Feb 26, 2021 · 2 comments

Comments

@MingBit
Copy link

MingBit commented Feb 26, 2021

Hey!

Thanks again for the great tool! I am still stick with it. :-)
I noticed that the trajectory looks slight different in terms of different functions (st.plot_stream_sc vs st.plot_stream). As you can see, the pink cluster C5 is the branch point in fig.1 (stream plot) but becomes a leaf in fig.2 (stream plot at single cell level)

I checked the dimension_reduction fig.3.. Is it supposed to be a leaf. :-)
As illustrated in dimension_reduction figure, the branch point looks like somewhere in C4
Any idea how to adjust it? Thank you in advance.

image
image
image

@huidongchen
Copy link
Collaborator

huidongchen commented Feb 26, 2021

Sorry about the confusion. They are actually the same.

Re C5, the difference you are seeing is due to the way STREAM plot visualizes the branching event. More specifically, in STREAM plot, around the branching point, the main branch(S3_S0) will take into consideration the cells of its sub-branches in order to highlight the proportion of cells of this cell type going into two sub-branches.

As you see in stream plot around the branching point, the main branch is split into a much larger proportion of C5 cells going to the upper branch and a tiny proportion of C5 cells going downwards, which is consistent with single-cell-level stream plot.

But this distribution can be alleviated by increasing the number of windows in stream plot (factor_num_win )

@MingBit
Copy link
Author

MingBit commented Feb 26, 2021

Perfect!! It works! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants