Skip to content

Commit

Permalink
Live and rendered notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
sjspielman authored and github-actions[bot] committed Dec 6, 2024
1 parent 18e3692 commit 6e25532
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 34 deletions.
4 changes: 2 additions & 2 deletions RNA-seq/02-gastric_cancer_tximeta.nb.html
Original file line number Diff line number Diff line change
Expand Up @@ -3264,8 +3264,8 @@ <h2>Summarize to gene</h2>
<pre class="r"><code># Summarize to the gene level
gene_summarized &lt;- summarizeToGene(txi_data)</code></pre>
<!-- rnb-source-end -->
<!-- rnb-message-begin eyJkYXRhIjoibG9hZGluZyBleGlzdGluZyBFbnNEYiBjcmVhdGVkOiAyMDI0LTEyLTA0IDIxOjU5OjQ0XG4ifQ== -->
<pre><code>loading existing EnsDb created: 2024-12-04 21:59:44</code></pre>
<!-- rnb-message-begin eyJkYXRhIjoibG9hZGluZyBleGlzdGluZyBFbnNEYiBjcmVhdGVkOiAyMDI0LTEyLTA2IDE2OjU5OjI3XG4ifQ== -->
<pre><code>loading existing EnsDb created: 2024-12-06 16:59:27</code></pre>
<!-- rnb-message-end -->
<!-- rnb-message-begin eyJkYXRhIjoib2J0YWluaW5nIHRyYW5zY3JpcHQtdG8tZ2VuZSBtYXBwaW5nIGZyb20gZGF0YWJhc2VcbiJ9 -->
<pre><code>obtaining transcript-to-gene mapping from database</code></pre>
Expand Down
8 changes: 3 additions & 5 deletions scRNA-seq-advanced/02-dataset_integration-live.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -702,9 +702,8 @@ Like `fastMNN`, `harmony` performs integration on a merged PCA matrix.
However, unlike `fastMNN`, `harmony` does not "back-calculate" corrected expression from the corrected PCA matrix and it only returns the corrected PCA matrix itself.
For input, `harmony` needs a couple pieces of information:

- First, `harmony` can either take a matrix of normalized expression values, from which it will calculate a batch-weighted PCA matrix to integrate, or it can take a batch-weighted PCA matrix directly to perform integration.
Since we already calculated a batch-weighted PCA matrix (our `merged_PCA` reduced dimension), we'll provide this information directly.
- We will need to specify the additional argument `do_pca=FALSE` to tell `harmony` that the input matrix we provided already is a PCA matrix.
- First, `harmony` takes a batch-weighted PCA matrix to perform integration.
We already calculated a batch-weighted PCA matrix (our `merged_PCA` reduced dimension), we'll provide this as the the input.
- Second, we need to tell `harmony` about the covariates to use - `sample` and `patient`.
To do this, we provide two arguments:
- `meta_data`, a data frame that contains covariates across samples.
Expand All @@ -715,8 +714,7 @@ To do this, we provide two arguments:
Let's go!

```{r run harmony, live = TRUE}
# integrate with harmony, setting the argument `do_pca = FALSE`
# since we are providing a PCA matrix directly
# Run harmony integration
```

Expand Down
34 changes: 8 additions & 26 deletions scRNA-seq-advanced/02-dataset_integration.nb.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scRNA-seq-advanced/03-differential_expression.nb.html

Large diffs are not rendered by default.

0 comments on commit 6e25532

Please sign in to comment.