Skip to content

Commit fed78ee

Browse files
committed
updated readme
1 parent b4d12ad commit fed78ee

File tree

1 file changed

+41
-61
lines changed

1 file changed

+41
-61
lines changed

README.rst

Lines changed: 41 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -46,60 +46,14 @@ You string these commands into full protocols that anyone with Opentrons can run
4646
p200.dispense(50, plate[2])
4747
p200.dispense(50, plate[3])
4848
49-
If you wanted to do enough times to fill a 96 well plate, you could write it like this:
49+
If you wanted to do this 96 times, you could write it like this:
5050

5151
.. code-block:: python
5252
53-
#define how much volume to dispense in each well
54-
dispense_vol = 50
55-
56-
for i in range(96):
57-
if p200.current_volume < dispense_vol:
58-
p200.aspirate(trough[1])
59-
p200.dispense(dispense_vol, plate[i])
60-
61-
Hello World
62-
-----------
63-
64-
Below is a short protocol that will pick up a tip and use it to move 100ul volume across all the wells on a plate:
65-
66-
.. code-block:: python
67-
68-
# First, import opentrons API modules
69-
from opentrons import Robot
70-
from opentrons import containers, instruments
71-
72-
# Initialized Robot variable
73-
robot = Robot()
74-
75-
# Load a tip rack and assign it to a variable
76-
tiprack = containers.load(
77-
'tiprack-200ul', # container type
78-
'A1', # slot
79-
'tiprack' # user-defined name
80-
)
81-
# Load a plate
82-
plate = containers.load('96-flat', 'B1', 'plate')
83-
84-
# Initialize a pipette
85-
p200 = instruments.Pipette(
86-
axis="b"
87-
)
88-
89-
p200.set_max_volume(200) # volume calibration, can be called whenever you want
90-
p200.pick_up_tip(tiprack[0]) # pick up tip from position 0 in a tip rack
91-
92-
# loop through 95 wells, transferring to the next
93-
for i in range(95):
94-
p200.aspirate(100, plate[i])
95-
p200.dispense(plate[i + 1]).blow_out().touch_tip()
96-
97-
# return tip to back to position 0 in a tip rack
98-
p200.return_tip()
99-
# simulate a protocol run on a virtual robot
100-
robot.simulate()
101-
# robot.connect('/dev/tty.usbserialNNNN') # connect to the robot
102-
# robot.run() # to run on a physical robot
53+
for i in range(96):
54+
if p200.current_volume < 50:
55+
p200.aspirate(trough[1])
56+
p200.dispense(50, plate[i])
10357
10458
Basic Principles
10559
----------------
@@ -111,8 +65,8 @@ Basic Principles
11165
p200.aspirate(100, plate['A1']).dispense(plate['A2'])
11266
11367
Is exactly what you think it would do:
114-
* Take P200 pipette
115-
* Aspirate 100 uL of liquid from well A1 on your plate
68+
* Take p200 pipette
69+
* Aspirate 100 uL from well A1 on your plate
11670
* Dispense everything into well A2 on the same plate
11771

11872
**Permissive**: everyone's process is different and we are not trying to impose our way of thinking on you. Instead, our API allows for different ways of expressing your protocol and adding fine details as you need them.
@@ -122,7 +76,7 @@ For example:
12276
12377
p200.aspirate(100, plate[0]).dispense(plate[1])
12478
125-
while using 0 or 1 instead of 'A1' and 'A2' will do just the same.
79+
while using 0 or 1 instead of 'A1' and 'B1' will do just the same.
12680

12781
or
12882

@@ -132,6 +86,39 @@ or
13286
13387
will aspirate 100, from the bottom of a well.
13488

89+
Hello World
90+
-----------
91+
92+
Below is a short protocol that will pick up a tip and use it to move 100ul volume across all the wells on a plate:
93+
94+
.. code-block:: python
95+
96+
from opentrons import robot
97+
from opentrons import containers, instruments
98+
99+
tiprack = containers.load(
100+
'tiprack-200ul', # container type
101+
'A1', # slot
102+
'tiprack' # user-defined name
103+
)
104+
105+
plate = containers.load('96-flat', 'B1', 'plate')
106+
107+
p200 = instruments.Pipette(
108+
axis="b",
109+
max_volume=200
110+
)
111+
112+
p200.pick_up_tip(tiprack[0])
113+
114+
for i in range(95):
115+
p200.aspirate(100, plate[i])
116+
p200.dispense(plate[i + 1])
117+
118+
p200.return_tip()
119+
120+
robot.simulate()
121+
135122
Installing Opentrons API
136123
------------------------
137124
If you are just starting with Python it is recommended to install Jupyter notebook to run Opentrons API. Please refer to `Setting up Opentrons API`_ for detailed instructions.
@@ -141,10 +128,3 @@ If you are familiar with python and comfortable running ``pip``, you can install
141128
.. code-block:: bash
142129
143130
pip install opentrons
144-
145-
What's next?
146-
---------------
147-
* Start with `Setting up Opentrons API`_ in `Jupyter <http://jupyter.org/>`_.
148-
* Write your first `Hello World API Protocol`_.
149-
* Learn some common `Tips and Tricks for API Liquid Handling`_.
150-
* Discover `Full API Documentation`_ for advanced API protocol writing.

0 commit comments

Comments
 (0)