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

Additional matrixStats functions #23

Open
PeteHaitch opened this issue Aug 24, 2017 · 1 comment
Open

Additional matrixStats functions #23

PeteHaitch opened this issue Aug 24, 2017 · 1 comment

Comments

@PeteHaitch
Copy link
Owner

PeteHaitch commented Aug 24, 2017

Figure out which should/need to have equivalents in DelayedMatrixStats, e.g., matrixStats::iqr()

@PeteHaitch
Copy link
Owner Author

PeteHaitch commented Oct 3, 2017

Here's the complete list of other functions exported from matrixStats:

sort(grep("^(col|row)", 
          getNamespaceExports("matrixStats"), 
          value = TRUE, 
          invert = TRUE))
#>  [1] "allocArray"      "allocMatrix"     "allocVector"    
#>  [4] "allValue"        "anyMissing"      "anyValue"       
#>  [7] "binCounts"       "binMeans"        "count"          
#> [10] "diff2"           "indexByRow"      "iqr"            
#> [13] "iqrDiff"         "logSumExp"       "madDiff"        
#> [16] "mean2"           "meanOver"        "product"        
#> [19] "sdDiff"          "signTabulate"    "sum2"           
#> [22] "sumOver"         "t_tx_OP_y"       "validateIndices"
#> [25] "varDiff"         "weightedMad"     "weightedMean"   
#> [28] "weightedMedian"  "weightedSd"      "weightedVar"    
#> [31] "x_OP_y"

On further thinking, there are all vector-based functions and so none of these need to be ported to and exported from DelayedMatrixStats.

However, it would be good to have some of these as internal helpers, i.e. for use with the Rcpp::*Vector::iterator objects used by beachmat. These might be live in DelayedMatrixStats or, more generally, in the Rcpp::algorithms namespace or as part of the RcppHoney package (see email with Dan Dillon). Most relevant are:

  • allValue()
  • anyMissing()
  • anyValue()
  • binCounts()
  • binMeans()
  • count()
  • diff2()
  • iqr()
  • iqrDiff()
  • logSumExp()
  • madDiff()
  • mean2()
  • meanOver() (Deprecated in favour of mean2())
  • product()
  • sdDiff()
  • signTabulate()
  • sum2()
  • sumOver() (Deprecated in favour of sum2()`
  • t_tx_OP_y()
  • varDiff()
  • weightedMad()
  • weightedMean()
  • weightedMedian()
  • weightedSd()
  • weightedVar()
  • x_OP_y()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant