Skip to content

Commit

Permalink
Added file extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
SheridJeff committed Aug 5, 2024
1 parent 61629c2 commit c156509
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion 03_session1.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Visium by 10x Genomics is a spatial gene expression platform that allows for the
You need to download the expression matrix and spatial information by running these commands:

```{r, eval=FALSE}
data_dir <- "data/3_session1"
data_dir <- "data/03_session1"
dir.create(file.path(data_dir, "Visium_FFPE_Human_Prostate_Cancer"),
showWarnings = TRUE, recursive = TRUE)
Expand All @@ -54,6 +54,23 @@ download.file(url = "https://cf.10xgenomics.com/samples/spatial-exp/1.3.0/Visium
destfile = file.path(data_dir, "Visium_FFPE_Human_Normal_Prostate/Visium_FFPE_Human_Normal_Prostate_raw_feature_bc_matrix.tar.gz"))
```

## Extracting the downloaded files
```{r, eval=FALSE}
# The adenocarcinoma sample
untar(tarfile = file.path(data_dir, "Visium_FFPE_Human_Prostate_Cancer/Visium_FFPE_Human_Prostate_Cancer_spatial.tar.gz"),
exdir = file.path(data_dir, "Visium_FFPE_Human_Prostate_Cancer"))
untar(tarfile = file.path(data_dir, "Visium_FFPE_Human_Prostate_Cancer/Visium_FFPE_Human_Prostate_Cancer_raw_feature_bc_matrix.tar.gz"),
exdir = file.path(data_dir, "Visium_FFPE_Human_Prostate_Cancer"))
# The normal prostate sample
untar(tarfile = file.path(data_dir, "Visium_FFPE_Human_Normal_Prostate/Visium_FFPE_Human_Normal_Prostate_spatial.tar.gz"),
exdir = file.path(data_dir, "Visium_FFPE_Human_Normal_Prostate"))
untar(tarfile = file.path(data_dir, "Visium_FFPE_Human_Normal_Prostate/Visium_FFPE_Human_Normal_Prostate_raw_feature_bc_matrix.tar.gz"),
exdir = file.path(data_dir, "Visium_FFPE_Human_Normal_Prostate"))
```

### Create giotto instructions

Expand Down

0 comments on commit c156509

Please sign in to comment.