get_compared_gene_sets: Get compared gene sets

Description Usage Arguments Value Examples

View source: R/gene_set_manipulators.R

Description

Gene sets compared against CorGI in the manuscript

Usage

1
2
3
get_compared_gene_sets(batch1_top_genes, batch1_name = "Batch1",
  batch2_top_genes, batch2_name = "Batch2", desired_size,
  marker_genes = c())

Arguments

batch1_top_genes

ordered list of genes (e.g., most highly variable to least)

batch1_name

name of batch1 (e.g., if batch1_top_genes was computed using highly variable genes (HVG), then consider batch1_name <- HVG(Batch1))

batch2_top_genes

see batch1_top_genes

batch2_name

see batch1_name

desired_size

how big the output gene_sets should be

marker_genes

genes that are included in every gene set of the output. Defaults to the empty set, i.e., no markers provided.

Value

a list of gene sets, where each item is a gene set of size desired_size. The list is ordered as follows:

If marker_genes is nonempty, then all four gene sets above include marker_genes.

Examples

1
2
3
4
HVG_batch1 <- c(paste0("g",1:4),paste0("g",7:10))
HVG_batch2 <- paste0("g",3:9)
marker_genes <- "g0"
get_compared_gene_sets(HVG_batch1, "HVG(batch1)", HVG_batch2, "HVG(batch2)", 6, marker_genes)

YutongWangUMich/corgi documentation built on Oct. 26, 2019, 1:13 p.m.