Closed jaclynbeck-sage closed 2 years ago
I have updated MuSiC. Could you please try again?
@xuranw I updated the MuSiC to 1.0.0 version, and I got the same error as that of @jaclynbeck-sage . I second the suggestion provided by @jaclynbeck-sage on this issue about explicitly mentioning the package name for the function.
Could you please try again? @utkarsh0493 @jaclynbeck-sage
It's working! Thank you so much, you're awesome for fixing this so quickly!
I installed the latest version of MuSiC today and am attempting to run it with a SingleCellExperiment object that has a sparse matrix as the count matrix. When I call
music_prop
, it crashes at the start of the functionmusic_basis
here:The issue is with rowSums: Error in rowSums(x) : 'x' must be an array of at least two dimensions
counts(x) returns a sparse matrix of class "dgCMatrix". If I run
rowSums(counts(x))
in my console, it is able to handle the function call because it figures out it needs to use Matrix::rowSums. However when calling themusic_prop
/music_basis
function, it tries to use the base rowSums function instead and throws an error.