Skip to content

Commit

Permalink
clarify direction of DE results in volcano plot
Browse files Browse the repository at this point in the history
  • Loading branch information
malachig committed Nov 16, 2023
1 parent a9eef69 commit 657618f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _posts/0003-04-01-DE_Visualization.md
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,9 @@ heatmap.2(data, hclustfun=myclust, distfun=mydist, na.rm = TRUE, scale="none", d
# default all genes to "no change"
results_genes$diffexpressed <- "No"
# if log2Foldchange > 2 and pvalue < 0.05, set as "Up regulated"
results_genes$diffexpressed[results_genes$de > 0.6 & results_genes$pval < 0.05] <- "Up"
results_genes$diffexpressed[results_genes$de > 0.6 & results_genes$pval < 0.05] <- "Higher in UHR"
# if log2Foldchange < -2 and pvalue < 0.05, set as "Down regulated"
results_genes$diffexpressed[results_genes$de < -0.6 & results_genes$pval < 0.05] <- "Down"
results_genes$diffexpressed[results_genes$de < -0.6 & results_genes$pval < 0.05] <- "Higher in HBR"

results_genes$gene_label <- NA
# write the gene names of those significantly upregulated/downregulated to a new column
Expand Down

0 comments on commit 657618f

Please sign in to comment.