Skip to content

Commit cad5729

Browse files
committed
update test note and 5mer naming to 4mer
1 parent 545a2e0 commit cad5729

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/from_msa/test_cluster_sequences.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,10 @@ def test_GivenAllSequencesSmallEditDist_ReturnsNoClustering(self):
383383
self.assertEqual(expected_clustering, result)
384384

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

0 commit comments

Comments
 (0)