Skip to content

Commit

Permalink
Add set of example TME markers
Browse files Browse the repository at this point in the history
  • Loading branch information
kieranrcampbell committed Jan 17, 2019
1 parent 9d93998 commit c8d40de
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 1 deletion.
9 changes: 9 additions & 0 deletions R/cellassign.R
Original file line number Diff line number Diff line change
Expand Up @@ -262,3 +262,12 @@ print.cellassign_fit <- function(x, ...) {
#' @examples
#' data(example_cellassign_fit)
"example_cellassign_fit"

#' Example tumour microevironment markers
#'
#' A set of example marker genes for commonly profiling the
#' human tumour mircoenvironment
#'
#' @examples
#' data(example_TME_markers)
"example_TME_markers"
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,18 @@ cas <- cellassign(exprs_obj = gene_expression_data,
X = X)
```

An example set of markers for the human tumour microenvironment can be loaded by calling

``` r
data(example_TME_markers)

```

Please see the package vignette for details and caveats.

# Paper

https://www.biorxiv.org/content/early/2019/01/16/521914
[Probabilistic cell type assignment of single-cell transcriptomic data reveals spatiotemporal microenvironment dynamics in human cancers, _Biorxiv 2019_](https://www.biorxiv.org/content/early/2019/01/16/521914)

# Authors

Expand Down
Binary file added data/example_TME_markers.rda
Binary file not shown.
18 changes: 18 additions & 0 deletions man/example_TME_markers.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 58 additions & 0 deletions vignettes/introduction-to-cellassign.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,64 @@ Finally, since this is simulated data we can check the concordance with the true
print(table(example_sce$Group, fit$cell_type))
```

# Example set of markers for tumour microenvironment

A set of example markers are included with the `cellassign` package for common cell types in the human tumour microenvironment. Users should be aware that

1. This set is provided as an _example_ only and we recommend researchers derive marker gene sets for their own use
2. The `cellassign` workflow is typically iterative, including ensuring all markers are expressed in your expression data, and removing cell types from the input marker matrix that do not appear to be present

The marker genes are available for the following cell types:

* B cells
* T cells
* Cytotoxic T cells
* Monocyte/Macrophage
* Epithelial cells
* Myofibroblasts
* Vascular smooth muscle cells
* Endothelial cells

These can be accessed by calling

```{r}
data(example_TME_markers)
```

Note that this is a list of two marker lists:

```{r}
names(example_TME_markers)
```

Where `symbol` contains gene symbols:

```{r}
lapply(head(example_TME_markers$symbol, n = 4), head, n = 4)
```

and `ensembl` contains the equivalent ensembl gene ids:

```{r}
lapply(head(example_TME_markers$ensembl, n = 4), head, n = 4)
```

To use these with `cellassign` we can turn them into the binary marker by cell type matrix:

```{r}
marker_mat <- marker_list_to_mat(example_TME_markers$ensembl)
marker_mat[1:3, 1:3]
```

*Important*: the single cell experiment or input gene expression matrix should be subset accordingly to match the rows of the marker input matrix, e.g. if `sce` is a `SingleCellExperiment` with ensembl IDs as rownames then call

```{r, eval = FALSE}
sce_marker <- sce[rownames(marker_mat),]
```

You can the proceed using `cellassign` as before.


# Advanced usage

Expand Down

0 comments on commit c8d40de

Please sign in to comment.