Skip to content

Commit

Permalink
Ran tangle.R
Browse files Browse the repository at this point in the history
  • Loading branch information
lcolladotor committed Jul 3, 2023
1 parent f049a8e commit 7d3e4c4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions 05_iSEE_intro.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## --------------------------------------------------------------------
## ------------------------------------------------------------
## Lets build a simple SummarizedExperiment object following information
## from the documentation
library("SummarizedExperiment")
Expand Down Expand Up @@ -42,13 +42,13 @@ rse <- SummarizedExperiment(
rse


## ----isee_basic, eval = FALSE----------------------------------------
## ----isee_basic, eval = FALSE--------------------------------
## ## Let's explore the `rse` object interactively
## library("iSEE")
## iSEE::iSEE(rse)


## ----download_sce_layer----------------------------------------------
## ----download_sce_layer--------------------------------------
## Lets get some data using spatialLIBD
sce_layer <- spatialLIBD::fetch_data("sce_layer")
sce_layer
Expand All @@ -57,6 +57,6 @@ sce_layer
lobstr::obj_size(sce_layer)


## ----explore_sce_layer, eval = FALSE---------------------------------
## ----explore_sce_layer, eval = FALSE-------------------------
## iSEE::iSEE(sce_layer)

2 changes: 1 addition & 1 deletion 11_recount3_DEG_exercise.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## ----eval = FALSE----------------------------------------------------
## ----eval = FALSE--------------------------------------------
## recount3::create_rse_manual(
## project = "BRAIN",
## project_home = "data_sources/gtex",
Expand Down
10 changes: 5 additions & 5 deletions 17_spatialLIBD_intro.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## ----"download_10x_data"---------------------------------------------
## ----"download_10x_data"-------------------------------------
## Download and save a local cache of the data provided by 10x Genomics
bfc <- BiocFileCache::BiocFileCache()
lymph.url <-
Expand All @@ -14,7 +14,7 @@ lymph.url <-
lymph.data <- sapply(lymph.url, BiocFileCache::bfcrpath, x = bfc)


## ----"extract_files"-------------------------------------------------
## ----"extract_files"-----------------------------------------
## Extract the files to a temporary location
## (they'll be deleted once you close your R session)
xx <- sapply(lymph.data, utils::untar, exdir = file.path(tempdir(), "outs"))
Expand All @@ -40,7 +40,7 @@ list.files(lymph.dirs)
## 1.4G genes/genes.gtf


## ----"use_gencode_gtf"-----------------------------------------------
## ----"use_gencode_gtf"---------------------------------------
## Download the Gencode v32 GTF file and cache it
gtf_cache <- BiocFileCache::bfcrpath(
bfc,
Expand All @@ -54,7 +54,7 @@ gtf_cache <- BiocFileCache::bfcrpath(
gtf_cache


## ----wrapper_functions-----------------------------------------------
## ----wrapper_functions---------------------------------------
## Import the data as a SpatialExperiment object using wrapper functions
## provided by spatialLIBD
library("spatialLIBD")
Expand All @@ -73,7 +73,7 @@ spe_wrapper
lobstr::obj_size(spe_wrapper)


## ----"run_shiny_app_wrapper"-----------------------------------------
## ----"run_shiny_app_wrapper"---------------------------------
## Run our shiny app
if (interactive()) {
vars <- colnames(colData(spe_wrapper))
Expand Down

0 comments on commit 7d3e4c4

Please sign in to comment.