spatialLIBD icon indicating copy to clipboard operation
spatialLIBD copied to clipboard

Confusing warning message in spatialLIBD::gene_set_enrichment

Open boyiguo1 opened this issue 7 months ago • 0 comments

I greatly appreciate the funciton, just quickly pointing an minor issue - a confusing warning message. Gene list with n < 25 may have insufficent power for enrichment analysis followed by gene lists with more than 25 genes.

Image These genes lists are more than 25. Image

There is due to an inconsistency between the min_gene at 25, and the actually checking of the gene sets which is 200. see the following code section

https://github.com/LieberInstitute/spatialLIBD/blob/8c0fcd8f2a47e5c9a863c3ee90b9f0d367198616/R/gene_set_enrichment.R#L86-L94

I appreciate your listening, and hard work on the package!

boyiguo1 avatar May 07 '25 16:05 boyiguo1