bohrxd
bohrxd

Reputation: 33

Error in validityMethod(as(object, superClass)) : object 'Matrix_validate' not found

I just try to use :

scRNA <- FindNeighbors(scRNA, dims = pc.num) 

and

scRNA.counts <- Read10X(data.dir = "filtered_feature_bc_matrix")    

and both of them gives error like :

Error in validityMethod(as(object, superClass)) :    object 'Matrix_validate' not found

I guess these code totally run well in other's computer

so I wonder what's wrong with my code and how to fix it ?

Upvotes: 3

Views: 4337

Answers (2)

user4020650
user4020650

Reputation: 1

Try doing this before function calls:

Matrix_validate = "CsparseMatrix_validate"

Upvotes: 0

Martin M&#228;chler
Martin M&#228;chler

Reputation: 4765

Indeed, to solve the problem for you, it should be sufficient to do what @Mikael Jagan says:

update.packages("Matrix")

2nd thought: The above may not solve the problem entirely: As there are other packages involved, some of these may have to be re-installed (after the updating of Matrix).

Can you post the output (or good summary of that if it's too long) of

 traceback()

immediately after producing the error you are seeing?

Upvotes: 1

Related Questions