Monocle3 Tutorial Welcome! Download all data, slides, and scripts - - PowerPoint PPT Presentation

monocle3 tutorial welcome
SMART_READER_LITE
LIVE PREVIEW

Monocle3 Tutorial Welcome! Download all data, slides, and scripts - - PowerPoint PPT Presentation

Monocle3 Tutorial Welcome! Download all data, slides, and scripts at: http://sta ff .washington.edu/hpliner/ Pace and content: We will move fairly fast - we hope experienced R users will be able to keep up, but expect newer users will follow the


slide-1
SLIDE 1

Monocle3 Tutorial

slide-2
SLIDE 2

Welcome!

Download all data, slides, and scripts at: http://staff.washington.edu/hpliner/ Pace and content: We will move fairly fast - we hope experienced R users will be able to keep up, but expect newer users will follow the presentation and explore the code at their own pace Ask questions!

slide-3
SLIDE 3

Acknowledgements

slide-4
SLIDE 4

Introducing Monocle3

  • Performs cell type and trajectory analysis simultaneously
  • Optimized for large datasets
  • Advanced differential expression tools

Brand new package (released yesterday!), help us with development! Update often, submit bug reports (including re website) via github, ask question via google group

slide-5
SLIDE 5

Monocle3? Monocle? Monocle 3-alpha?

slide-6
SLIDE 6

Warning!

Monocle3 is fully independent Please remember that cds’ generated in monocle/monocle 2 will not work in monocle3

slide-7
SLIDE 7

Monocle3

Trajectory analysis Cluster analysis

slide-8
SLIDE 8

Find more info on the Monocle3 website

Website: https://cole-trapnell-lab.github.io/ monocle3/monocle3_docs/

slide-9
SLIDE 9

Monocle3 features

  • Cluster, classify and count cells
  • Construct single-cell trajectories
  • Perform differential expression
slide-10
SLIDE 10

Monocle3 versus Monocle 2

Monocle3 Monocle 2 loading library(monocle3) library(monocle) Data structure base SingleCellExperiment ExpressionSet UMAP ✔ ✘ tSNE ✔ ✔ Differential expression with trajectories Graph-based BEAM/single branch

slide-11
SLIDE 11

Monocle3

http://cole-trapnell-lab.github.io/monocle3/

Pre-process

slide-12
SLIDE 12

Monocle3

http://cole-trapnell-lab.github.io/monocle3/

Reduce dimension (UMAP)

McInnes & Healy 2018

Pre-process

slide-13
SLIDE 13

Monocle3

http://cole-trapnell-lab.github.io/monocle3/

Reduce dimension (UMAP)

McInnes & Healy 2018

Pre-process Cluster

slide-14
SLIDE 14

Monocle3

http://cole-trapnell-lab.github.io/monocle3/

Reduce dimension (UMAP)

McInnes & Healy 2018

Pre-process Cluster Learn graph

Wolf et al 2018

slide-15
SLIDE 15

Monocle3

http://cole-trapnell-lab.github.io/monocle3/

Reduce dimension (UMAP)

McInnes & Healy 2018

Pre-process Cluster Learn graph

Wolf et al 2018

slide-16
SLIDE 16

Trajectory 1 Trajectory 2

Monocle3

http://cole-trapnell-lab.github.io/monocle3/

Reduce dimension (UMAP)

McInnes & Healy 2018

Pre-process Cluster Learn graph

Wolf et al 2018

Trajectory analysis

slide-17
SLIDE 17

Workflow steps

Pre-process data Cluster cells Compare clusters Non-linear dimension reduction High dimension noisy scRNA-seq dataset Normalization +PCA t-SNE UMAP Identify top markers Targeted contrasts

slide-18
SLIDE 18

Software & installation

  • Monocle3 runs in the R statistical computing environment
  • Needs R version 3.5 or higher
  • To install from the Trapnell Lab GitHub
  • To test the installation

library(monocle3) devtools :: install_github('cole-trapnell-lab/monocle3')

slide-19
SLIDE 19
  • C. elegans L2 data

Cao, Packer, Science 2017

  • C. elegans group, Universiteit Utrecht
slide-20
SLIDE 20

Import C. elegans data

http://staff.washington.edu/hpliner/

