Select Genes for Analysis
select.gene.RdThis function filters and selects transcription factors (TFs), target genes, and background genes from a Seurat object based on their expression in a minimum number of cells.
Arguments
- seurat.obj
A
Seuratobject containing gene expression data.- tfs
A vector of transcription factor (TF) gene names. If
NULL, all TFs in thegene.list$tfswill be considered. Default isNULL.- targets
A vector of target gene names. If
NULL, all target genes ingene.list$targetswill be considered. Default isNULL.- bgs
A vector of background gene names. If
NULL, no additional background genes are considered. Default isNULL.- min.cells
An integer specifying the minimum number of cells in which a gene must be expressed to be included. Default is 20.
Value
A list containing:
- tfs
Filtered TFs that meet the minimum cell expression criteria.
- targets
Filtered target genes that meet the minimum cell expression criteria.
- bgs
Filtered background genes, excluding any genes in
tfsortargets.- genes
A unique set of all selected genes.
Details
The function first filters genes in the seurat.obj to retain only those
expressed in more than min.cells cells. It then intersects the filtered
gene set with provided or default lists of TFs, targets, and background genes.