User:Bohao Liu/Notebook/Research/2014/04/30: Difference between revisions
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> </html>Next entry<html><img src="/images/5/5c/Resultset_next.png" border="0" /></html> |
HOG Experiments : wild - type controls and Image Analysis ParametersObjective
Experiment
Settings
Image Analysisp
|