Skip to content

Commit

Permalink
remove messages and warnings from a session
Browse files Browse the repository at this point in the history
  • Loading branch information
josschavezf committed Jul 26, 2024
1 parent 0257298 commit 2bee537
Show file tree
Hide file tree
Showing 7 changed files with 100 additions and 135 deletions.
16 changes: 10 additions & 6 deletions 03_session4.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ library(GiottoData)
```
Here we load Giotto mini Visium object to continue with the interoperability.

```{r}
```{r, message=FALSE, warning=FALSE}
gobject <- GiottoData::loadGiottoMini("visium")
```

Expand Down Expand Up @@ -68,7 +68,7 @@ rowData(spe)[order(rowData(spe)$rank)[1:10], ]$feat_ID
### Conversion of SpatialExperiment object back to Giotto
We then convert the processed SpatialExperiment object back into a Giotto object for further downstream analysis using the Giotto suite. This is done using the `spatialExperimentToGiotto` function, where we explicitly specify the spatial network from the SpatialExperiment object.

```{r, warning=FALSE}
```{r, warning=FALSE, message=FALSE}
giottoFromSPE <- spatialExperimentToGiotto(spe = spe,
python_path = NULL,
sp_network = "Delaunay_network")
Expand All @@ -78,12 +78,16 @@ print(giottoFromSPE)
### Plotting top genes from nnSVG in Giotto
Now, we visualize the genes previously identified in the SpatialExperiment object using the nnSVG package within the Giotto toolkit, leveraging the converted Giotto object.

```{r, warning=FALSE}
```{r, warning=FALSE, out.width="100%"}
ext_spatial_genes <- getFeatureMetadata(giottoFromSPE, output = "data.table")
ext_spatial_genes <- ext_spatial_genes[order(ext_spatial_genes$rank)[1:10], ]$feat_ID
spatFeatPlot2D(giottoFromSPE, expression_values = 'scaled_rna_cell',
feats = ext_spatial_genes[1:4], point_size = 2)
spatFeatPlot2D(giottoFromSPE,
expression_values = 'scaled_rna_cell',
feats = ext_spatial_genes[1:4],
point_size = 2,
return_plot = FALSE,
show_plot = TRUE)
```

## Seurat
Expand All @@ -97,7 +101,7 @@ To convert Giotto object to Seurat V5 object, we first load required libraries a
library(Seurat)
```

```{r}
```{r, warning=FALSE, message=FALSE}
gToS <- giottoToSeuratV5(gobject = gobject, spat_unit = "cell")
```

Expand Down
Binary file modified _main_files/figure-html/unnamed-chunk-205-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_main_files/figure-html/unnamed-chunk-205-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/contributing-to-giotto.html
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ <h1>
<h1><span class="header-section-number">67</span> Contributing to Giotto<a href="contributing-to-giotto.html#contributing-to-giotto" class="anchor-section" aria-label="Anchor link to header"></a></h1>
<p>Jiaji George Chen</p>
<p>August 7th 2024</p>
<div class="sourceCode" id="cb180"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb180-1"><a href="contributing-to-giotto.html#cb180-1" tabindex="-1"></a>save_dir <span class="ot">&lt;-</span> <span class="st">&quot;~/Documents/GitHub/giotto_workshop_2024/img/03_session7&quot;</span></span></code></pre></div>
<div class="sourceCode" id="cb154"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb154-1"><a href="contributing-to-giotto.html#cb154-1" tabindex="-1"></a>save_dir <span class="ot">&lt;-</span> <span class="st">&quot;~/Documents/GitHub/giotto_workshop_2024/img/03_session7&quot;</span></span></code></pre></div>
<div id="contribution-guideline" class="section level2 hasAnchor" number="67.1">
<h2><span class="header-section-number">67.1</span> Contribution guideline<a href="contributing-to-giotto.html#contribution-guideline" class="anchor-section" aria-label="Anchor link to header"></a></h2>
<p><a href="https://drieslab.github.io/Giotto_website/CONTRIBUTING.html" class="uri">https://drieslab.github.io/Giotto_website/CONTRIBUTING.html</a></p>
Expand Down
98 changes: 49 additions & 49 deletions docs/interoperability-with-isolated-tools.html

Large diffs are not rendered by default.

Loading

0 comments on commit 2bee537

Please sign in to comment.