Skip to content

Instantly share code, notes, and snippets.

@wdecoster
Created June 19, 2017 09:05
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wdecoster/1a86d4ba1039afebb250352fc4e502d1 to your computer and use it in GitHub Desktop.
Save wdecoster/1a86d4ba1039afebb250352fc4e502d1 to your computer and use it in GitHub Desktop.
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