README.md

geneBasisR

geneBasisR is a package that:

For greater details on the method, please read our preprint: https://www.biorxiv.org/content/10.1101/2021.08.10.455720v1. Also, explore vignette and tutorials to get a better grasp on the package and its functions.

Installation

## Install development version
library(devtools)
devtools::install_github("MarioniLab/geneBasisR") 

Gene panel selection

gene_search is the main function of the package and it selects the gene panel of designated size. The schematic below illustrates the steps of the algorithm.

Essential to specify arguments of gene_search are counts matrix (stored in SingleCellExperiment object or henceforth sce) and n_genes_total specifying the size of the panel.

Requirements for scRNA-seq data format:

Few notes:

library(geneBasisR)

# sce - SingleCellExperiment object, wehre normalized counts stored in 'logcounts' assay
# discard definetely uninteresting genes
sce = retain_informative_genes(sce)

# run gene selection
genes = gene_search(sce, n_genes_total = 50)

Gene panel evaluation

We evaluate gene panels on next levels:

The wrapper function that performs evaluation is evaluate_library takes as inputs scRNA-seq data (as a SingleCellExperiment objects, using logcounts) and character vector of gene names.

Few notes:

Tutorials

  1. In-built vignette provides the main workflow to select and evaluate gene panel for mouse embryo. Additionally, it displays visualization functions to provide further insights of the selected panels and, finally, displays how to compute cell type mapping redundancy for the selected panel. Also can be assessed via link below: Vignette of library design and its evaluation for mouse embryo, E8.5

Additional tutorials for further exploration of the package:

  1. Extended version of in-built vignette where we provide further suggestions how to proceed with detailed evaluation of the selected gene panels: Extended vignette of library design and its evaluation for mouse embryo, E8.5

  2. Illustration of performance of geneBasis within an individual cell type + suggestion (functional) how to pre-select relevant for the cell type genes: Vignette of library design within brain cells, mouse embryo, E8.5

  3. Here we introduce how to create correct sce object from raw .txt data (exemplified for spleen) and introduce a gene panel evaluation workflow to compare two independent selections. Vignette of library design for spleen dataset

Cite the code: DOI.



MarioniLab/geneBasisR documentation built on June 30, 2023, 2:04 p.m.