Created
June 19, 2017 09:05
-
-
Save wdecoster/1a86d4ba1039afebb250352fc4e502d1 to your computer and use it in GitHub Desktop.
This file contains 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 makeLayout(): | |
''' | |
Make the layout of the MinION flowcell, based on https://bioinformatics.stackexchange.com/a/749/681 | |
''' | |
layoutlist = [] | |
for i, j in zip([33, 481, 417, 353, 289, 225, 161, 97], [8, 456, 392, 328, 264, 200, 136, 72]): | |
for n in range(4): | |
layoutlist.append(list(range(i+n*8, (i+n*8)+8, 1)) + list(range(j+n*8, (j+n*8)-8, -1))) | |
return np.array(layoutlist) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment