SPIAT 包中的错误define_celltypes(formatted_image, phenotypes = c(“panCK+”, “CD8+”, : 找不到函数“define_celltypes”)

发布于 2025-01-11 15:56:04 字数 1673 浏览 4 评论 0原文

我使用 SPIAT 包(https://cancer-evolution.github.io/ SPIAT/articles/introduction.html)分析人体组织样本中肿瘤和免疫细胞的空间分布模式。该包确实很有用,但是在该包提供的功能之一中,我收到一条错误消息:“define_celltypes(formatted_image, phenotypes = c("panCK+", "CD8+", 中出现错误: 找不到函数“define_celltypes”。

我尝试使用所谓的 Define_celltypes 函数来指定每个表型,该函数可用于添加指示细胞类型的列。默认情况下,该列称为 Cell.Type。表型和 Cell.Type 之间的区别在于表型代表细胞上存在的所有标记,但 Cell.Type 是细胞的身份。

这是代码和带有 txt.file 的 R 文件。 https://drive.google.com/drive/folders/1lX9Sprd3IDxz08AcJnZ7WT4UE96MWZCC?usp=分享

非常需要您的帮助!谢谢。

> phenotypes = c("panCK+", "CD8+", "FoxP3+", "CD163+", "PD_L1+") 
> names = c("Tumour", "TILs", "Tregs", "Macrophages", "PD-L1+ cells")
> #SPIAT define_celltypes can be used to add a column indicating the cell type. 
> #By default the column is called Cell.Type. The difference between Phenotype and Cell.
> #Type is that phenotype represents all the markers present on the cell but Cell.Type is the identity of the cell.
> formatted_image <- define_celltypes(formatted_image, 
+                                     phenotypes = c("panCK+", "CD8+", "FoxP3+", "CD163+", "PD_L1+"), 
+                                     names = c("Tumour", "TILs", "Tregs", "Macrophages", "PD-L1+ cells"), 
+                                     column.name = "Cell.Type")
Error in define_celltypes(formatted_image, phenotypes = c("panCK+", "CD8+",  : 
  could not find function "define_celltypes"```

I use the SPIAT package (https://cancer-evolution.github.io/SPIAT/articles/introduction.html) to analyze the spatial distribution patterns of tumor and immune cells in human tissue samples. THe package is really useful, however in one of the functions the package provides I get an error message: "Error in define_celltypes(formatted_image, phenotypes = c("panCK+", "CD8+", :
could not find function "define_celltypes".

I try to specifying each Phenotype using the so-called define_celltypes function which can be used to add a column indicating the cell type. By default the column is called Cell.Type. The difference between Phenotype and Cell.Type is that phenotype represents all the markers present on the cell but Cell.Type is the identity of the cell.

Here is the code and the R file with the txt.file.
https://drive.google.com/drive/folders/1lX9Sprd3IDxz08AcJnZ7WT4UE96MWZCC?usp=sharing

Your help would be much needed! Thank you.

> phenotypes = c("panCK+", "CD8+", "FoxP3+", "CD163+", "PD_L1+") 
> names = c("Tumour", "TILs", "Tregs", "Macrophages", "PD-L1+ cells")
> #SPIAT define_celltypes can be used to add a column indicating the cell type. 
> #By default the column is called Cell.Type. The difference between Phenotype and Cell.
> #Type is that phenotype represents all the markers present on the cell but Cell.Type is the identity of the cell.
> formatted_image <- define_celltypes(formatted_image, 
+                                     phenotypes = c("panCK+", "CD8+", "FoxP3+", "CD163+", "PD_L1+"), 
+                                     names = c("Tumour", "TILs", "Tregs", "Macrophages", "PD-L1+ cells"), 
+                                     column.name = "Cell.Type")
Error in define_celltypes(formatted_image, phenotypes = c("panCK+", "CD8+",  : 
  could not find function "define_celltypes"```

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

窗影残 2025-01-18 15:56:04

感谢您提出这个问题。看来我们的 vignette 的版本早于包本身,这意味着 define_celltypes 尚不可用。

不过,我们已经向 Bioconductor 提交了 SPIAT 的新版本(0.99.0)。它将很快包含在 Bioconductor 开发分支中。当新版本和新功能推出时我们会更新答案。

谢谢你!

Thank you for raising the issue. It seems that the version of our vignette is ahead of the package itself, which means define_celltypes is not available yet.

However, we have submitted the new version (0.99.0) of SPIAT to Bioconductor. It will be included in the Bioconductor devel branch soon. We will update the answer when the new version and new functions are available.

Thank you!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文