Skip to content

Confusing warning message in spatialLIBD::gene_set_enrichment #111

@boyiguo1

Description

@boyiguo1

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

min_genes <- 25
if (any(geneList_length < min_genes)) {
warning(
"Gene list with n < ",
min_genes,
" may have insufficent power for enrichment analysis: ",
paste(names(geneList_length)[geneList_length < 200], collapse = " ,")
)
}

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions