Skip to content

Commit

Permalink
hotfix after changes in fgsea stricter checks
Browse files Browse the repository at this point in the history
  • Loading branch information
federicomarini committed Oct 6, 2024
1 parent 67e5c4a commit 02f8533
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/testthat/setuptests_genetonic.R
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,12 @@ sorted_genes <- sort(
decreasing = TRUE
)

sorted_genes_noNA <- sort(sorted_genes[!is.na(names(sorted_genes))], decreasing = TRUE)
sorted_genes_noNA_nodupes <- sorted_genes_noNA[!duplicated(names(sorted_genes_noNA))]

suppressWarnings({
gsego_IFNg_vs_naive <- gseGO(
geneList = sorted_genes,
geneList = sorted_genes_noNA_nodupes,
ont = "BP",
OrgDb = org.Hs.eg.db,
keyType = "SYMBOL",
Expand Down

0 comments on commit 02f8533

Please sign in to comment.