Closed HenrikBengtsson closed 3 months ago
@PeteHaitch, passing a scalar to argument center
will soon be defunct. I noticed that you explicitly allow for scalars in https://github.com/PeteHaitch/DelayedMatrixStats/blob/20c2e278d9ccf503a49dd489dc3597a21443c01d/R/rowVars.R#L16-L25.
@const-ae, FYI, passing a scalar to argument center
will soon be defunct; currently deprecated. I noticed that sparseMatrixStats accepts scalar center
values, e.g.
> sparseMatrixStats::colVars(sparse_mat, center = 4)
[1] 17.7777778 0.0000000 0.4444444 1.8888889 1.0000000 0.0000000
Thanks for the heads up. I made scalar 'center' arguments defunct in the devel version of sparseMatrixStats
. This was, anyways, not supported.
Thanks for the heads up. I'll take care of it before the upcoming BioC release.
Thank you. I've checked that there are no negative revdep side effects, so this will now be the default in the next release.
Is the new release imminent? More exactly, is it likely to be before or after the upcoming BioC release?
I'm thinking before ... Would it matter, given that I don't find any revdep packages being affected?
... and in worst case scenario (for current Bioc release and likes), it can for now be reverted using:
R_MATRIXSTATS_CENTER_ONSCALAR=deprecated
or in R, by:
options(matrixStats.center.onScalar = "deprecated")
This will be documented in ?matrixStats::matrixStats.options
.
Thanks for the extra info. I don't expect it to matter but it's helpful to me in prioritising tasks as the BioC release approaches.
Made the change for current devel (BioC 3.19) but not touched current release (BioC 3.18).
We have had the following since matrixStats 0.58.0 (2021-01-26):
center
ofcolSds()
,rowSds()
,colVars()
,rowVars()
,colMads()
,rowMads()
,colWeightedMads()
, androwWeightedMads()
is now deprecated.We should move to make it defunct by default.
I've started revdep checks with
R_MATRIXSTATS_CENTER_ONSCALAR=defunct
to see if there are any negative side effects.