cds <- readRDS(‘~/Downloads/worm_l1_cds.rds’)

slide-21
SLIDE 21

Import your own data

  • To create your own cds object, use gene x cell matrix (mat),

gene data frame (gene_meta) and cell data frame (cell_meta):

  • Monocle3 can also import data from 10x experiments directly into

cds objects

cds <- new_cell_dataset(mat, cell_meta, gene_meta) cds <- load_cellranger_data("cell_ranger_output")

slide-22
SLIDE 22

Accessor functions for cds

  • exprs/counts: A numeric matrix of expression values, where rows

are genes and columns are cells

  • pData/colData: An object where rows are cells and columns are

cell attributes such as cell type, culture condition, etc

  • fData/rowData: An object where rows are features (e.g. genes)

and columns are gene attributes such as biotype, gc content, etc

colData(cds) rowData(cds) counts(cds)

slide-23
SLIDE 23

cell_type culture_cond Size_Factor cell_1 cell_2 cell_3 cell_n

colData(cds) rowData(cds)

biotype gc_content gene_1 gene_2 gene_3 gene_n

slide-24
SLIDE 24

Pre-process & batch

Cluster cells Compare clusters Non-linear dimension reduction Pre-process data High dimension noisy scRNA-seq dataset Normalization +PCA t-SNE UMAP Identify top markers Targeted contrasts

slide-25
SLIDE 25

Preprocess the data

  • Preprocess data with initial dimensionality reduction

cds <- preprocess_cds(cds, num_dim = 100)

slide-26
SLIDE 26

Reduce dimension

Pre-process data Cluster cells Compare clusters High dimension noisy scRNA-seq dataset Normalization +PCA Non-linear dimension reduction t-SNE UMAP Identify top markers Targeted contrasts

slide-27
SLIDE 27

Reduce dimensions

cds <- reduce_dimension(cds) plot_cells(cds)

Reduce dimension Pre-process

slide-28
SLIDE 28

Cluster cells

Pre-process data Compare clusters Non-linear dimension reduction High dimension noisy scRNA-seq dataset Cluster cells Normalization +PCA t-SNE UMAP Identify top markers Targeted contrasts

slide-29
SLIDE 29

Next we cluster the cells

  • The cluster_cells function of monocle3 allows users to group similar

cells according to global expression profiles

  • In addition, partitions (super-clusters) are calculated for dividing

distinct trajectories

  • You can access values using the following:

cds <- cluster_cells(cds) head(partitions(cds, reduction_method = "UMAP")) head(clusters(cds, reduction_method = "UMAP"))

slide-30
SLIDE 30

Group cells by partitions

cds <- cluster_cells(cds) plot_cells(cds, color_cells_by="partition", group_cells_by="partition")

Reduce dimension Pre-process Cluster

slide-31
SLIDE 31

cds <- cluster_cells(cds) plot_cells(cds)

Group cells by clusters

slide-32
SLIDE 32

Compare clusters

Pre-process data Cluster cells Non-linear dimension reduction High dimension noisy scRNA-seq dataset Normalization +PCA t-SNE UMAP Compare clusters Identify top markers Targeted contrasts

slide-33
SLIDE 33

\

Reduce dimension Pre-process Cluster Learn graph

Compare expression between clusters Find cluster markers

Gene1 Gene2

slide-34
SLIDE 34

34

cds_subset <- choose_cells(cds)

Compare selected clusters

slide-35
SLIDE 35

gene_fits <- fit_models(cds_subset[1:100,], model_formula_str = "~cluster") fit_coefs <- coefficient_table(gene_fits) head(fit_coefs)

Compare selected clusters

slide-36
SLIDE 36

Find cluster markers

marker_genes <- top_markers(cds) tops_sig <- subset(marker_genes, marker_test_q_value < .05)

slide-37
SLIDE 37

Annotating by cell type

slide-38
SLIDE 38

Annotating by cell type

plot_cells(cds, color_by="cao_cell_type")

slide-39
SLIDE 39

Simplifying future workflow with Garnett

generate_garnett_marker_file(marker_genes)

slide-40
SLIDE 40

Further analyses with Monocle3

slide-41
SLIDE 41

Trajectory analysis Graph-based differential expression

Further analyses with Monocle3

slide-42
SLIDE 42

Thank you! Questions?

42