文章预览
径向距离(Radial distance)是指从某一点到另一点的直线距离,通常是从圆心到圆周上的某一点的距离。R包semla提供了一系列函数来帮助我们计算感兴趣的亚群与其他细胞/spots之间的径向距离。 Step1. 加载测试数据 library (semla) library (tibble) library (ggplot2) library (patchwork) #devtools::install_github("thomasp85/scico") library (scico) library (tidyr) library (dplyr) # Create an empty folder in current directory dir.create(paste0( "./bc_visium" )) download.file(url = "https://cf.10xgenomics.com/samples/spatial-exp/1.0.0/V1_Breast_Cancer_Block_A_Section_1/V1_Breast_Cancer_Block_A_Section_1_filtered_feature_bc_matrix.h5" , destfile = "./bc_visium/filtered_feature_bc_matrix.h5" ) download.file(url = "https://cf.10xgenomics.com/samples/spatial-exp/1.0.0/V1_Breast_Cancer_Block_A_Section_1/V1_Breast_Cancer_Block_A_Section_1_spatial.tar.gz" , destfile = "./bc_visium/spatial.tar.gz" ) untar(tarfile =
………………………………