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

Fix the number of lineage #37

Closed
jakyzhu opened this issue May 9, 2019 · 2 comments
Closed

Fix the number of lineage #37

jakyzhu opened this issue May 9, 2019 · 2 comments

Comments

@jakyzhu
Copy link

jakyzhu commented May 9, 2019

Hi, so I have a single cell data and I do know there is only one possible directed linear lineage. Is there anyway that I can fix the lineage number in the slingshot? Thanks,

@kstreet13
Copy link
Owner

Hey @jakyzhu ,

Yes, there are ways to do this, but only for the specific case of one lineage. The easiest approach would probably be to run slingshot without providing any cluster labels. This will always lead to a single lineage being identified and the curve representing that lineage will be essentially the same as what you would get from fitting a principal curve. Similarly, you could cluster into k = 2 clusters and still be guaranteed only one lineage, but here you would have control over the directionality (via start.clus).

Beyond the single-lineage case, there is no simple way to guarantee a specific number of lineages. We recommend using the end.clus argument to specify known endpoint clusters, instead.

@jakyzhu
Copy link
Author

jakyzhu commented May 9, 2019

@kstreet13 Oh, thanks for the quick reply:) It helps a lot

@diyadas diyadas closed this as completed May 9, 2019
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

3 participants