Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When working with the
calculateNMF()
function (with the release version ofscater
), I realized that the default arguments result in resetting the system seed, which seems like undesired behavior, both because it means that repeated runs do not vary as would be expected (and as the docs seem to indicate).For example:
Setting the default seed as
NULL
seems to correctly alleviate the issue (and this is the defaultseed
value for the underlyingRccpML::nmf()
):Created on 2025-02-28 with reprex v2.1.1
Since the pattern from other similar functions like
calculateUMAP()
is to not includeseed
as a default argument, the simplest solution seemed to me to be to simply remove the argument, allowing the default value forRcppML::nmf()
to be used. That is what I have done here.I also fixed a small error in the docs which referred to passing additional arguments to
Rtsne
.If you would like to pursue a different solution (or leave it as is), please let me know.