Kmers
4 problems from Rosalind — Bioinformatics Textbook Track. Press Run on any block to execute it in your browser.
BA3A — Generate the k-mer Composition of a String
solved Problem statement
BA1K — Generate the Frequency Array of a String
solved Problem statement
Indexed by PatternToNumber, so it lists every possible k-mer including those that never occur. That is what separates it from a tally.
BA1L — Implement PatternToNumber
solved Problem statement
k-mers in lexicographic order are the base-4 numbers with A=0, C=1, G=2, T=3.
BA1M — Implement NumberToPattern
solved Problem statement
The inverse of BA1L.