Skip to content

Commit

Permalink
changes to module 3, part 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Isabel Risch authored and Isabel Risch committed Jun 13, 2024
1 parent 1d4751b commit e913332
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions _posts/0003-04-02-DE_Visualization-DESeq2.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ sampleDistMatrix <- as.matrix(sampleDists)
# view the distance numbers directly in the pairwise distance matrix
head(sampleDistMatrix)

pdf("distance_sample_heatmap.pdf", width=8, height=8, units="in")
pdf("distance_sample_heatmap.pdf", width=8, height=8)

# construct clustered heatmap, important to use the computed sample distances for clustering
pheatmap(sampleDistMatrix, clustering_distance_rows=sampleDists, clustering_distance_cols=sampleDists)
Expand All @@ -148,7 +148,7 @@ sampleCorrs <- cor(assay(rld), method="pearson")
sampleCorrMatrix <- as.matrix(sampleCorrs)
head(sampleCorrMatrix)

pdf("similarity_sample_heatmap.pdf", width=8, height=8, units="in")
pdf("similarity_sample_heatmap.pdf", width=8, height=8)

pheatmap(sampleCorrMatrix)

Expand All @@ -161,11 +161,11 @@ get a similar sense of the pattern by just visualizing all the genes at once

```R

pdf("all_gene_heatmap.pdf", width=10, height=10, units="in")
pdf("all_gene_heatmap.pdf", width=10, height=10)

# because there are so many gene we choose not to display them

plot(pheatmap(mat=t(assay(rld)), show_colnames = FALSE))
pheatmap(mat=t(assay(rld)), show_colnames = FALSE)

dev.off()

Expand Down
6 changes: 3 additions & 3 deletions _posts/0003-04-03-DE_Visualization_AdvancedR.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ library(GenomicRanges)
library(ggrepel)

#Set working directory where results files exist
#datadir = "~/workspace/rnaseq/de/ballgown/ref_only"
datadir = "/cloud/project/data/bulk_rna"
outdir = "/cloud/project/outdir"
datadir = "~/workspace/rnaseq/de/ballgown/ref_only"
# datadir = "/cloud/project/data/bulk_rna"
# outdir = "/cloud/project/outdir"

setwd(datadir)

Expand Down

0 comments on commit e913332

Please sign in to comment.