Difference between revisions of "Team:Peking/Software"

Line 342: Line 342:
 
<br/><br/>
 
<br/><br/>
 
<div align="center">
 
<div align="center">
<img src="https://static.igem.org/mediawiki/2018/5/52/T--Peking--Software.png" width="300 px" height="300 px">
+
<img src="https://static.igem.org/mediawiki/2018/5/52/T--Peking--Software.png" width="300 px" height="300 px"></div>
<p>Figure. 1 The GUI of the software</p>
+
<div align="center"><p>Figure. 1 The GUI of the software</p></div>
</div>
+
 
<br/><br/>
 
<br/><br/>
  

Revision as of 10:29, 16 October 2018

Home

Software

Overview

We produce abundant fluorescence images in our experiments. However, there are many challenges in the processing of such data, which can be extremely large. Even in the case of 1 hour of imaging for 25 positions at 3 channels every minute, the microscope will yield 4500 high-resolution images. To help with the image processing in such a high throughput, we developed software for microscope image batching(Fig. 1).
(Github: https://github.com/igemsoftware2018/Team_Peking)

Figure. 1 The GUI of the software



This software was written specifically for the problems we encountered.

Naming Rules management

The first problem we met is that the file names of the exported images are generated according to fuzzy rules. Confusingly, the rules for the number of the positions, channels and times vary among files. To address the diversity of file names of images derived from different microscopes, we managed to build a naming rule manager (Fig. 2), which can create and modify the naming rule. The rules that can be made are flexible, and can contain up to 4 variables and 4 customized strings. Every variable has a customized zero filling function that can solve annoying problems such as the numbers 01 to 99. The users can also share their rules in the form of a file, which may benefit group projects. Please refer to the user manuals for more details.


Figure. 2 The GUI of naming rules manager



Grayscale and Channels Merge

After solving the problem of obtaining the files, we can now address their processing.The most important difference between fluorescence microscope images and ordinary photographs is the channel function. We needed to contrast different fluorescence channels to assess the result. However, exporting a great number of large images can be exceedingly time-consuming. Thus, if we can merge the channels or convert the images to grayscale after cropping, we will save much time. Thus, we added the functions of merging and grayscale conversion to our software first. Please refer to the user manuals for more details.





Video and Z Stacks

In living organisms, if we want to show dynamic processes using video recordings, we will need to fuse the images in the correct order to make a video. We therefore wrote functions to export video by time or by z axis. Please refer to the user manuals for more details.






Cropping

In scientific research, cropping is widely used to beautify the images and emphasize the target. To meet the need for flexible cropping, we provided two cropping methods. Drawing cropping can draw the range to be cropped while position cropping crops the given position. Please refer to the user manuals for more details. Please refer to the user manuals for more details.





Fixing Drift and Rotation

What’s more, sometime the cells float during the process of photographing, which results in the cells drifting or even rotating in the video. We will have to make a larger cropping to ensure that the cell will not move out of the field of view. To solve this problem, we wrote a function that can move the cropping frame with the cell linearly, which can fix the drifting of cells to some extent. Also, we can rotate the image using the setting before cropping, by which we may also fix the rotation of the cells. Please refer to the user manuals for more details. Please refer to the user manuals for more details.







Time Scale and Scale Plate

Eventually, the micrographs in science need information attached to them before they can be shown to the public. The time scale of every frame and the scale of the cells are the most common features. We can add the time scale information to the image by the given position, start time, interval and unit. Furthermore, the scale bar, which indicates the scale of the cells, can be added by the given position, total length, length/pixel and unit. Please refer to the user manuals for more details.













Almost all micrographs shown in our wiki and ppt were processed using this software. It helped us a lot and we wish to share it with anyone who needs it. If you want more detail, please refer to the user manuals. The software is available at:https://github.com/igemsoftware2018/Team_Peking (Github).If you want an updated version after the project freeze and after iGEM, check here: (Github),we will release all the updates there.