Skip to content

Commit

Permalink
add assert to catch bad vocab. See #27
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtritt committed Mar 1, 2021
1 parent 0ff57db commit 343f419
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/exabiome/gtdb/prepare_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ def func(row):
skbio_cls = DNA

vocab = np.array(list(vocab_it.characters()))
if not args.protein:
np.assert_array_equal(vocab, list('ACYWSKDVNTGRWSMHBN'))

sequence = list()
names = list()
Expand Down

0 comments on commit 343f419

Please sign in to comment.