Wednesday, January 7, 2015

Using pyLSM to read LSM files in Python

The good people at Janelia have provided the fly community with an enormous wealth of data in the form of confocal stacks of their GAL4 collection. There are many excellent open source tools to work with such image collections (e.g. imagej and fluorender), but reading the stacks directly into Python for automated analysis can be difficult. Below I'll describe my preferred method.

First, download the zipped PyLSM folder from here. (Linked to from this page.)

Next, unzip the folder, navigate inside it at a command prompt, and run

sudo python setup.py install

The website for this python module is http://www.freesbi.ch/en/pylsm and there is some documentation here.

I haven't tried out the gui yet, but here is a snippet of code that should open a Janelia stack.

No comments: