| Title: | Provide programmatic access to the tonsil cell atlas datasets |
|---|---|
| Description: | This package provides access to the scRNA-seq, scATAC-seq, multiome, CITE-seq and spatial transcriptomics (Visium) data generated by the tonsil cell atlas in the context of the Human Cell Atlas (HCA). The data is provided via the Bioconductor project in the form of SingleCellExperiments. Additionally, information on the whole compendium of identified cell types is provided in form of a glossary. |
| Authors: | Ramon Massoni-Badosa [aut, cre] (ORCID: <https://orcid.org/0000-0001-7115-8145>), Federico Marini [aut] (ORCID: <https://orcid.org/0000-0003-3252-7758>), Alan O'Callaghan [aut], Helena L. Crowell [aut] (ORCID: <https://orcid.org/0000-0002-4801-1767>) |
| Maintainer: | Ramon Massoni-Badosa <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 1.10.0 |
| Built: | 2026-10-10 11:18:44 UTC |
| Source: | https://github.com/bioc/HCATonsilData |
Annotations are opinionated and dynamic by nature. They are subjected to change as more experts look into the data and more evidence is published. HCATonsilData has been designed to account for that. We timestamp annotations and plan to include additional annotations if users propose them and we validate them.
A list of named vectors with the correspondence between time-stamped annotations
This file was created with the script in "inst/scripts/make-annotation-dictionary.R
Color palettes used in the paper for all cell types
A list with the HEX color codes for each cell type
This file was created with the script in "inst/scripts/make-annotation-colors.R
Data frame that contains all metadata information for the 17 donors included in the tonsil atlas.
A dataframe with 17 observations and 8 variables
Check the tonsil atlas publication
The data was downloaded from Zenodo https://zenodo.org/record/8373756
HCATonsilData( assayType = c("RNA", "ATAC", "CITE", "Spatial"), cellType = "All", version = "2.0", processedCounts = TRUE )HCATonsilData( assayType = c("RNA", "ATAC", "CITE", "Spatial"), cellType = "All", version = "2.0", processedCounts = TRUE )
assayType |
One of 'RNA', 'ATAC', 'Multiome', 'CITE' or 'Spatial'. |
cellType |
A character vector of length 1 with the desired cell type.
A list of available cell types can be obtained using
|
version |
Version of the tonsil atlas data to retrieve: "1.0" (preprint) or "2.0" (publication, default) |
processedCounts |
Logical scalar. If |
A SingleCellExperiment object for the cellType requested. For scATAC-seq, Multiome and CITE we provide the instructions for downloading the Seurat objects in Zenodo (see vignette)
Ramon Massoni-Badosa
# retrieve the epithelial scRNA-seq dataset sce_epithelial <- HCATonsilData( assayType = "RNA", cellType = "epithelial" ) sce_epithelial# retrieve the epithelial scRNA-seq dataset sce_epithelial <- HCATonsilData( assayType = "RNA", cellType = "epithelial" ) sce_epithelial
List available cell types for a dataset of the tonsil cell atlas
listCellTypes( assayType = c("RNA", "ATAC", "Multiome", "CITE", "Spatial"), version = "2.0" )listCellTypes( assayType = c("RNA", "ATAC", "Multiome", "CITE", "Spatial"), version = "2.0" )
assayType |
Either 'RNA', 'ATAC', 'Multiome', 'CITE', or 'Spatial' |
version |
Version of the tonsil atlas data: '1.0' (preprint) or '2.0' or '2.0' (publication, default). Note that, for version 2.0, CD8-T and ILC-NK are combined in a single 'Cytotoxic' object. |
A character vector with the available cell types for the indicated dataset.
listCellTypes(assayType = "RNA", version = "2.0")listCellTypes(assayType = "RNA", version = "2.0")
In version 1 of the atlas, we changed the clusters and annotation for NBC-MBC prior to publishing the preprint. Since, there is not a 1:1 mapping between clusters, here we provide the correspondence between the annotations in February 2022 and the preprint (June 2022) for each NBC-MBC cell barcode.
A dataframe with 112478 NBC-MBC and 5 variables
cell barcode
Cell annotation given by the B-cell annotation team in February 2022
Cell annotation given by the B-cell annotation team June 2022 (preprint)
UMAP1 coordinates
UMAP2 coordinates
This data is used by the updateAnnotation function in B cells.
https://zenodo.org/record/8373756
Query the glossary to traceback the rationale for each annotation of the tonsil atlas
TonsilData_cellinfo(cellType = NULL)TonsilData_cellinfo(cellType = NULL)
cellType |
String character, used to define the cell type for which the
information will be displayed. Defaults to |
Invisible NULL - the information is displayed as a message in the
console.
TonsilData_cellinfo() TonsilData_cellinfo("PDC")TonsilData_cellinfo() TonsilData_cellinfo("PDC")
TonsilData_cellinfo_html
TonsilData_cellinfo_html( cellType = NULL, display_plot = TRUE, output_to = c("single_page", "html_to_embed") )TonsilData_cellinfo_html( cellType = NULL, display_plot = TRUE, output_to = c("single_page", "html_to_embed") )
cellType |
String character, used to define the cell type for which the
information will be displayed. Defaults to |
display_plot |
Logical value, defines whether to include or not a plot for the UMAP of the selected cell type |
output_to |
Character value, one of "single_page" or "html_to_embed". Defines in which form the information is returned, either as an individual page or simply as HTML code to directly embed into other documents. |
Either the HTML code generated to be embedded, or a standalone HTML page is created - and the location to this temp file is returned as a character (default).
TonsilData_cellinfo_html("PDC") TonsilData_cellinfo_html("preB") TonsilData_cellinfo_html("preT") TonsilData_cellinfo_html("preT", output_to = "html_to_embed")TonsilData_cellinfo_html("PDC") TonsilData_cellinfo_html("preB") TonsilData_cellinfo_html("preT") TonsilData_cellinfo_html("preT", output_to = "html_to_embed")
Convenience function to read directly in the file provided as extdata
TonsilData_glossary()TonsilData_glossary()
Data frame containing the info on the cell types included in the TonsilDataAtlas
glossary_df <- TonsilData_glossary() head(glossary_df)glossary_df <- TonsilData_glossary() head(glossary_df)
Annotations are dynamic by nature. As more experts look into the data and newer literature comes out, we expect annotations to be refined over time. We have accommodated this by allowing us and users to add new annotations to the SingleCellExperiment objects. If you want to propose a new annotation based on your experience or new evidence, please open an issue at https://github.com/massonix/HCATonsilData/issues.
updateAnnotation(sce, refAnnotation = "20220215", newAnnotation = "20220619")updateAnnotation(sce, refAnnotation = "20220215", newAnnotation = "20220619")
sce |
A SingleCellExperiment object obtained using HCATonsilData function. |
refAnnotation |
string specifying the date of the annotation to use as reference. |
newAnnotation |
string specifying the suffix to add to the new column (annotation_*). |
A SingleCellExperiment object with additional an additional column (annotation_*) that contains more annotations.
# update the annotation from preprint (version 1.0) to publication (version 2.0) ## Not run: sce <- updateAnnotation( sce, refAnnotation = "20220619", newAnnotation = "20230508" ) ## End(Not run)# update the annotation from preprint (version 1.0) to publication (version 2.0) ## Not run: sce <- updateAnnotation( sce, refAnnotation = "20220619", newAnnotation = "20230508" ) ## End(Not run)