Skip to content

Commit

Permalink
Create the project in your Desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
lcolladotor committed Jul 5, 2023
1 parent 685f292 commit cd2e9a0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions 13_expression_heatmaps.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## ---- include = FALSE------------------------------------------------------------------------------
## ---- include = FALSE--------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)


## ----vignetteSetup_expheatmap, echo=FALSE, message=FALSE, warning = FALSE--------------------------
## ----vignetteSetup_expheatmap, echo=FALSE, message=FALSE, warning = FALSE----
## For links
library(BiocStyle)

Expand All @@ -22,20 +22,20 @@ bib <- c(
options(max.print = 50)


## ---- echo=FALSE-----------------------------------------------------------------------------------
## ---- echo=FALSE-------------------
suppressPackageStartupMessages(library("SummarizedExperiment"))
suppressPackageStartupMessages(data(airway, package = "airway"))
suppressPackageStartupMessages(library("ComplexHeatmap"))
suppressPackageStartupMessages(library("circlize"))


## --------------------------------------------------------------------------------------------------
## ----------------------------------
library("SummarizedExperiment")
library("ComplexHeatmap")
library("circlize")


## ----download_data_biocfilecache_expheatmap--------------------------------------------------------
## ----download_data_biocfilecache_expheatmap----
## Download and cache the file
library("BiocFileCache")
bfc <- BiocFileCache::BiocFileCache()
Expand All @@ -54,7 +54,7 @@ load(cached_rse_gene, verbose = TRUE)
rse_gene


## --------------------------------------------------------------------------------------------------
## ----------------------------------
## Extract genes and samples of interest
rse_gene_pup_nic <- rse_gene[
rowData(rse_gene)$DE_in_pup_brain_nicotine == TRUE,
Expand Down Expand Up @@ -89,7 +89,7 @@ logs_pup_nic <- cleaningY(logs_pup_nic, model, P = 2)
logs_pup_nic <- (logs_pup_nic - rowMeans(logs_pup_nic)) / rowSds(logs_pup_nic)


## --------------------------------------------------------------------------------------------------
## ----------------------------------
## Prepare annotation for our heatmap
## For this heatmap I want to be able to see the Group to which each sample belongs
## as well as the Sex of the pup
Expand Down Expand Up @@ -118,7 +118,7 @@ left_ans <- rowAnnotation(
)


## ---- out.width = "1000px"-------------------------------------------------------------------------
## ---- out.width = "1000px"---------
## Finally, let's plot!
Heatmap(logs_pup_nic,
name = "logcounts",
Expand All @@ -134,7 +134,7 @@ Heatmap(logs_pup_nic,
)


## --------------------------------------------------------------------------------------------------
## ----------------------------------
## For a) we need to use he function anno_barplot() to generate the barplot and gpar() to fill the bars

top_ans <- HeatmapAnnotation(
Expand Down Expand Up @@ -170,7 +170,7 @@ left_ans <- rowAnnotation(
)


## ---- out.width = "1000px"-------------------------------------------------------------------------
## ---- out.width = "1000px"---------
Heatmap(logs_pup_nic,
name = " ",
show_row_names = FALSE,
Expand Down
2 changes: 1 addition & 1 deletion 15_misc.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## ----postcards_proj, eval = FALSE----
## ## Create an RStudio project first with this particular name
## usethis::create_project("YourGitHubUsername.github.io")
## usethis::create_project("~/Desktop/YourGitHubUsername.github.io")
##
## ## Configure Git and GitHub
## ## If you don't have git, check "Happy Git and GitHub for the useR" available
Expand Down
2 changes: 1 addition & 1 deletion 15_misc.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ _The above video is in Spanish._

```{r postcards_proj, eval = FALSE}
## Create an RStudio project first with this particular name
usethis::create_project("YourGitHubUsername.github.io")
usethis::create_project("~/Desktop/YourGitHubUsername.github.io")
## Configure Git and GitHub
## If you don't have git, check "Happy Git and GitHub for the useR" available
Expand Down

0 comments on commit cd2e9a0

Please sign in to comment.