当前位置:网站首页>补充材料 supplementary
补充材料 supplementary
2022-06-30 15:48:00 【youngleeyoung】
load("G:/silicosis/geo/GSE104154_scRNA-seq_fibrotic MC_bleomycin/normalized/only_AMs.rds")
markers=FindAllMarkers(subset_data,only.pos = T)
#openxlsx::write.xlsx(markers,file = "G:/silicosis/geo/GSE104154_scRNA-seq_fibrotic MC_bleomycin/normalized/makers_for_AM1_AM2_AM3.xlsx")
markers=openxlsx::read.xlsx("G:/silicosis/geo/GSE104154_scRNA-seq_fibrotic MC_bleomycin/normalized/makers_for_AM1_AM2_AM3.xlsx")
head(markers)
mymarkers=list()
for (eachcluster_markers in unique(markers$cluster)) {
#eachcluster_markers="AM1"
mymarkers[[paste0(eachcluster_markers)]]=markers[markers$cluster==eachcluster_markers,"gene"]
}
head(mymarkers)
fibrosis_gene=openxlsx::read.xlsx("G:/silicosis/fibrosis_geness/harmonizome_gfibrosis.xlsx")
head(fibrosis_gene)
fibrosis_gene=fibrosis_gene$Symbol
#intersect_fibrosis_gene_with_AM
intersected_fibrosis_genes=list()
for (eachcluster_AM in names(mymarkers)) {
intersected_fibrosis_genes[[eachcluster_AM]]=intersect(mymarkers[[eachcluster_AM]],fibrosis_gene)
}
intersected_fibrosis_genes
lapply(intersected_fibrosis_genes,length)
intersected_fibrosis_genes_as_a_vector=as.vector(unlist(intersected_fibrosis_genes))
marker_exp=AverageExpression(subset_data, features = intersected_fibrosis_genes_as_a_vector, return.seurat = TRUE)
DoHeatmap(marker_exp, features = intersected_fibrosis_genes_as_a_vector,
label=TRUE, group.bar = TRUE, draw.lines = FALSE)
getwd()
pdf('heatmap.pdf',width = 7,height = 14)
p=DoHeatmap(marker_exp, features = intersected_fibrosis_genes_as_a_vector,
label=TRUE, group.bar = TRUE, draw.lines = FALSE)
print(p)
dev.off()
#supplementary table S7
PF_silicosis_bleo=openxlsx::read.xlsx("G:\\silicosis\\sicosis\\Supplementary Table.xlsx",
sheet = "S7_hPF_Silica_Bleomycin")
head(PF_silicosis_bleo)
library(Hmisc)
library(dplyr)
disease_markers_for_AM3=list()
for (eachdisease in colnames(PF_silicosis_bleo)) {
#eachdisease="Silicosis,.Cluster.AM3"
disease_markers_for_AM3[[paste0(eachdisease)]]=PF_silicosis_bleo[,eachdisease] %>%
capitalize()%>% tolower() %>% na.omit() %>% unique() %>%capitalize()
}
head(disease_markers_for_AM3)
#https://www.jianshu.com/p/58f5429b5402
genes <- Reduce(intersect, list(disease_markers_for_AM3[[1]],
disease_markers_for_AM3[[2]],
disease_markers_for_AM3[[3]])) %>% capitalize()
length(genes)
getwd()
library(VennDiagram)#https://www.jianshu.com/p/b5a4c40c3a33
venn_list <- list(Human_PF = disease_markers_for_AM3[[1]],
Silicosis = disease_markers_for_AM3[[2]],
Bleomycin=disease_markers_for_AM3[[3]])
venn.diagram(venn_list, filename = 'venn2_for_humanPF-Silicosi-Bleomycin.png', imagetype = 'png',
fill = c('red', 'blue','orange'), alpha = 0.50, cat.col = rep('black', 3),
col = 'black', cex = 1.3, fontfamily = 'serif',
cat.cex = 1.3, cat.fontfamily = 'serif')
getwd()
#继续以上述4个分组为例,组间交集元素获得
inter <- get.venn.partitions(venn_list)
for (i in 1:nrow(inter)) inter[i,'values'] <- paste(inter[[i,'..values..']], collapse = ', ')
write.table(inter[-c(5, 6)], 'venn4_inter.txt', row.names = FALSE, sep = '\t', quote = FALSE)
for (i in 1:nrow(inter)) inter[i,'values'] <- paste(inter[[i,'..values..']], collapse = ', ')
openxlsx::write.xlsx(inter[-c(5, 6)], 'venn4_inter.xlsx', row.names = FALSE, sep = '\t', quote = FALSE)
边栏推荐
- POJ Project Summer
- STL教程7-set、pair对组和仿函数
- Mathematical modeling for war preparation 36 time series model 2
- Jspreadsheet/ce JExcel: more data fields than the given fields (columns) will lead to blank columns. Solution
- [wechat applet] the hosting environment of the applet
- 香港回归25周年 香港故宫博物馆正式开放成文化新地标
- 【Verilog基础】关于Clock信号的一些概念总结(clock setup/hold、clock tree、clock skew、clock latency、clock transition..)
- BC1.2 PD协议
- Hologres共享集群助力淘宝订阅极致精细化运营
- Half year inventory of new consumption in 2022: the industry is cold, but these nine tracks still attract gold
猜你喜欢

Undistorted resize using pil

编译丨迅为iTOP4412开发板Makefile编译
![[machine learning] K-means clustering analysis](/img/5f/3199fbd4ff2129d3e4ea518812c9e9.png)
[machine learning] K-means clustering analysis

Raft介绍

restartProcessIfVisible的流程

【活动报名】探秘元宇宙,就差你了!7月2号我在深圳现场等你!

Data mining knowledge points sorting (final review version)

Research on helmet wearing detection algorithm

Niuke.com: minimum cost of climbing stairs

Headhunter 50, 000, I'll go to VC
随机推荐
JS Es5 can also create constants?
RTP sending PS stream zero copy scheme
After 15 years of working on 21 types of hardware, where is Google?
备战数学建模33-灰色预测模型2
牛客网:有多少个不同的二叉搜索树
I implement "stack" with C I
halcon知识:区域专题【07】
[Verilog basics] octal and hexadecimal representation of decimal negative numbers
OpenCV中LineTypes各枚举值(LINE_4 、LINE_8 、LINE_AA )的含义
声网自研传输层协议 AUT 的落地实践丨Dev for Dev 专栏
RT thread heap size Setting
9:第三章:电商工程分析:4:【通用模块】;(待写……)
ArcMap operation series: 80 plane to latitude and longitude 84
腾讯二面:@Bean 与 @Component 用在同一个类上,会怎么样?
Etcd tutorial - Chapter 8 compact, watch, and lease APIs for etcd
halcon知识:矩阵专题【02】
RT-Thread 堆区大小设置
Hologres shared cluster helps Taobao subscribe to the extreme refined operation
MC Instruction Decoder
Lambda expression_ Stream stream_ File class