-
Notifications
You must be signed in to change notification settings - Fork 34
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
Default 'ties.method' differs between rowRanks() and rank() #142
Comments
Good point. Hmm... could be a mistake or it could be that |
Nah... the reason is probably that it was only Version: 0.7.0 [2013-01-14] NEW FEATURES:
Version: 0.6.4 [2013-01-13] NEW FEATURES:
Version: 0.4.0 [2011-11-11] [...] NEW FEATURES:
|
In any case I'm glad that |
Cool. Is your |
Subscribed to notifications of matrixStats and found this. Just wanted to add that I also used So this is mainly a praise of And by coincidence "row_wilcoxon" is next on the list of things that will get included in that package. |
Interesting! I did not know about the matrixTests package, it's very nice! My rowWilcoxonTests() is available in the sansSouci package: https://github.com/pneuvial/sanssouci/blob/develop/R/rowWilcoxonTests.R Of course it would make more sense to have this or a version of it in a package specifically dedicated to tests on the rows of a matrix! NB: as noted in the Details of the man page:
FYI Karolis: I also have |
Thank you a lot for the sharing the reference to your package Pierre! Will definitely take a look. From time to time I search for packages that implement similar things and everything I find I add to the references in the README under "See Also" section. Added yours now too. I probably missed it because it wasn't on CRAN nor BioConductor. Also think yours is the first time I see Wilcoxon Test implemented in such a way. Most others typically implement fast versions of t-tests and are done.
Yes, this is the main thing that held me back from implementing Wilcoxon test in matrixTests. I try to maintain high fidelity with tests that are already in R, so all these approximations and when they are used sometimes takes time to get "right". Especially when they depend on sample size and there are different number of missing |
I submitted a PR that addresses this and adds "first", "last", "random", and "dense" ties.methods. |
Thank again for adding this (PR #146). We are going to need several release cycles to change the default for argument
To speed up the above, I could run reverse dependency checks with |
I've scanned all 347 reverse dependencies on CRAN and Bioconductor 3.13 (R 4.1.0) for those that use
Thus, as of 2021-06-22, there are 12 packages in total that rely on these matrixStats functions: Bioconductor:
CRAN:
These are the packages that we must make sure don't make assumptions about the default UPDATE: I guess my "scan" script produces false negatives, because I'd expect DelayMatrixStats and sparseMatrixStats to also show up above, but they don't. UPDATE 2: It might be that DelayMatrixStats and sparseMatrixStats only imports from matrixStats in their package tests, which I did not scan. |
… rowRanks() will become deprecated in R (>= 4.4.0) [#142]
I ran another scan for packages not specifying the CRAN:
Bioconductor:
This won't become defunct anytime soon, but I will make it deprecated (i.e. produce warnings) starting with R (>= 4.4.0) [2024-04-24] and therefore also Bioconductor (>= 3.19) [2024-05-01]. |
… rowRanks() will become deprecated in R (>= 4.4.0) - take 2 [#142]
…0-9000 R_MATRIXSTATS_TIES_METHOD_MISSING=defunct R_MATRIXSTATS_TIES_METHOD_FREQ=1 [#142] [ci skip]
This is implemented in matrixStats 1.3.0, which is now on CRAN. |
NEW SCAN on 2024-12-29: I ran another scan for CRAN and Bioconductor packages not specifying the CRAN:
Bioconductor:
So, nothing changed since 2024-04-11. |
@HenrikBengtsson the two cases I can find in MatrixGenerics are tickled in the unit tests where we are testing if the MatrixGenerics API matches that of matrixStats1:
I could change those calls2 to the form I also tried to wrap those 2 lines in the tests in a Footnotes
|
… warnings/errors for the time being [#142] [ci skip]
UPDATE: matrixStats 1.5.0 [2025-01-07] is now on CRAN, and it now produces a warning every 10:th call that does not explicitly specify |
@HenrikBengtsson I should've said explicitly, I haven't actually made any changes to MatrixGenerics, so this will continue to be an 'error' when you run your reverse dependencies check with |
No need to do anything special; a false positive is not a biggie. We just need to coordinate when this becomes defunct, which I guess should be done well in advance for the next Bioc release. |
Thanks! |
By default
rank()
uses the 'average' method to break ties, whilerowRanks()
uses the 'max' method:Shouldn't the default argument be the same in both functions?
The text was updated successfully, but these errors were encountered: