Skip to content

Commit

Permalink
bf scGOEnrichment
Browse files Browse the repository at this point in the history
  • Loading branch information
vertesy committed Jun 19, 2024
1 parent 1c01d56 commit 79404bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/Seurat.Utils.Visualization.R
Original file line number Diff line number Diff line change
Expand Up @@ -3171,13 +3171,14 @@ scGOEnrichment <- function(genes, universe = NULL,
is.character(ont)
)

if ( is.null(genes) | length(genes) == 0 ) return(NULL)

# check.gene.symbols
if (check.gene.symbols) {
x <- checkGeneSymbols(genes, species = "human")
genes <- x[x[ , "Approved"] , 1]
}


message("Performing enrichGO() analysis...")
message(length(genes), " approved genes of interest, in ", length(universe), " background genes.")

Expand Down

0 comments on commit 79404bc

Please sign in to comment.