Skip to content

Commit

Permalink
Fixed paths
Browse files Browse the repository at this point in the history
  • Loading branch information
royfrancis committed Jan 14, 2024
1 parent 9eef537 commit 929c830
Show file tree
Hide file tree
Showing 22 changed files with 26 additions and 20 deletions.
1 change: 1 addition & 0 deletions compiled/labs/bioc/bioc_02_dimred.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ suppressPackageStartupMessages({
``` {r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_file <- "data/covid/results/bioc_covid_qc.rds"
if (!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "covid/results/bioc_covid_qc.rds"), destfile = path_file)
sce <- readRDS(path_file)
```
Expand Down
1 change: 1 addition & 0 deletions compiled/labs/bioc/bioc_03_integration.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ reticulate::py_discover_config()
``` {r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_file <- "data/covid/results/bioc_covid_qc_dr.rds"
if (!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "covid/results/bioc_covid_qc_dr.rds"), destfile = path_file)
sce <- readRDS(path_file)
print(reducedDims(sce))
Expand Down
1 change: 1 addition & 0 deletions compiled/labs/bioc/bioc_04_clustering.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ suppressPackageStartupMessages({
``` {r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_file <- "data/covid/results/bioc_covid_qc_dr_int.rds"
if (!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "covid/results/bioc_covid_qc_dr_int.rds"), destfile = path_file)
sce <- readRDS(path_file)
print(reducedDims(sce))
Expand Down
1 change: 1 addition & 0 deletions compiled/labs/bioc/bioc_05_dge.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ suppressPackageStartupMessages({
``` {r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_file <- "data/covid/results/bioc_covid_qc_dr_int_cl.rds"
if (!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "covid/results/bioc_covid_qc_dr_int_cl.rds"), destfile = path_file)
sce <- readRDS(path_file)
print(reducedDims(sce))
Expand Down
1 change: 1 addition & 0 deletions compiled/labs/bioc/bioc_06_celltyping.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Let's read in the saved Covid-19 data object from the clustering step.
``` {r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_file <- "data/covid/results/bioc_covid_qc_dr_int_cl.rds"
if (!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "covid/results/bioc_covid_qc_dr_int_cl.rds"), destfile = path_file)
alldata <- readRDS(path_file)
```
Expand Down
2 changes: 1 addition & 1 deletion compiled/labs/seurat/seurat_02_dimred.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ suppressPackageStartupMessages({

``` {r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_file <- "data/covid/results/seurat_covid_qc.rds"
if (!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "covid/results/seurat_covid_qc.rds"), destfile = path_file)
alldata <- readRDS(path_file)
```
Expand Down
1 change: 1 addition & 0 deletions compiled/labs/seurat/seurat_03_integration.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ reticulate::py_discover_config()
``` {r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_file <- "data/covid/results/seurat_covid_qc_dr.rds"
if(!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "covid/results/seurat_covid_qc_dr.rds"), destfile = path_file)
alldata <- readRDS(path_file)
print(names(alldata@reductions))
Expand Down
1 change: 1 addition & 0 deletions compiled/labs/seurat/seurat_04_clustering.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ suppressPackageStartupMessages({
``` {r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_file <- "data/covid/results/seurat_covid_qc_dr_int.rds"
if (!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "covid/results/seurat_covid_qc_dr_int.rds"), destfile = path_file)
alldata <- readRDS(path_file)
print(names(alldata@reductions))
Expand Down
1 change: 1 addition & 0 deletions compiled/labs/seurat/seurat_05_dge.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ suppressPackageStartupMessages({
``` {r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_file <- "data/covid/results/seurat_covid_qc_dr_int_cl.rds"
if (!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "covid/results/seurat_covid_qc_dr_int_cl.rds"), destfile = path_file)
alldata <- readRDS(path_file)
```
Expand Down
1 change: 1 addition & 0 deletions compiled/labs/seurat/seurat_06_celltyping.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Let's read in the saved Covid-19 data object from the clustering step.
``` {r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_file <- "data/covid/results/seurat_covid_qc_dr_int_cl.rds"
if (!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "covid/results/seurat_covid_qc_dr_int_cl.rds"), destfile = path_file)
alldata <- readRDS(path_file)
```
Expand Down
16 changes: 5 additions & 11 deletions compiled/labs/seurat/seurat_07_trajectory.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,8 @@ You can download the files we prepared with these commands:

``` {r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_marrow <- "./data/trajectory"
if (!dir.exists(path_marrow)) dir.create(path_marrow, recursive = T)
path_results <- "data/results/trajectory"
if (!dir.exists(path_results)) dir.create(path_results, recursive = T)
path_file <- "data/trajectory/trajectory_seurat_filtered.rds"
if (!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "trajectory/trajectory_seurat_filtered.rds"), destfile = path_file)
```

Expand Down Expand Up @@ -547,7 +541,7 @@ Before computing differential gene expression, sometimes it is a good idea to ma
```lxk
```fhi
#| eval: false
# SEURAT
Expand All @@ -565,7 +559,7 @@ Since we are not interested in the effects of the batches in this example, but o



```lxk
```fhi
#| eval: false
# Get the gene means and standard deviation
Expand All @@ -592,7 +586,7 @@ Let's compare how the normalized data compares to the batch-corrected one.



```lxk
```fhi
#| eval: false
par(mfrow = c(3, 3))
Expand Down Expand Up @@ -626,7 +620,7 @@ Let's also take a closer inspection on the UMAPs:



```lxk
```fhi
#| eval: false
par(mfrow = c(4, 5), mar = c(.1, .1, 2, 1))
Expand Down
1 change: 1 addition & 0 deletions labs/bioc/bioc_02_dimred.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ suppressPackageStartupMessages({
```{r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_file <- "data/covid/results/bioc_covid_qc.rds"
if (!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "covid/results/bioc_covid_qc.rds"), destfile = path_file)
sce <- readRDS(path_file)
```
Expand Down
1 change: 1 addition & 0 deletions labs/bioc/bioc_03_integration.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ reticulate::py_discover_config()
```{r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_file <- "data/covid/results/bioc_covid_qc_dr.rds"
if (!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "covid/results/bioc_covid_qc_dr.rds"), destfile = path_file)
sce <- readRDS(path_file)
print(reducedDims(sce))
Expand Down
1 change: 1 addition & 0 deletions labs/bioc/bioc_04_clustering.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ suppressPackageStartupMessages({
```{r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_file <- "data/covid/results/bioc_covid_qc_dr_int.rds"
if (!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "covid/results/bioc_covid_qc_dr_int.rds"), destfile = path_file)
sce <- readRDS(path_file)
print(reducedDims(sce))
Expand Down
1 change: 1 addition & 0 deletions labs/bioc/bioc_05_dge.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ suppressPackageStartupMessages({
```{r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_file <- "data/covid/results/bioc_covid_qc_dr_int_cl.rds"
if (!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "covid/results/bioc_covid_qc_dr_int_cl.rds"), destfile = path_file)
sce <- readRDS(path_file)
print(reducedDims(sce))
Expand Down
1 change: 1 addition & 0 deletions labs/bioc/bioc_06_celltyping.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ suppressPackageStartupMessages({
```{r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_file <- "data/covid/results/bioc_covid_qc_dr_int_cl.rds"
if (!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "covid/results/bioc_covid_qc_dr_int_cl.rds"), destfile = path_file)
alldata <- readRDS(path_file)
```
Expand Down
2 changes: 1 addition & 1 deletion labs/seurat/seurat_02_dimred.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ suppressPackageStartupMessages({

```{r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_file <- "data/covid/results/seurat_covid_qc.rds"
if (!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "covid/results/seurat_covid_qc.rds"), destfile = path_file)
alldata <- readRDS(path_file)
```
Expand Down
1 change: 1 addition & 0 deletions labs/seurat/seurat_03_integration.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ reticulate::py_discover_config()
```{r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_file <- "data/covid/results/seurat_covid_qc_dr.rds"
if(!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "covid/results/seurat_covid_qc_dr.rds"), destfile = path_file)
alldata <- readRDS(path_file)
print(names(alldata@reductions))
Expand Down
1 change: 1 addition & 0 deletions labs/seurat/seurat_04_clustering.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ suppressPackageStartupMessages({
```{r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_file <- "data/covid/results/seurat_covid_qc_dr_int.rds"
if (!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "covid/results/seurat_covid_qc_dr_int.rds"), destfile = path_file)
alldata <- readRDS(path_file)
print(names(alldata@reductions))
Expand Down
1 change: 1 addition & 0 deletions labs/seurat/seurat_05_dge.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ suppressPackageStartupMessages({
```{r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_file <- "data/covid/results/seurat_covid_qc_dr_int_cl.rds"
if (!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "covid/results/seurat_covid_qc_dr_int_cl.rds"), destfile = path_file)
alldata <- readRDS(path_file)
```
Expand Down
1 change: 1 addition & 0 deletions labs/seurat/seurat_06_celltyping.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ suppressPackageStartupMessages({
```{r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_file <- "data/covid/results/seurat_covid_qc_dr_int_cl.rds"
if (!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "covid/results/seurat_covid_qc_dr_int_cl.rds"), destfile = path_file)
alldata <- readRDS(path_file)
```
Expand Down
8 changes: 1 addition & 7 deletions labs/seurat/seurat_07_trajectory.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,8 @@ You can download the files we prepared with these commands:

```{r}
path_data <- "https://export.uppmax.uu.se/naiss2023-23-3/workshops/workshop-scrnaseq"
path_marrow <- "./data/trajectory"
if (!dir.exists(path_marrow)) dir.create(path_marrow, recursive = T)
path_results <- "data/results/trajectory"
if (!dir.exists(path_results)) dir.create(path_results, recursive = T)
path_file <- "data/trajectory/trajectory_seurat_filtered.rds"
if (!dir.exists(dirname(path_file))) dir.create(dirname(path_file), recursive = TRUE)
if (!file.exists(path_file)) download.file(url = file.path(path_data, "trajectory/trajectory_seurat_filtered.rds"), destfile = path_file)
```

Expand Down

0 comments on commit 929c830

Please sign in to comment.