Skip to content

Commit

Permalink
update test note and 5mer naming to 4mer
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhall88 committed Jan 27, 2021
1 parent 545a2e0 commit cad5729
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/from_msa/test_cluster_sequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,10 @@ def test_GivenAllSequencesSmallEditDist_ReturnsNoClustering(self):
self.assertEqual(expected_clustering, result)

def test_GivenManyVeryDifferentSequences_EachSeqInOwnCluster(self):
# all 256 distinct DNA 5-mers.
# We want each in one cluster, but do not want to run clustering 255 times
all_5mers = list(map("".join, product(standard_bases, repeat=4)))
alignment = make_alignment(all_5mers)
# all 256 distinct DNA 4-mers.
# We want clustering to keep looking for clusters, and stop at MAX_CLUSTERS
all_4mers = list(map("".join, product(standard_bases, repeat=4)))
alignment = make_alignment(all_4mers)
result = kmeans_cluster_seqs_in_interval([0, 4], alignment, 4)
self.assertEqual(len(result), MAX_CLUSTERS)

Expand Down

0 comments on commit cad5729

Please sign in to comment.