Skip to content

Commit

Permalink
Restore the ontology chapter with fixed call to getCellOnto().
Browse files Browse the repository at this point in the history
  • Loading branch information
js2264 authored Nov 30, 2023
1 parent 6ad4fc8 commit 06b9fb9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions inst/book/_bookdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ rmd_files: ["index.Rmd",
"scref.Rmd",
"diagnostics.Rmd",
"multiple.Rmd",
"ontology.Rmd",
"advanced.Rmd",
"pancreas.Rmd",
"brain.Rmd",
Expand Down
5 changes: 0 additions & 5 deletions inst/book/multiple.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,9 @@ simplifying interpretation and ensuring that irrelevant discrepancies in labelli
Many of the `r Biocpkg("SingleR")` reference datasets already have their labels
mapped to the [Cell Ontology](https://www.ebi.ac.uk/ols/ontologies/cl),
which provides a standard vocabulary to refer to the same cell type across diverse datasets.
The key idea is that the same term is used for the same conceptual cell type in each reference.
To simplify interpretation, we set `cell.ont="nonna"` to remove all samples that could not be mapped to the ontology.

<!--
We will describe the utility of Cell Ontology terms in more detail in Chapter \@ref(exploiting-the-cell-ontology);
at this point, the key idea is that the same term is used for the same conceptual cell type in each reference.
To simplify interpretation, we set `cell.ont="nonna"` to remove all samples that could not be mapped to the ontology.
-->

```{r}
hpca.ont <- HumanPrimaryCellAtlasData(ensembl=TRUE, cell.ont="nonna")
Expand Down
2 changes: 1 addition & 1 deletion inst/book/ontology.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ that we can query for various pieces of information.
```{r}
# TODO: wrap in utility function.
library(ontoProc)
cl <- getCellOnto()
cl <- getOnto("cellOnto")
cl
```

Expand Down

0 comments on commit 06b9fb9

Please sign in to comment.