Skip to content

Commit

Permalink
update DESeq dot plot x axis - not log10
Browse files Browse the repository at this point in the history
  • Loading branch information
drewjbeh committed Jun 21, 2023
1 parent 6f82414 commit 3ed996d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mimseq/deseq.R
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ for (type in c("cyto", "mito")) {
scale_color_manual(paste('Differential expression\n(adj-p <=',p_adj, ')'), labels = c("None", "Down", "Up"), values = c("FALSE"="darkgrey", "TRUE-1"="#9970ab", "TRUE1"="#55ae61")) +
scale_shape_manual(paste('Differential expression\n(adj-p <=',p_adj, ')'), labels = c("None", "Down", "Up"), values = c("FALSE"=19, "TRUE-1"=17, "TRUE1"=17)) +
scale_size_manual(values = c(1,2), guide = "none") + theme_bw() +
labs(x = paste('log10', combinations[[i]][2], 'counts', sep = ' '), y = paste('log10', combinations[[i]][1], 'counts', sep = ' ')) +
labs(x = paste(combinations[[i]][2], 'counts', sep = ' '), y = paste(combinations[[i]][1], 'counts', sep = ' ')) +
annotate("label", 0, Inf, hjust = 0, vjust = 1, label = paste("italic(r) == ", anticodon_cor), parse = TRUE)

isodecoder_dot = ggplot(isodecoder_data, aes_string(x, y)) +
Expand All @@ -361,7 +361,7 @@ for (type in c("cyto", "mito")) {
scale_color_manual(paste('Differential expression\n(adj-p <=',p_adj, ')'), labels = c("None", "Down", "Up"), values = c("FALSE"="darkgrey", "TRUE-1"="#9970ab", "TRUE1"="#55ae61")) +
scale_shape_manual(paste('Differential expression\n(adj-p <=',p_adj, ')'), labels = c("None", "Down", "Up"), values = c("FALSE"=19, "TRUE-1"=17, "TRUE1"=17)) +
scale_size_manual(values = c(1,2), guide = "none") + theme_bw() +
labs(x = paste('log10', combinations[[i]][2], 'counts', sep = ' '), y = paste('log10', combinations[[i]][1], 'counts', sep = ' ')) +
labs(x = paste(combinations[[i]][2], 'counts', sep = ' '), y = paste(combinations[[i]][1], 'counts', sep = ' ')) +
annotate("label", 0, Inf, hjust = 0, vjust = 1, label = paste("italic(r) == ", isodecoder_cor), parse = TRUE)

ggsave(paste(subdir_anticodon, paste(paste(combinations[[i]], collapse="vs"), "diffexpr-countplot.pdf", sep="_"), sep="/"), anticodon_dot, height = 5, width = 8)
Expand Down

0 comments on commit 3ed996d

Please sign in to comment.