专栏名称: 生信随笔
NGS多组学在肿瘤中的应用,生信工程师的成长之旅。
今天看啥  ›  专栏  ›  生信随笔

空转可视化R包semla(六)计算径向距离

生信随笔  · 公众号  ·  · 2024-05-11 18:18
    

文章预览

径向距离(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 = ………………………………

原文地址:访问原文地址
快照地址: 访问文章快照
总结与预览地址:访问总结与预览