Skip to content

Commit

Permalink
fix error, #303
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhuoqing Fang authored and Zhuoqing Fang committed Feb 13, 2025
1 parent 060d920 commit 24cc17a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gseapy/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,9 @@ def load_gmt(
"""load gene set dict"""

genesets_dict = self.load_gmt_only(gmt)
subsets = list(genesets_dict.keys())
if not subsets: # Check if empty
raise ValueError("Empty gene sets dictionary")
subsets = list(genesets_dict.keys())
entry1st = genesets_dict[subsets[0]]
gene_dict = {g: i for i, g in enumerate(gene_list)}
# Check uppercase for up to 20 sets
Expand Down

0 comments on commit 24cc17a

Please sign in to comment.