当前位置: 首页 > news >正文

R包:plot1cell单细胞可视化包

在这里插入图片描述

介绍

plot1cell是用于单细胞数据seurat数据对象的可视化包。

安装

## You might need to install the dependencies below if they are not available in your R library.
bioc.packages <- c("biomaRt","GenomeInfoDb","EnsDb.Hsapiens.v86","GEOquery","simplifyEnrichment","ComplexHeatmap")
BiocManager::install(bioc.packages)
dev.packages <- c("chris-mcginnis-ucsf/DoubletFinder","Novartis/hdf5r","mojaveazure/loomR")
devtools::install_github(dev.packages)
## If you can't get the hdf5r package installed, please see the fix here:
## https://github.com/hhoeflin/hdf5r/issues/94devtools::install_github("TheHumphreysLab/plot1cell")library(plot1cell)

导入数据

iri.integrated <- Install.example() 

使用

###Prepare data for ploting
circ_data <- prepare_circlize_data(iri.integrated, scale = 0.8 )
set.seed(1234)
cluster_colors<-rand_color(length(levels(iri.integrated)))
group_colors<-rand_color(length(names(table(iri.integrated$Group))))
rep_colors<-rand_color(length(names(table(iri.integrated$orig.ident))))###plot and save figures
# png(filename =  'circlize_plot.png', width = 6, height = 6,units = 'in', res = 300)
plot_circlize(circ_data,do.label = T, pt.size = 0.01, col.use = cluster_colors ,bg.color = 'white', kde2d.n = 200, repel = T, label.cex = 0.6)
add_track(circ_data, group = "Group", colors = group_colors, track_num = 2) ## can change it to one of the columns in the meta data of your seurat object
add_track(circ_data, group = "orig.ident",colors = rep_colors, track_num = 3) ## can change it to one of the columns in the meta data of your seurat object
#dev.off()

在这里插入图片描述

http://www.lryc.cn/news/407965.html

相关文章:

  • Tent混沌人工蜂群与粒子群混合算法遇到问题,具体问题及解决方案如文。
  • Python文献调研(一)环境搭建
  • URL重写
  • git配置环境变量
  • vue3编程-import.meta.glob实现动态路由(菜单)
  • 富唯智能转运机器人:高效、智能、未来的选择
  • 跨境电商独立站:Shopify/Wordpress/店匠选哪个?
  • 减轻幻觉新SOTA,7B模型自迭代训练效果超越GPT-4,上海AI lab发布
  • 53.最大子数组和,动态规划+贪心解法!!!
  • python+vue3+onlyoffice在线文档系统实战20240723笔记,项目界面设计和初步开发
  • 谷粒商城实战笔记-72-商品服务-API-属性分组-获取分类属性分组
  • Vue 自定义指令
  • 【python】python图书管理系统_普通用户+管理员菜单(源码+论文)【独一无二】
  • 智能路面裂缝检测:基于YOLO和深度学习的全流程实现
  • C++ unordered_map
  • PHP Switch 语句
  • electron 网页TodoList应用打包win桌面软件数据持久化
  • 软件缺陷(Bug)、禅道
  • MySQL客户端命令一节将.sql文件导入MySQL
  • [论文笔记] DCA(Dual Chunk Attention)
  • 构建查询洞察 UI
  • 【北京迅为】《i.MX8MM嵌入式Linux开发指南》-第三篇 嵌入式Linux驱动开发篇-第五十九章 等待队列
  • 35.【C语言】详解函数递归
  • 【机器学习】智驭未来:机器学习如何重塑制造业的转型与升级
  • Python爬虫(5) --爬取网页视频
  • 【Unity】关于Luban的简单使用
  • 企业公户验证API如何使用JAVA、Python、PHP语言进行应用
  • 杰发科技Bootloader(2)—— 基于7840的Keil配置地址
  • cmd常用命令
  • PCIe 以太网芯片 RTL8125B 的 spec 和 Linux driver 分析备忘