Skip to content

Commit

Permalink
Merge pull request #84 from carpentries-incubator/make-sce-for-isee
Browse files Browse the repository at this point in the history
Add some more things to the object before calling iSEE
  • Loading branch information
csoneson authored Sep 18, 2023
2 parents 6c4cabb + a46e5c6 commit f1daa18
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion episodes/04-exploratory-qc.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,19 @@ Useful tools for interactive exploratory data analysis for RNA-seq are [Glimma](
## Challenge: Interactively explore our data using iSEE

```{r isee, eval=FALSE}
app <- iSEE(se)
## Convert DESeqDataSet object to a SingleCellExperiment object, in order to
## be able to store the PCA representation
sce <- as(dds, "SingleCellExperiment")
## Add PCA to the 'reducedDim' slot
stopifnot(rownames(pcaData) == colnames(sce))
reducedDim(sce, "PCA") <- as.matrix(pcaData[, c("PC1", "PC2")])
## Add variance-stabilized data as a new assay
stopifnot(colnames(vsd) == colnames(sce))
assay(sce, "vsd") <- assay(vsd)
app <- iSEE(sce)
shiny::runApp(app)
```

Expand Down

0 comments on commit f1daa18

Please sign in to comment.