Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
cparsania committed Oct 10, 2024
1 parent ac43c4d commit adea9b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/rnaseq_related.R
Original file line number Diff line number Diff line change
Expand Up @@ -1684,8 +1684,10 @@ enrichMsigDB <- function(gene_list,
toType="ENTREZID")


msigdb_t2g <- dplyr::bind_rows(msigdb_t2g,tibble::tibble(gs_name = "UN_ANNOTATED",
entrez_gene = bg_to_entrez$ENTREZID[bg_to_entrez$ENTREZID %in% msigdb_t2g$entrez_gene] %>% as.numeric()))
# msigdb_t2g <- dplyr::bind_rows(msigdb_t2g,tibble::tibble(gs_name = "UN_ANNOTATED",
# entrez_gene = bg_to_entrez$ENTREZID[!bg_to_entrez$ENTREZID %in% msigdb_t2g$entrez_gene] %>% as.numeric()))

msigdb_t2g <- msigdb_t2g %>% dplyr::filter(entrez_gene %>% dplyr::filter(bg_to_entrez$ENTREZID))


}
Expand Down

0 comments on commit adea9b7

Please sign in to comment.