Skip to content

Commit

Permalink
Merge pull request #59 from ccb-hms/fn_name
Browse files Browse the repository at this point in the history
fn_name
  • Loading branch information
andrewGhazi authored Oct 10, 2024
2 parents bc4221e + ee60b2a commit ea710ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions episodes/eda_qc.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -620,12 +620,12 @@ In this case, we only have a few doublets at the periphery of some clusters. It

#### Exercise 1: Normalization

Here we used the deconvolution method implemented in `scran` based on a previous clustering step. Use the `calculateSumFactors` to compute the size factors without considering a preliminary clustering. Compare the resulting size factors via a scatter plot. How do the results change? What are the risks of not including clustering information?
Here we used the deconvolution method implemented in `scran` based on a previous clustering step. Use the `pooledSizeFactors` to compute the size factors without considering a preliminary clustering. Compare the resulting size factors via a scatter plot. How do the results change? What are the risks of not including clustering information?

::: solution

```{r}
deconv.sf2 <- calculateSumFactors(sce) # dropped `cluster = clust` here
deconv.sf2 <- pooledSizeFactors(sce) # dropped `cluster = clust` here
summary(deconv.sf2)
Expand Down Expand Up @@ -703,7 +703,7 @@ clust <- quickCluster(sce)
table(clust)
deconv.sf <- calculateSumFactors(sce, cluster = clust)
deconv.sf <- pooledSizeFactors(sce, cluster = clust)
sizeFactors(sce) <- deconv.sf
Expand Down

0 comments on commit ea710ab

Please sign in to comment.