kalekundert / stepwise

Modular, command-line scientific protocols
GNU General Public License v3.0
3 stars 0 forks source link

Automatically wrap long lines in reaction tables. #28

Closed kalekundert closed 2 years ago

kalekundert commented 4 years ago

For example, when making 16 plasmids at once, the primer list gets very long:

Reagent                                                                           Stock    Volume
─────────────────────────────────────────────────────────────────────────────────────────────────
water                                                                                     9.50 µL
o187,o166,o168,o168,o168,o172,o172,o172,o173,o174,o176,o171,o177,o179,o181,o183  100 µM   0.25 µL
o156,o167,o167,o169,o170,o167,o169,o170,o170,o175,o167,o167,o178,o180,o182,o184  100 µM   0.25 µL
─────────────────────────────────────────────────────────────────────────────────────────────────

tabulate() already supports newlines, so I would need to:

kalekundert commented 4 years ago

Regarding breaking on commas: I could change my scripts to use spaces when concatentating reagent names like that.

kalekundert commented 4 years ago

One problem is that tabulate() works out column widths after resolving newlines. This makes sense (columns widths depend how the lines break), but it means that this feature won't be trivial to implement.

kalekundert commented 3 years ago

An alternative solution (which ties in with #35) is to allow reaction tables to indicate which column(s) should be truncated. This would still mean some information is lost, but the most important information (i.e. the volumes) would not be.

kalekundert commented 2 years ago

I'm not planning to address this issue anymore, for two reasons: