Closed dahun73 closed 7 months ago
What was the solution to this? I'm running in to the same issue
HI,
could you share the traceback()
of that error?
HI, could you share the
traceback()
of that error?
3: stop(gettextf("unable to find an inherited method for function %s for signature %s", sQuote(fdef@generic), sQuote(cnames)), domain = NA) 2: (function (classes, fdef, mtable) { methods <- .findInheritedMethods(classes, fdef, mtable) if (length(methods) == 1L) return(methods[[1L]]) else if (length(methods) == 0L) { cnames <- paste0("\"", vapply(classes, as.character, ""), "\"", collapse = ", ") stop(gettextf("unable to find an inherited method for function %s for signature %s", sQuote(fdef@generic), sQuote(cnames)), domain = NA) } else stop("Internal error in finding inherited methods; didn't return a unique method", domain = NA) })(list(structure("missing", package = "methods")), new("nonstandardGenericFunction", .Data = function (Object, ...) { standardGeneric("imbalance_score") }, generic = structure("imbalance_score", package = "condiments"), package = "condiments", group = list(), valueClass = character(0), signature = "Object", default = NULL, skeleton = (function (Object, ... 1: imbalance_score(rd = reducedDims(sce_all)$UMAP, cl = colData(sce_all)$age_inj, k = 20, smooth = 40)
Can you tell me the output of
is(reducedDims(sce)$UMAP)
is(colData(sce)$stim)
is(reducedDims(sce_all)$UMAP) [1] "matrix" "array"
[3] "mMatrix" "AnyMatrix"
[5] "input" "mpinput"
[7] "listI" "output"
[9] "structure" "matrix_OR_array_OR_table_OR_numeric" [11] "vector" "vector_OR_factor"
[13] "vector_OR_Vector"is(colData(sce_all)$stim) [1] "NULL" "OptionalFunction" "optionalMethod" "OptionalList"
[5] "OptionalCharacter" "character_OR_NULL" "DataFrame_OR_NULL" "Constraint_OR_NULL" [9] "data.frameOrNULL" "integer_OR_NULL" "Assays_OR_NULL" "output"
Thanks for the help :)
As you can see, colData(sce_all)$stim
is null. You are not providing a condition vector.
Hope this helps.
Hello :)
I'm new user for condiments package. I'm trying to follow tutorial using my data now. To compare imbalance score between different conditions, I tried using 'imbalance_score' function. However, error came out and I can not which one is wrong.
I annotated two conditions for name as 'stim'.
Following error is:
Is there any suggestion about this..?
Thanks
Dahun