Skip to content

Commit

Permalink
differences for PR #10
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed May 3, 2024
1 parent 29ef4fa commit 69ec6c3
Show file tree
Hide file tree
Showing 8 changed files with 4,126 additions and 118 deletions.
33 changes: 19 additions & 14 deletions cell_type_annotation.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ exercises: 15 # Minutes of exercises in the lesson
::::::::::::::::::::::::::::::::::::::::::::::::


# Setup
## Setup


```r
Expand All @@ -44,7 +44,7 @@ library(scater)
library(scran)
```

# Data retrieval
## Data retrieval


```r
Expand Down Expand Up @@ -76,15 +76,15 @@ ind <- sample(ncol(sce), 1000)
sce <- sce[,ind]
```

# Preprocessing
## Preprocessing


```r
sce <- logNormCounts(sce)
sce <- runPCA(sce)
```

# Clustering
## Clustering

Clustering is an unsupervised learning procedure that is used to empirically
define groups of cells with similar expression profiles.
Expand Down Expand Up @@ -141,7 +141,7 @@ plotReducedDim(sce, "UMAP", color_by = "label")

<img src="fig/cell_type_annotation-rendered-cluster-viz-1.png" style="display: block; margin: auto;" />

# Marker gene detection
## Marker gene detection

To interpret clustering results as obtained in the previous section, we identify
the genes that drive separation between clusters. These marker genes allow us to
Expand Down Expand Up @@ -246,7 +246,7 @@ plotExpression(sce, features = top.markers, x = "label", color_by = "label")

<img src="fig/cell_type_annotation-rendered-plot-markers-1.png" style="display: block; margin: auto;" />

# Cell type annotation
## Cell type annotation

The most challenging task in scRNA-seq data analysis is arguably the
interpretation of the results.
Expand All @@ -272,7 +272,7 @@ reference datasets where each sample or cell has already been annotated with its
putative biological state by domain experts.
Here, we will demonstrate both approaches on the wild-type chimera dataset.

## Assigning cell labels from reference data
### Assigning cell labels from reference data

A conceptually straightforward annotation approach is to compare the single-cell
expression profiles with previously annotated reference datasets.
Expand Down Expand Up @@ -495,7 +495,7 @@ pheatmap(log2(tab + 10), color = colorRampPalette(c("white", "blue"))(101))

<img src="fig/cell_type_annotation-rendered-anno-vs-preanno-1.png" style="display: block; margin: auto;" />

## Assigning cell labels from gene sets
### Assigning cell labels from gene sets

A related strategy is to explicitly identify sets of marker genes that are highly
expressed in each individual cell.
Expand Down Expand Up @@ -909,7 +909,7 @@ a fitted three-component mixture, and the grey curve represents a fitted normal
distribution. Vertical lines represent threshold estimates corresponding to each
estimate of the distribution.

# Session Info
## Session Info


```r
Expand Down Expand Up @@ -1019,13 +1019,9 @@ loaded via a namespace (and not attached):
[125] cowplot_1.1.3 KEGGREST_1.42.0
```

# Further Reading

* OSCA book, [Chapters 5-7](https://bioconductor.org/books/release/OSCA.basic/clustering.html)
* Assigning cell types with SingleR ([the book](https://bioconductor.org/books/release/SingleRBook/)).
* The [AUCell](https://bioconductor.org/packages/AUCell) package vignette.

# Exercises
## Exercises

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

Expand Down Expand Up @@ -1100,6 +1096,15 @@ TODO

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

:::::::::::::: checklist
## Further Reading

* OSCA book, [Chapters 5-7](https://bioconductor.org/books/release/OSCA.basic/clustering.html)
* Assigning cell types with SingleR ([the book](https://bioconductor.org/books/release/SingleRBook/)).
* The [AUCell](https://bioconductor.org/packages/AUCell) package vignette.

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

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

- TODO
Expand Down
83 changes: 83 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
#------------------------------------------------------------
# Values for this lesson.
#------------------------------------------------------------

# Which carpentry is this (swc, dc, lc, or cp)?
# swc: Software Carpentry
# dc: Data Carpentry
# lc: Library Carpentry
# cp: Carpentries (to use for instructor training for instance)
# incubator: The Carpentries Incubator
carpentry: 'incubator'

# Overall title for pages.
title: 'Orchestrating Large-Scale Single-Cell Analysis with Bioconductor'

# Date the lesson was created (YYYY-MM-DD, this is empty by default)
created: 2024-01-10

# Comma-separated list of keywords for the lesson
keywords: 'single-cell RNA-seq, The Carpentries, lesson, genomics, bioconductor' # FIXME

# Life cycle stage of the lesson
# possible values: pre-alpha, alpha, beta, stable
life_cycle: 'pre-alpha' # FIXME

# License of the lesson
license: 'CC-BY 4.0'

# Link to the source repository for this lesson
source: 'https://github.com/ccb-hms/osca-carpentries'

# Default branch of your lesson
branch: 'main'

# Who to contact if there are any issues
contact: '[email protected]' # TODO probably change to Ludwig

# Navigation ------------------------------------------------
#
# Use the following menu items to specify the order of
# individual pages in each dropdown section. Leave blank to
# include all pages in the folder.
#
# Example -------------
#
# episodes:
# - introduction.md
# - first-steps.md
#
# learners:
# - setup.md
#
# instructors:
# - instructor-notes.md
#
# profiles:
# - one-learner.md
# - another-learner.md

# Order of episodes in your lesson
episodes:
- intro-sce.Rmd
- eda_qc.Rmd
- cell_type_annotation.Rmd
- multi-sample.Rmd
- large_data.Rmd
- hca.Rmd

# Information for Learners
learners:

# Information for Instructors
instructors:

# Learner Profiles
profiles:

# Customisation ---------------------------------------------
#
# This space below is where custom yaml items (e.g. pinning
# sandpaper and varnish versions) should live


Loading

0 comments on commit 69ec6c3

Please sign in to comment.