Closed bschilder closed 2 years ago
Only the specificity quantiles matrices are getting converted to sparse format, making CTDs larger than they need to be.
Make all matrices in CTD sparse.
ctd2 <- EWCE::standardise_ctd(ctd) ctd <- ewceData::ctd() EWCE:::is_sparse_matrix(ctd2[[1]]$mean_exp) # FALSE EWCE:::is_sparse_matrix(ctd2[[1]]$specificity) # FALSE EWCE:::is_sparse_matrix(ctd2[[1]]$specificity_quantiles) # TRUE
(Add output of the R function utils::sessionInfo() below. This helps us assess version/OS conflicts which could be causing bugs.)
utils::sessionInfo()
Also, make standardise_ctd more generalizable to all matrices stored in CTD, not just those I've hard-coded into the function.
standardise_ctd
1. Bug description
Only the specificity quantiles matrices are getting converted to sparse format, making CTDs larger than they need to be.
Expected behaviour
Make all matrices in CTD sparse.
2. Reproducible example
Code
3. Session info
(Add output of the R function
utils::sessionInfo()
below. This helps us assess version/OS conflicts which could be causing bugs.)