User:Bohao Liu/Notebook/Research/2014/04/30: Difference between revisions

From OpenWetWare
< User:Bohao Liu‎ | Notebook‎ | Research‎ | 2014‎ | 04
Jump to navigationJump to search
Line 34: Line 34:
**<code>for /l %x in (1,1,5) do MD well%x</code>
**<code>for /l %x in (1,1,5) do MD well%x</code>
**<code>for /l %x in (1,1,5) do MOVE col*t*xy%xc*.tif well%x</code>
**<code>for /l %x in (1,1,5) do MOVE col*t*xy%xc*.tif well%x</code>
<code>//Sets Measurements
run("Set Measurements...", "area mean centroid redirect=None decimal=3");
//Asks for directory
dir = getDirectory("Choose a Directory");
folderList = getFileList(dir);
for (i = 0; i < folderList.length; i++)
{
if (endsWith(folderList[i], "/"))
{
wellList = getFileList(dir+folderList[i]);
for (j = 0; j < wellList.length; j++)
{
fileList = getFileList(dir+folderList[i]+wellList[j]);
//Now starts actual analysis
filename = dir+folderList[i]+wellList[j]+fileList[0];
//Opens image sequence, c1 is mCherry
run("Image Sequence...", "open=filename starting=1 increment=1 scale =100 file=[] or=c1. sort");
run("Subtract Background...", "rolling=50 stack");
setAutoThreshold("Otsu dark");
run("Threshold...");
run("Convert to Mask", "  black");
run("Erode","stack");
run("Despeckle","stack");
run("Analyze Particles...", "size=25-100 circularity=0.50-1.00 show=Nothing add stack");
close();
run("Image Sequence...", "open=filename starting=1 increment=1 scale =100 file=[] or=c2. sort");
run("Subtract Background...", "rolling=50 stack");
roiManager("Measure");
//CHANGE ME******************
saveName = "C:\Users\NIKON\Documents\Bohao\HOG\Results"+substring(folderList[i],0,lengthOf(folderList[i])-1)+substring(wellList[j],0,lengthOf(wellList[j])-1)+"nuc.txt";
saveAs("Results", saveName);
roiManager("Reset");
run("Clear Results");
close();
}
}
}
</code>





Revision as of 09:20, 30 April 2014

Project name <html><img src="/images/9/94/Report.png" border="0" /></html> Main project page
<html><img src="/images/c/c3/Resultset_previous.png" border="0" /></html>Previous entry<html>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</html>Next entry<html><img src="/images/5/5c/Resultset_next.png" border="0" /></html>

HOG Experiments : wild - type controls and Image Analysis Parameters

Objective

  • Make sure I can do HOG experiments again
  • Confirm Wild-type values and also expand the frequencies tested
  • Confirm the protocol: specifically that waiting 30 minutes between each set of oscillations is enough to ensure that the cells return to normal
  • See if the cells are growing

Experiment

  • Cells OD @ 10 = .453
  • Started flow at 10:45 am
  • Started experiment at 11:15 am

Settings

  • 30 second half-period
  • 5 second imaging = 6 images per cycle
  • 5 minute total time = 5 complete periods
  • ND=2
  • mCherry = 200 mS exposure
  • GFP = 200 mS exposure
  • DIC

Image Analysisp

  • for windows sorting :
    • for /l %x in (1,1,5) do MD well%x
    • for /l %x in (1,1,5) do MOVE col*t*xy%xc*.tif well%x


//Sets Measurements run("Set Measurements...", "area mean centroid redirect=None decimal=3");

//Asks for directory dir = getDirectory("Choose a Directory"); folderList = getFileList(dir);

for (i = 0; i < folderList.length; i++) { if (endsWith(folderList[i], "/")) { wellList = getFileList(dir+folderList[i]); for (j = 0; j < wellList.length; j++) { fileList = getFileList(dir+folderList[i]+wellList[j]);

//Now starts actual analysis filename = dir+folderList[i]+wellList[j]+fileList[0];

//Opens image sequence, c1 is mCherry run("Image Sequence...", "open=filename starting=1 increment=1 scale =100 file=[] or=c1. sort"); run("Subtract Background...", "rolling=50 stack"); setAutoThreshold("Otsu dark"); run("Threshold..."); run("Convert to Mask", " black"); run("Erode","stack"); run("Despeckle","stack"); run("Analyze Particles...", "size=25-100 circularity=0.50-1.00 show=Nothing add stack"); close(); run("Image Sequence...", "open=filename starting=1 increment=1 scale =100 file=[] or=c2. sort"); run("Subtract Background...", "rolling=50 stack"); roiManager("Measure");

//CHANGE ME****************** saveName = "C:\Users\NIKON\Documents\Bohao\HOG\Results"+substring(folderList[i],0,lengthOf(folderList[i])-1)+substring(wellList[j],0,lengthOf(wellList[j])-1)+"nuc.txt"; saveAs("Results", saveName); roiManager("Reset"); run("Clear Results"); close(); }

} }