Skip to content

Commit

Permalink
Fixed bug in name2num when names are null
Browse files Browse the repository at this point in the history
  • Loading branch information
avsastry authored Feb 28, 2022
1 parent ff46bcc commit c333004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pymodulon/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@ def name2num(self, gene):

final_list = []
for g in gene_list:
g_names = gene_table.gene_name.apply(lambda x: x.casefold())
g_names = gene_table.gene_name.str.casefold()
loci = gene_table[g_names == g.casefold()].index

# Ensure only one locus maps to this gene
Expand Down

0 comments on commit c333004

Please sign in to comment.