Skip to content

Commit

Permalink
fixed py3 map() bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhuoqing Fang committed Jul 11, 2017
1 parent a7d5a5c commit f3ab348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gseapy/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def gsea_gmt_parser(gmt, min_size = 3, max_size = 1000, gene_list=None):
raise Exception('Error fetching enrichment results, check internet connection first.')

genesets_dict = { line.split("\t")[0]:
map(lambda x: x.split(",")[0], line.split("\t")[2:-1])
list(map(lambda x: x.split(",")[0], line.split("\t")[2:-1]))
for line in response.iter_lines(chunk_size=1024, decode_unicode='utf-8')}


Expand Down

0 comments on commit f3ab348

Please sign in to comment.