Skip to content
Snippets Groups Projects
Commit 3d84f49b authored by Robert Bossy's avatar Robert Bossy
Browse files

add dispatch no-number

parent e6dff400
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,8 @@ class BacDiveEntry:
return None
def _dispatch(self, ncbi_taxa):
if len(self.strain_number) == 0:
return 'no-number', None
for n in itertools.chain(self.strain_number, self.complete_name):
taxid = self._match(ncbi_taxa, n, 'no rank')
if taxid is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment