Skip to content

Commit

Permalink
Merge pull request #1 from johnne/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
johnne authored Oct 6, 2021
2 parents 83eb824 + 8518508 commit 5078ae1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="coidb",
version="0.2",
version="0.2.1",
author="John Sundh",
url="https://github.com/NBISweden/coidb/",
description="Workflow for downloading and formatting COI database",
Expand Down
3 changes: 2 additions & 1 deletion src/coidb/scripts/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def extract_species_name(value):
:return: most common species name
"""
items = value.split("Species names applied to this BIN: ")[1]
sp_names = items.split(", ")
sp_names = items.split("), ")
max_count = 0
sp_name = ""
for n in sp_names:
Expand All @@ -73,6 +73,7 @@ def extract_species_name(value):
continue
if count >= max_count:
sp_name = species
max_count = count
return sp_name


Expand Down

0 comments on commit 5078ae1

Please sign in to comment.