This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process to navigate simulator directories. | |
$ cd ~/Library/Developer/CoreSimulator/Devices | |
Directories listed correspond to the different devices available. | |
These names can change. | |
The easiest way to find which directories correspond to the appropriate device is to | |
search for all devices and find the correct form factor. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def HammingDistance(str1, str2): | |
count = 0 | |
for i in range(len(str1)): | |
if str1[i] != str2[i]: | |
count += 1 | |
return count | |
def neighbors(kmer, distance): | |
k = len(kmer) | |
if k == 0: |