问题描述
# 运行以下代码
> percent.mito <- Matrix::colSums(x = GetAssayData(object = stim, slot = 'counts')[mito.features, ]) / Matrix::colSums(x = GetAssayData(object = stim, .... [TRUNCATED]
# 警告信息
The `slot` argument of `GetAssayData()` is deprecated as of
SeuratObject 5.0.0.
ℹ Please use the `layer` argument instead.
This warning is displayed once every 8 hours.
Call `lifecycle::last_lifecycle_warnings()` to see where this warning
was generated.
解决方法
在GetAssayData代码前添加以下代码
> stim = JoinLayers(stim)