Skip to content

Commit d716802

Browse files
author
Ubuntu
committed
update clusterprofile version and fusion plot
1 parent a70664a commit d716802

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

src/mutation/fusion_plot.R

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,27 +154,29 @@ write.table(merge.fusion.df, paste(outdir,pheno,"_fusion_gene_table.txt", sep =
154154

155155

156156
### extract expression of oncogene,tsg and protein kinase genes
157-
png(paste(outdir, pheno,"_fusion_gene_plot.png", sep = ""), width = 800, height = 700)
157+
png(paste(outdir, pheno,"_fusion_gene_plot.png", sep = ""), width = 1600, height = 1400)
158+
#pdf(paste(outdir, pheno,"_fusion_gene_plot.pdf", sep = ""), width = 8, height = 7)
158159
ggplot(merge.fusion.df, aes(x=Phenotype, y=log10(Expression+1))) +
159160
geom_violin(trim=TRUE) +
160-
geom_jitter(aes(color = Type),shape=16#, position=position_jitter(0.15)
161+
geom_jitter(aes(color = Type),shape=16, size = 4#, position=position_jitter(0.15)
161162
)+
162163
theme_bw()+
163164
scale_colour_manual(name = "Type", values = c(Oncogene="#a6bddb",Tumor_Suppressor="#99d8c9", Both="#4DAF4A",Cancer_Driver="grey"))+
164165
new_scale_color() +
165-
geom_label_repel(data = subset(merge.fusion.df, Type != "Cancer_Driver" & Type != "Others"),
166+
geom_label_repel(data = subset(merge.fusion.df, Type != "Others"),
166167
aes(label = Gene, fill = Type), #alpha = 0.5,#fill = "white",
167168
fontface = 'bold',label.size = 0.15, family = "serif"
168169
)+
169170
scale_fill_manual(values = c(Oncogene="#a6bddb",Tumor_Suppressor="#99d8c9", Both="#4DAF4A",Cancer_Driver="grey"),guide = FALSE)+
170171
scale_colour_manual(name = "Target", values = c(left_target="#636363",right_target="#e6550d"))+
171172
scale_x_discrete(name ="", labels=c("APre" = "Pre")) +
172-
theme(axis.text.x=element_text(angle=0,size=12,face = "bold",hjust=0.5),
173-
axis.text.y=element_text(size=12,face = "bold",hjust=1),
173+
theme(axis.text.x=element_text(angle=0,size=20,face = "bold",hjust=0.5),
174+
axis.text.y=element_text(size=20,face = "bold",hjust=1),
174175
axis.title.x = element_blank(),
175-
axis.title.y = element_text(size = 12,face = "bold"),
176-
legend.text = element_text(size = 12),
177-
strip.text = element_text(size = 12, face = "bold"),
176+
axis.title.y = element_text(size = 20,face = "bold"),
177+
legend.text = element_text(size = 20),
178+
legend.title = element_text(size = 20),
179+
strip.text = element_text(size = 20, face = "bold"),
178180
legend.position = "right")
179181
dev.off()
180182

static/environment/AWS/stat_perl_r.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies:
2525
- r-ggrepel
2626
- r-wgcna
2727
- bioconductor-maftools
28-
- bioconductor-clusterprofiler
28+
- bioconductor-clusterprofiler=3.14.0
2929
- r-ggpubr
3030
- bioconductor-org.hs.eg.db
3131
- bioconductor-complexheatmap
@@ -48,3 +48,4 @@ dependencies:
4848
- r-corrplot
4949
- r-dendextend
5050
- libopenblas
51+
- bioconductor-do.db

static/environment/GCP/stat_perl_r.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies:
2525
- r-ggrepel
2626
- r-wgcna
2727
- bioconductor-maftools
28-
- bioconductor-clusterprofiler
28+
- bioconductor-clusterprofiler=3.14.0
2929
- r-ggpubr
3030
- bioconductor-org.hs.eg.db
3131
- bioconductor-complexheatmap

0 commit comments

Comments
 (0)