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)
Hi, I met a problem when I use runJaccard to calculate jaccard matrix. My script is
And the error is
Could do you please help me?
Thank you very much!