Skip to content

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

Open
ycl6 wants to merge 2 commits intojinworks:mainfrom
ycl6:add-seed-to-netEmbedding
Open

Add a 'seed' parameter to the netEmbedding function#178
ycl6 wants to merge 2 commits intojinworks:mainfrom
ycl6:add-seed-to-netEmbedding

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