CIDARLAB / pigeon

BSD 3-Clause "New" or "Revised" License
2 stars 4 forks source link

KeyError: 'arclength' #1

Closed ryu-bu closed 4 years ago

ryu-bu commented 4 years ago

Hi, I am trying the this code

5 EX P pLlacO1 4 = BBm 14 c tetR-lite 1 = BB 14 T T1 6 = BB 14 P lambdaPr 4 = BBm 14 c lacI-lite 1 = BB 14 T T1 6 = BB 14 P pLtetO1 4 = BBm 14 c lambdacI-lite 1 = BB 14 T T1 6 <5 SP v pSB1A2

but I keep getting the following error message:

Traceback (most recent call last): File "cmdline.py", line 40, in main() File "cmdline.py", line 33, in main parser.parseAndGenerateImage(data) File "/Users/ryu/Desktop/pigeon/Pigeon.py", line 46, in parseAndGenerateImage start, end = dr.renderDNA(axis, design, part_renderers, regs = arcs, reg_renderers=dr.std_reg_renderers()) File "/Users/ryu/Desktop/pigeon/dnaplotlib.py", line 3192, in renderDNA regs.sort(key=lambda x: x['arclength'], reverse=False) File "/Users/ryu/Desktop/pigeon/dnaplotlib.py", line 3192, in regs.sort(key=lambda x: x['arclength'], reverse=False) KeyError: 'arclength'

The code works with http://pigeon.synbiotools.org/ . Could you fix this error? This is for the integration with Raven. Thanks.

rkrishnasanka commented 4 years ago

Okay, I fixed this to some extent in 2e52e1e6b03d968aa725626486f0e07852e780bd :