I have a list of kmers and their frequencies broken down like this:
TGCCAA 2
TGGACA 2
TGGGAA 2
TGGTAA 5
TGTCAA 5
TGTGAA 2
TTCCAA 13
TTGAAA 6
TTGCAA 4
TTTAAA 6
And I would like to use clustering to look at the most frequent and the most unique instances of kmers in a sample. I started off following the tutorial found here (https://www.w3schools.com/python/python_ml_hierarchial_clustering.asp#:~:text=Hierarchical%20clustering%20is%20an%20unsupervised,need%20a%20%22target%22%20variable.) using the scikit-learn python package.
However, when I go to implement my data I get a ValueError where it can not convert string to float, which seems obvious as the tutorial uses two sets of numbers and not strings.
I was wondering if there was a known way to cluster kmers and their counts or simply just strings.