Homepage of Liang Cai

My major has NEVER be computer science ...

I finished my undergraduate in biochemistry, and have a graduate training in cell biology, none of which is related to coding. The following section includes files I have used for various purposes. They are usable, but ugly and buggy. If you have questions about the image analysis I did in my papers, please feel free to send me an email.

Matlab code

ExtractCyst

coming ...

ImageJ macro

Edge Ratio new

Edge Ratio is a update of "Edge Measurement 2 macro". It will not only measure the raw values, but also give the percentage values and ratios between channels. This zip file has all the examples and a step-by-step manual. I also created a blog page for this code.

Edge Measurement 2

It is a update of the original version, which can handle any RGB tif file. You can also use this version, which will not process the region outside of the mask.
Process steps:
1. run this macro from ImageJ after you open a RGB tif file;
2. hand draw the region of interest, which will be analyzed by contour pixel extraction, and "Edit -> Selection -> Create Mask";
3. adjust the threshold, outline the whole target by using "Wand Tool", and "Edit -> Selection -> Create Mask"
4. the output is the excel file in the same directory, in which R/G/B channel is numbered in 0/1/2.

RGB 2 montage

This macro batch processes a folder of images including the sub-directory. All the images must be in RGB TIFF format. This macro will generate individual channel-view of the RGB file, and make montage of both the original and the channel-view of the image. The outputs start with M#-, which will be treated differently with original files, and will be over-written when you re-run the macro.

Channel Extend for Focus

This macro batch processes a folder of images including the sub-directory. All the images must be in stack TIFF format, which means having z-stack on each channel. This macro utilizes Extended Depth of Focus ImageJ plugin to combine z-stack images, which need you to click the Fusion button when needed.
Process steps:
1. stack de-interleaves according to the channel number;
2. use Extended Depth of Focus plugin generate fusion-view of each channel;
3. merge the first channel to red, second to green, third to blue of one RGB file.
This macro will generate the RGB merge file. The outputs start with M#-, which will be treated differently with original files, and will be over-written when you re-run the macro.

Edge Measurement

I created for barbed end assay, use RGB tif file
I Illustrated by "Expand/Shrink Selection" Michael Schmid, version 05-Nov-2004
Process steps:
1. run this macro from ImageJ after you select a RGB tif file;
2. the program will wait until a file named Mask is created. I usually just convert the copied RGB tif to 8-bit, adjust the threshold, use "Wand Tool" to have the right cell outline, and "Edit -> Selection -> Create Mask"
3. the information in the blot can be export to other programs for better quality.

Perl script

2shrna.pl

1. Use Dharmacon siDESIGN Center to find functional siRNA sequences;
2. Input the siRNA sequence here to get the stem-loop oligos;
3. Order desalted oligos from Integrated DNA Technologies or other companies;
4. Do "wet" experiments.

peptidemap21.pl

Use for tryptic peptide map prediction.
1. install perl, python;
2. install matplotlib;
3. get the amino acid sequence for analysis;
4. label the possible phosphorylation sites with “-" after;
5. run the script peptidemap to get the PNG file.
* You can change the value of $clean or $phosp to get different outputs.

01genome.pl

Convert the DNA sequence in FAA format into binary system. [A->01, C->11, G->00, and T->10]

count_ACGT.pl

Count the number and percent of A/T/G/C in a DNA sequence.

extract.pl

Extract information from a Microsoft Access Database file and reform them into a XML file.
Based on wong's code.

extract_dna.pl

Extract DNA sequence and exclude the annotations.

Find_ORFs.pl

Identify all possible open reading frames from genome DNA sequence in FAA format.

for_cterm_2.pl

Modify the HTML files generated by the program Cterm2000.

gbk2fna.pl

Convert the GBK format file into FNA format. It is useful in evolution analysis based target.gbk files from NCBI.

gbk2faa.pl

Convert the GBK format file into FAA format. It is useful in evolution analysis based target.gbk files from NCBI.

pic_lib.pl

Construct web-pages for organizing a great number of pictures. Put this PERL file in the dir where big pictures are to generate the HTML files.

PreProcess.pl

FindConserved.pl

GenOutputs.pl

IsConservedProtein.pl

Analysis the genome of procaryote. Kindly provided by Ravi and Richard.
Step 1: Download BLAST to your local PC. Install BLAST.
Step 2: Download the bacteria species' .fna, .faa, and .gbk files to a data directory. Rename the files to [BacteriaName].fna, [BacteriaName].faa, and [BacteriaName].gbk.
Step 3: Copy PERL files to the data directory. They are PreProcess.pl, FindConserved.pl, IsConservedProtein.pl and GenOutputs.pl.
Step 4: Run PreProcess.pl in the data directory to pre-process the data files.
Step 5: Run FindConserved.pl in the data directory to search for the conserved proteins. The output of this program goes into score.out file. You can customize the search by modifying FindConserved.pl program. The variables are $threshold, $sampleName, and @targetNames.
Step 6: Check the score.out file. If the results look reasonable, then run GenOutputs.pl to generate the output files.
Step 7: Use the output files to run PHYLIP to generate a taxonomy tree. And IsConservedProtein.pl can be used to make confirmation.

Maintained by cail.cn 沪ICP备13004343号-3; 沪公网安备31011002000431号; Since Aug 13 2003.