LEVERSC: Cross-Platform Scriptable Multichannel 3-D Visualization for Fluorescence Microscopy Images
LEVERSC is a cross-platform multichannel 3-D visualization tool for volumetric fluorescent images such as those produced by confocal or light-sheet microscopy.
Installation
You must install both the leversc app and the client. First, install the LEVERSC app for your operating system. Next, follow the instructions for integrating LEVERSC into your client of choice (ImageJ, Python, or MATLAB).
App Install
MacOS App Install
- Download and run the MacOS installer.
Windows App Install
- Download and run the Windows installer.
Linux App Manual Install
- Download the Linux Appimage.
- Symlink the appimage file to a folder in
$PATH
(e.g.~/.local/bin
).ln -fs /path/to/leverjs-*.AppImage ~/.local/bin/leverjs
Client Install
ImageJ Plugin
-
First, install the leversc app
-
Download the ImageJ plugin.
-
Copy the plugin jar file to the
plugins/3D
folder in your ImageJ executable directory. -
The plugin will appear in the ImageJ Plugins menu as
Plugins->3D->Leversc Viewer
Note: If using Fiji (highly recommended) then you may wish to create the
3D
subfolder inplugins
and place the jar file within, as it can make it easier to find. Alternatively, the jar file can be placed directly in theplugins
folder and will be listed in the Fiji menu asPlugins->Leversc Viewer
.
Python Module
- Download the Python module directory (Select the download icon and choose
Download this directory
). - Extract the downloaded Python folder to a convenient location.
- Add the folder to your
PYTHONPATH
environment variable so thatimport leversc
statements can automatically find the LEVERSC module
MATLAB Class
- Download the MATLAB class directory (Select the download icon and choose
Download this directory
). - Extract the downloaded MATLAB class and support folders to a convenient location.
- Add the folder to your MATLAB path, for example by adding the statement
addpath('path/to/extracted/folder')
to yourstartup.m
file.
Basic Usage Examples
Fiji/ImageJ
-
Download the sample OME TIFF image.
NOTE: Fiji/ImageJ will not be able to open the HDF5 format sample image that ships with LEVERSC. Be sure to use the OME TIFF.
-
Choose
Open...
in Fiji and navigate to the downloaded image (or another dataset). -
Once the image has loaded, select
Plugins->3D->Leversc Viewer
, this should launch the LEVERSC program and load the image data for the selected frame.
Python
- Download or clone the full LEVERSC repository
- Navigate to the LEVERSC
src/Python
folder. - Run:
python test_leversc.py
.
MATLAB
- Download or clone the full LEVERSC repository
- Launch MATLAB and navigate to the leversc
src/MATLAB
folder. - In the MATLAB terminal, run:
sampleRotateVolumeMovie
.
Debugging Tips
- Be sure your firewall isn't blocking the LEVERSC visualization tool from communicating. This should not be an issue in most cases. With the LEVERSC viewer running, open a web browser window. Enter 'http://localhost:3001/info'. If you get an error, check your firewall and be sure there are no LEVERSC specific rules, and that your localhost (loopback) connections are enabled.
- Examine any errors or warnings from the LEVERSC visualization tool. From the View menu, choose 'toggle developer tools'. Select console. Any debug output here can be submitted as part of a bug report.
Bug Reporting
Please submit any bugs or issues via email to andrew.r.cohen 'at' drexel.edu. Mark the subject line as 'leversc bug report'. Include your operating system and version, what client you are using (e.g. MATLAB, Python, ImageJ), and any debug output.
Further Details
Details of the LEVERSC tool architecture and API can be found in the online API documentation. A detailed usage example is available here, and a step-by-step guide for implementing a plugin to communicate with LEVERSC through the API is provided here.
The source code for LEVERSC integrations are available in this repository (ImageJ plugin, Python module, MATLAB class).
Additionally, the node.js and webgl source code for the LEVERJS/LEVERSC tool, as well as build instructions are available in the main leverjs repository.