r3fang / SnapTools

A module for working with snap files in Python
Apache License 2.0
35 stars 21 forks source link

Error in runJaccard #27

Open yqshao17 opened 4 years ago

yqshao17 commented 4 years ago

Hi, I met a problem when I use runJaccard to calculate jaccard matrix. My script is

x.sp = runJaccard(x.sp, tmp.folder='tmp',  mat="bmat")

And the error is

Error in (function (cl, name, valueClass) : ‘method’ is not a slot in class “jaccard”
Traceback:

1. runJaccard(x.sp, tmp.folder = "tmp", mat = "bmat")
2. runJaccard.default(x.sp, tmp.folder = "tmp", mat = "bmat")
3. (function (cl, name, valueClass) 
 . {
 .     ClassDef <- getClass(cl)
 .     slotClass <- ClassDef@slots[[name]]
 .     if (is.null(slotClass)) 
 .         stop(gettextf("%s is not a slot in class %s", sQuote(name), 
 .             dQuote(cl)), domain = NA)
 .     if (.identC(slotClass, valueClass)) 
 .         return(TRUE)
 .     ok <- possibleExtends(valueClass, slotClass, ClassDef2 = getClassDef(slotClass, 
 .         where = .classEnv(ClassDef)))
 .     if (isFALSE(ok)) 
 .         stop(gettextf("assignment of an object of class %s is not valid for @%s in an object of class %s; is(value, \"%s\") is not TRUE", 
 .             dQuote(valueClass), sQuote(name), dQuote(cl), slotClass), 
 .             domain = NA)
 .     TRUE
 . })(structure("jaccard", package = "SnapATAC"), "method", "character")
4. stop(gettextf("%s is not a slot in class %s", sQuote(name), dQuote(cl)), 
 .     domain = NA)

Could do you please help me?

Thank you very much!