Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in runJaccard #27

Open
yqshao17 opened this issue Mar 5, 2020 · 0 comments
Open

Error in runJaccard #27

yqshao17 opened this issue Mar 5, 2020 · 0 comments

Comments

@yqshao17
Copy link

yqshao17 commented Mar 5, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant