Quick start to using to MarkerGenes

Brief description

Resource that contains data related to:

Resource also contains a number of functions that:

Please note that the above functions are only compatible with old-style EWCE specificity matrices.

What is gene specificity?

  • Specificity of a gene represents the proportion of the total expression of a gene found in one cell type as compared to that in all cell types (i.e., the mean expression in one cell type divided by the mean expression in all cell types). If the expression of a gene is shared between two or more cell types, it will get a lower specificity measure.
  • For a description of how it’s calculated, please refer to Skene et al. 2016.

Data structure

Structure of a specificity matrix

  • Each .rda file represents one single-cell dataset and typically contains two lists (some datasets may only have level 1 cell types). These two lists represent:
    • Level 1 cell types – broad cell type categories e.g. astrocyte, glutamatergic neuron, etc.
    • Level 2 cell types – subtypes of the broader cell type categories
  • With each of the two lists there are three additional lists, which typically have the same name.
    • annot: a character vector that provides the level 1 or level 2 cell type assigned to each single cell, which was used in the calculation
    • mean_exp: a matrix of mean expression for all genes (rows) across each cell type (columns)
    • specificity: a matrix of the specificity values for all genes (rows) across each cell type (columns)

Structure of a specificity dataframe

  • Dataframe of gene, tissue/cell-type, mean_expression, and specificity.

Citation

If you use any specificity matrices from this repository, please make sure you cite the original publication the specificity values were derived from. For details, please refer to: dataset metadata.

MarkerGenes can be cited using:

utils::citation("MarkerGenes")
#> 
#> To cite package 'MarkerGenes' in publications use:
#> 
#>   Reynolds RH (2023). _MarkerGenes_. doi:10.5281/zenodo.6418605
#>   <https://doi.org/10.5281/zenodo.6418605>,
#>   https://github.com/RHReynolds/MarkerGenes - R package version 0.99.1,
#>   <https://github.com/RHReynolds/MarkerGenes>.
#> 
#> A BibTeX entry for LaTeX users is
#> 
#>   @Manual{,
#>     title = {MarkerGenes},
#>     author = {Regina H. Reynolds},
#>     year = {2023},
#>     url = {https://github.com/RHReynolds/MarkerGenes},
#>     note = {https://github.com/RHReynolds/MarkerGenes - R package version 0.99.1},
#>     doi = {10.5281/zenodo.6418605},
#>   }

Session info

Show/hide
#> ─ Session info ───────────────────────────────────────────────────────────────────────────────────────────────────────
#>  setting  value
#>  version  R version 4.2.2 (2022-10-31)
#>  os       macOS Monterey 12.6.2
#>  system   aarch64, darwin21.6.0
#>  ui       unknown
#>  language en
#>  collate  en_GB.UTF-8
#>  ctype    en_GB.UTF-8
#>  tz       Europe/London
#>  date     2023-02-03
#>  pandoc   2.19.2 @ /Applications/RStudio.app/Contents/MacOS/quarto/bin/tools/ (via rmarkdown)
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────────────────────────────────────────────
#>  package     * version date (UTC) lib source
#>  BiocManager   1.30.18 2022-05-18 [2] CRAN (R 4.2.1)
#>  BiocStyle   * 2.24.0  2022-04-26 [2] Bioconductor
#>  bookdown      0.29    2022-09-12 [2] CRAN (R 4.2.1)
#>  bslib         0.4.0   2022-07-16 [2] CRAN (R 4.2.1)
#>  cachem        1.0.6   2021-08-19 [2] CRAN (R 4.2.1)
#>  cli           3.4.1   2022-09-23 [2] CRAN (R 4.2.1)
#>  desc          1.4.2   2022-09-08 [2] CRAN (R 4.2.2)
#>  digest        0.6.30  2022-10-18 [2] CRAN (R 4.2.1)
#>  evaluate      0.18.2  2022-12-09 [2] Github (hadley/evaluate@abd01c4)
#>  fastmap       1.1.0   2021-01-25 [2] CRAN (R 4.2.1)
#>  fs            1.5.2   2021-12-08 [2] CRAN (R 4.2.1)
#>  htmltools     0.5.3   2022-07-18 [2] CRAN (R 4.2.1)
#>  jquerylib     0.1.4   2021-04-26 [2] CRAN (R 4.2.1)
#>  jsonlite      1.8.4   2022-12-06 [2] CRAN (R 4.2.1)
#>  knitr         1.40    2022-08-24 [2] CRAN (R 4.2.1)
#>  magrittr      2.0.3   2022-03-30 [2] CRAN (R 4.2.1)
#>  memoise       2.0.1   2021-11-26 [2] CRAN (R 4.2.1)
#>  pkgdown       2.0.6   2022-07-16 [2] CRAN (R 4.2.1)
#>  purrr         0.3.5   2022-10-06 [2] CRAN (R 4.2.1)
#>  R6            2.5.1   2021-08-19 [2] CRAN (R 4.2.1)
#>  ragg          1.2.3   2022-09-29 [2] CRAN (R 4.2.1)
#>  rlang         1.0.6   2022-09-24 [2] CRAN (R 4.2.1)
#>  rmarkdown     2.19    2022-12-15 [2] CRAN (R 4.2.2)
#>  rprojroot     2.0.3   2022-04-02 [2] CRAN (R 4.2.1)
#>  rstudioapi    0.14    2022-08-22 [2] CRAN (R 4.2.1)
#>  sass          0.4.2   2022-07-16 [2] CRAN (R 4.2.1)
#>  sessioninfo * 1.2.2   2021-12-06 [2] CRAN (R 4.2.1)
#>  stringi       1.7.8   2022-07-11 [2] CRAN (R 4.2.1)
#>  stringr       1.4.1   2022-08-20 [2] CRAN (R 4.2.1)
#>  systemfonts   1.0.4   2022-02-11 [2] CRAN (R 4.2.1)
#>  textshaping   0.3.6   2021-10-13 [2] CRAN (R 4.2.1)
#>  xfun          0.34    2022-10-18 [2] CRAN (R 4.2.1)
#>  yaml          2.3.6   2022-10-18 [2] CRAN (R 4.2.1)
#> 
#>  [1] /private/var/folders/_0/35fxwrtj5gdbg3t0kj3z732c0000gn/T/RtmpOnyVeW/temp_libpathe51d730274d2
#>  [2] /opt/homebrew/lib/R/4.2/site-library
#>  [3] /opt/homebrew/Cellar/r/4.2.2/lib/R/library
#> 
#> ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────