From 6703bbe9c7ee9961649acd4fd74c7cbd74ce3da5 Mon Sep 17 00:00:00 2001 From: Dillon Barker Date: Mon, 3 Jun 2019 11:38:35 -0500 Subject: [PATCH] fix bug preventing update of final sequence --- fsac/__init__.py | 2 +- fsac/update.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/fsac/__init__.py b/fsac/__init__.py index fc79d63..020ed73 100644 --- a/fsac/__init__.py +++ b/fsac/__init__.py @@ -1 +1 @@ -__version__ = '0.2.1' +__version__ = '0.2.2' diff --git a/fsac/update.py b/fsac/update.py index 12ac3e9..92e8734 100644 --- a/fsac/update.py +++ b/fsac/update.py @@ -128,6 +128,12 @@ def get_known_alleles(alleles_fasta: Path) -> Dict[str, str]: current_sequence.append(current_line) + else: + + sequence = ''.join(current_sequence) + + known_alleles[sequence] = current_header + return known_alleles