将孔号转换为96孔板上的标识符

Lee*_*nde 2 python bioinformatics

在96孔板中有8个柱(A,B,......)和12个柱(01 ... 12); 所以盘子看起来像这样:

A01 A02 ... A12
B01 B02 ... B12
C01 ...
...
H01 ..
Run Code Online (Sandbox Code Playgroud)

目前我已将这些板块识别为:

 1 2 3 4 ... 12
 13 14 15 ...24
 ..
 84 ...      96
Run Code Online (Sandbox Code Playgroud)

如何编写函数wellnumber2wellidentifier将数字索引转换为顶部使用的格式?例如,好的1将返回A01,13并将返回B01.

Ign*_*ams 9

哦,当然,去为基础1,为什么不...

'ABCDEFGH'[(num - 1) // 12] + '%02d' % ((num - 1) % 12 + 1,)
Run Code Online (Sandbox Code Playgroud)