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

Add a 'seed' parameter to the netEmbedding function #178

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ycl6
Copy link

@ycl6 ycl6 commented Jun 26, 2024

A PR with similar changes has been submitted before to sqjin/CellChat#679 to help with the reproducibility of UMAP plots when running the netEmbedding function.


The PR adds a seed paramter to the netEmbedding function to allow generating reproducible UMAPs, as requested in sqjin/CellChat#155, sqjin/CellChat#196 and sqjin/CellChat#435. This works on both umap-learn and uwot methods. The default setting is seed = 42. One can use seed = NULL to reset and produce a different set of embeddings.

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

Successfully merging this pull request may close these issues.

1 participant