Popular recipes tagged "invert"http://code.activestate.com/recipes/tags/invert/2009-12-03T14:43:52-08:00ActiveState Code RecipesFlipdict -- python dict that also maintains a one-to-one inverse mapping (Python) 2009-12-03T14:43:52-08:00Francis Carrhttp://code.activestate.com/recipes/users/4172444/http://code.activestate.com/recipes/576968-flipdict-python-dict-that-also-maintains-a-one-to-/ <p style="color: grey"> Python recipe 576968 by <a href="/recipes/users/4172444/">Francis Carr</a> (<a href="/recipes/tags/1_to_1/">1_to_1</a>, <a href="/recipes/tags/bijection/">bijection</a>, <a href="/recipes/tags/bijective/">bijective</a>, <a href="/recipes/tags/dict/">dict</a>, <a href="/recipes/tags/injection/">injection</a>, <a href="/recipes/tags/injective/">injective</a>, <a href="/recipes/tags/inverse/">inverse</a>, <a href="/recipes/tags/invert/">invert</a>, <a href="/recipes/tags/mapping/">mapping</a>, <a href="/recipes/tags/one_to_one/">one_to_one</a>). Revision 6. </p> <p>A Flipdict is a python dict subclass that maintains a one-to-one inverse mapping. Each key maps to a unique value, and each value maps back to that same key. Each instance has a "flip" attribute to access the inverse mapping.</p> Invert the well ids from a 96-well plate (Python) 2009-09-04T02:36:01-07:00Kevinhttp://code.activestate.com/recipes/users/4171628/http://code.activestate.com/recipes/576895-invert-the-well-ids-from-a-96-well-plate/ <p style="color: grey"> Python recipe 576895 by <a href="/recipes/users/4171628/">Kevin</a> (<a href="/recipes/tags/96/">96</a>, <a href="/recipes/tags/biology/">biology</a>, <a href="/recipes/tags/id/">id</a>, <a href="/recipes/tags/invert/">invert</a>, <a href="/recipes/tags/number/">number</a>, <a href="/recipes/tags/sequencing/">sequencing</a>, <a href="/recipes/tags/well/">well</a>). Revision 2. </p> <p>Due to a mixup in processing, I require to invert the order of the well numbers from a 96-well plate</p>