GeneOverlapAcrossComps: Gene overlap across components

View source: R/SDA_util.R

GeneOverlapAcrossCompsR Documentation

Gene overlap across components

Description

Given a set of genes and a dataframe of gene expression values across multiple components, this function computes the number of overlapping genes in the top Ngenes of each component with the input gene set.

Usage

GeneOverlapAcrossComps(GeneSet, compDF, Ngenes = 10, verbose = T)

Arguments

GeneSet

a character vector of gene names to compare across the components

compDF

a data.frame object containing gene expression values across components, where each column corresponds to a component and each row to a gene

Ngenes

the number of genes to consider in the top overlap

verbose

a boolean indicating whether to print the top found genes for each component

Value

A named list of length equal to the length of the input GeneSet, where each element of the list is a numeric vector of length equal to the number of components in compDF representing the number of overlapping genes in the top Ngenes of each component with the input gene set.


eisascience/scCustFx documentation built on June 2, 2025, 3:59 a.m.