Tuesday, July 26, 2011

Microfluidic tubing connections

There are many ways to interface from the macroscale (tubing, reservoirs, etc) to a microfluidic device.  Commonly, this involves flexible tubing and rigid hollow pins that insert into the PDMS device.

We typically use the following materials:

Note that the ID of the tubing is less than that of the pin, so I heat the tubing up (brief sweep above a flame until soft), open with fine forceps, and wiggle in the pin. As it cools it shrinks and grabs tightly on the pin. Best is to insert ~1/3 of the pin.

Monday, July 11, 2011

Video formats

Tracking code currently works with videos that are in .AVI format and compressed with Indeo Video 5 (or uncompressed).  Videos should be 24-bit color depth.

If your video is in another format, many free video converters are available online.  One that I use regularly is VideoMach.  Note that in this program, the video format (or wrapper), in this case .AVI, is chosen when selecting a filename for the converted video.  The compression codec (Indeo Video 5, or IV50) is selected separately under the video tab.

Getting started with the Arena Worm Tracker

For getting started with the software package, I've added a sample raw video file and the results of tracking on the ArenaWormTracker site.  The video shows wild-type (N2) C. elegans navigating a microfluidic arena and responding to two stripes of isoamyl alcohol over 15 mins.

Get the sample video and analysis here. Warning: it's a big file (>70Mb, .zip).

Once the tracker suite is installed, begin analysis by running TrackerScript.

A frame of the video should appear.  The following user inputs are required, according to the prompts shown in the figure:
  1. Click a region outside the arena to record background light intensity for each frame.
  2. Drag a box around the arena to indicate its position.  Choose the left/right edges to exclude at least one whole circular post, to exclude behaviors when the animal touches the upstream/downstream barriers.  Choose upper/lower boundaries just outside of the border.  The selected region turns red.  Click once inside the red box to confirm; otherwise, click outside and drag a new box.
  3. Get scaling.  The sample video shows a 22 mm vertical device.  Pick two points on the upper and lower boundaries of the arena where they are horizontal (for example, upper-left and lower-left corners).

Analysis should begin and the figure should update every 60 frames, showing the current frame and tracked animals (blue + indicates centroid; red line is prior path).

At the end of analysis, a single multipage PDF should appear in the same folder as the raw video.

Version 1.0 scripts were tested on Win XP and Windows 7 running MATLAB v7.0.1.