Hi there,
I meet a "GetAssayData" error, when applying the progeny function to a Seurat object under Seurat V5 conditions.
Here is the error:
"Error:
! The slot argument of GetAssayData() was deprecated in SeuratObject 5.0.0 and is now defunct.
ℹ Please use the layer argument instead.
Traceback:
- progeny.Seurat(cdc2.object, scale = FALSE, organism = "Human",
. top = 500, perm = 1, return_assay = TRUE)
- progeny(as.matrix(Seurat::GetAssayData(expr, slot = "data", assay = assay_name)),
. scale = scale, organism = organism, top = top, perm = perm,
. verbose = verbose, z_scores = z_scores, get_nulldist = get_nulldist,
. assay_name = assay_name, return_assay = return_assay)
- as.matrix(Seurat::GetAssayData(expr, slot = "data", assay = assay_name))
- Seurat::GetAssayData(expr, slot = "data", assay = assay_name)
- GetAssayData.Seurat(expr, slot = "data", assay = assay_name)
- .Deprecate(when = "5.0.0", what = "GetAssayData(slot = )", with = "GetAssayData(layer = )")
- deprecate_stop(when = wv, what = what, with = with, env = caller,
. ...)
- deprecate_stop0(msg)
- cnd_signal(error_cnd(c("lifecycle_error_deprecated", "defunctError"),
. old = NULL, new = NULL, package = NULL, message = msg))
- signal_abort(cnd)
- signalCondition(cnd)"
Could you please help modify the codes to get the assay using another method, or adding a if-else sentence?
Hi there,
I meet a "GetAssayData" error, when applying the progeny function to a Seurat object under Seurat V5 conditions.
Here is the error:
"Error:
! The
slotargument ofGetAssayData()was deprecated in SeuratObject 5.0.0 and is now defunct.ℹ Please use the
layerargument instead.Traceback:
. top = 500, perm = 1, return_assay = TRUE)
. scale = scale, organism = organism, top = top, perm = perm,
. verbose = verbose, z_scores = z_scores, get_nulldist = get_nulldist,
. assay_name = assay_name, return_assay = return_assay)
. ...)
. old = NULL, new = NULL, package = NULL, message = msg))
Could you please help modify the codes to get the assay using another method, or adding a if-else sentence?