Skip to content

Commit

Permalink
Initial pass on intro lesson, and moved all other lessons to narrow i…
Browse files Browse the repository at this point in the history
…n on install issue
  • Loading branch information
csmagnano committed Jan 10, 2024
1 parent 4bd95b2 commit 4ca0375
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 17 deletions.
68 changes: 51 additions & 17 deletions episodes/intro_bioc_sce.Rmd
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
---
title: Introduction to Bioconductor and the SingleCellExperiment class
vignette: >
% \VignetteIndexEntry{Introduction}
% \VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
output:
html_document:
mathjax: null
teaching: 10 # Minutes of teaching in the lesson
exercises: 2 # Minutes of exercises in the lesson
---

:::::::::::::::::::::::::::::::::::::: questions

- What is Bioconductor?
- How is single-cell data store in the Bioconductor ecosystem?

::::::::::::::::::::::::::::::::::::::::::::::::

::::::::::::::::::::::::::::::::::::: objectives

- TODO

::::::::::::::::::::::::::::::::::::::::::::::::

# Setup

```{r setup, message = FALSE, warning=FALSE}
Expand Down Expand Up @@ -92,24 +100,50 @@ library(scater)
plotReducedDim(sce, "pca.corrected.E8.5", colour_by = "celltype.mapped")
```

:::::::::::::::::::::::::::::::::: challenge

# Session Info
#### Exercise 1

```{r sessionInfo}
sessionInfo()
```
Create a `SingleCellExperiment` object: Try and create a SingleCellExperiment object "from scratch". Start from a matrix (either randomly generated or with some fake data in it) and add one or more columns as colData.

# Further Reading
:::::::::::::: hint

* OSCA book, [Introduction](https://bioconductor.org/books/release/OSCA.intro)
The `SingleCellExperiment` function can be used to create a new SingleCellExperiment object

:::::::::::::::::::::::

:::::::::::::: solution

TODO
:::::::::::::::::::::::

:::::::::::::::::::::::::::::::::::::::::::::

# Exercises
:::::::::::::::::::::::::::::::::: challenge

1. Create a `SingleCellExperiment` object: Try and create a SingleCellExperiment object "from scratch". Start from a matrix (either randomly generated or with some fake data in it) and add one or more columns as colData.
#### Exercise 2

Combining two objects: The `MouseGastrulationData` package contains several datasets. Download sample 6 of the chimera experiment by running `sce6 <- WTChimeraData(sample=6)`. Use the `cbind` function to combine the new data with the `sce` object created before.

:::::::::::::: solution

TODO
:::::::::::::::::::::::

:::::::::::::::::::::::::::::::::::::::::::::


::::::::::::::::::::::::::::::::::::: keypoints

- TODO

::::::::::::::::::::::::::::::::::::::::::::::::

# Further Reading

* OSCA book, [Introduction](https://bioconductor.org/books/release/OSCA.intro)

Hint: the `SingleCellExperiment` function can be used to create a new SingleCellExperiment object.

2. Combining two objects: The `MouseGastrulationData` package contains several datasets. Download sample 6 of the chimera experiment by running `sce6 <- WTChimeraData(sample=6)`. Use the `cbind` function to combine the new data with the `sce` object created before.



File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4ca0375

Please sign in to comment.