Skip to content

Commit

Permalink
update vignettes (part 3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtanevski committed Mar 1, 2024
1 parent 0f41585 commit 8e59e90
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 17 deletions.
24 changes: 15 additions & 9 deletions vignettes/MistyRStructuralAnalysisPipelineC2L.Rmd
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
---
title: "MistyR structural analysis pipeline after cell2location"
author: |
| Leoni Zimmermann
| [email protected]
title: "Structural analysis with MISTy - based on cell2location deconvolution"
author:
- name: Leoni Zimmermann
affiliation:
- Heidelberg University, Heidelberg, Germany
- name: Jovan Tanevski
affiliation:
- Heidelberg University and Heidelberg University Hospital, Heidelberg, Germany
- Jožef Stefan Institute, Ljubljana, Slovenia
email: [email protected]
date: "`r Sys.Date()`"
package: mistyR
output:
Expand All @@ -11,17 +17,17 @@ output:
extra_dependencies:
nowidow: ["defaultlines=3", "all"]
vignette: >
%\VignetteIndexEntry{MistyR structural analysis pipeline after cell2location}
%\VignetteIndexEntry{Structural analysis with MISTy - based on cell2location deconvolution}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---

## Introduction

MistyR is designed to analyze spatial omics datasets within and between distinct spatial contexts referred to as views. This analysis can focus solely on structural information. Spatial transcriptomic methods such as Visium capture information from areas containing multiple cells. Then, deconvolution is applied to relate the measured data of the spots back to individual cells. A commonly used tool for this deconvolution step is cell2location.
MISTy is designed to analyze spatial omics datasets within and between distinct spatial contexts referred to as views. This analysis can focus solely on structural information. Spatial transcriptomic methods such as 10x Visium capture information from areas containing multiple cells. Then, deconvolution is applied to relate the measured data of the spots back to individual cells. A commonly used tool for this deconvolution step is cell2location.

This vignette presents a workflow for the analysis of structural data, guiding users through the application of mistyR to cell2location data and subsequent result analysis.
This vignette presents a workflow for the analysis of structural data, guiding users through the application of `mistyR` to the results of `cell2location` deconvolution.

Load the necessary packages:

Expand Down Expand Up @@ -80,9 +86,9 @@ SpatialFeaturePlot(seurat_vs, keep.scale = NULL, features = "CM")

Based on the plots, we can observe that some cell types are found more frequently than others. Additionally, we can identify patterns in the distribution of cells, with some being widespread across the entire slide while others are concentrated in specific areas. Furthermore, there are cell types that share a similar distribution.

## Misty views
## MISTy views

Now we start with the mistyR pipeline. First, we need to define an intraview that captures the cell type proportions within a spot. To capture the distribution of cell type proportions in the surrounding tissue, we add a paraview. For this vignette, the radius we choose is the distance to the nearest neighbor plus the standard deviation. We calculate the weights of each spot with `family = gaussian`. Then we run mistyR and collect the results.
First, we need to define an intraview that captures the cell type proportions within a spot. To capture the distribution of cell type proportions in the surrounding tissue, we add a paraview. For this vignette, the radius we choose is the distance to the nearest neighbor plus the standard deviation. We calculate the weights of each spot with `family = gaussian`. Then we run MISTy and collect the results.

```{r message=FALSE, warning=FALSE}
# Calculating the radius
Expand Down
22 changes: 14 additions & 8 deletions vignettes/MistyRStructuralAnalysisPipelineDOT.Rmd
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
---
title: "MistyR structural analysis pipeline after DOT"
author: |
| Leoni Zimmermann
| [email protected]
title: "Structural analysis with MISTy - based on DOT deconvolution"
author:
- name: Leoni Zimmermann
affiliation:
- Heidelberg University, Heidelberg, Germany
- name: Jovan Tanevski
affiliation:
- Heidelberg University and Heidelberg University Hospital, Heidelberg, Germany
- Jožef Stefan Institute, Ljubljana, Slovenia
email: [email protected]
date: "`r Sys.Date()`"
package: mistyR
output:
Expand All @@ -11,16 +17,16 @@ output:
extra_dependencies:
nowidow: ["defaultlines=3", "all"]
vignette: >
%\VignetteIndexEntry{MistyR structural analysis pipeline after DOT}
%\VignetteIndexEntry{Structural analysis with MISTy - based on DOT deconvolution}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---

## Introduction

MistyR is designed to analyze spatial omics datasets within and between distinct spatial contexts referred to as views. This analysis can focus solely on structural information. Spatial transcriptomic methods such as Visium capture information from areas containing multiple cells. Then, deconvolution is applied to relate the measured data of the spots back to individual cells. In this vignette we will use the R package [`DOT`](https://saezlab.github.io/DOT/index.html) for deconvolution.
MISTy is designed to analyze spatial omics datasets within and between distinct spatial contexts referred to as views. This analysis can focus solely on structural information. Spatial transcriptomic methods such as Visium capture information from areas containing multiple cells. Then, deconvolution is applied to relate the measured data of the spots back to individual cells. In this vignette we will use the R package [`DOT`](https://saezlab.github.io/DOT/index.html) for deconvolution.

This vignette presents a workflow for the analysis of structural data, guiding users through the application of `mistyR` to `DOT` deconvolution data and subsequent result analysis.
This vignette presents a workflow for the analysis of structural data, guiding users through the application of `mistyR` to the results of `DOT` deconvolution.

Load the necessary packages:

Expand Down Expand Up @@ -127,7 +133,7 @@ draw_maps(geometry,

Based on the plots, we can observe that some cell types are found more frequently than others. Additionally, we can identify patterns in the distribution of cells, with some being widespread across the entire slide while others are concentrated in specific areas. Furthermore, there are cell types that share a similar distribution.

## Misty views
## MISTy views

```{r include = FALSE}
# Calculating the radius
Expand Down

0 comments on commit 8e59e90

Please sign in to comment.