Manipulating Results Table

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Manipulating Results Table

nmichel
Hi,

I am stuck a few days now trying to manipulate the results table. I  
have managed to speparate the nucleus from the cytoplasm of a cell and  
I have measurements for the intensity of each one. I have a set of  
measurments for different cells from a picture.

I know how to add a row but I am trying to change the format of the  
table into something like this:

          Cytoplasm      Nucleus
Cell 1  (measurement) (measurement)
Cell 2  (measurement) (measurement)

and so on... How do I move the results in a format like this? And  
would it be possible to add two more rows below the nucleus and the  
cytoplasm row, showing the min and area for each one?

Thank you very much in advance

Nicholas

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Manipulating Results Table

Pariksheet Nanda
On Fri, Nov 2, 2012 at 9:38 AM, Nikolaos Michelarakis
<[hidden email]> wrote:

> I am trying to change the format of the table
> into something like this:
>
>          Cytoplasm      Nucleus
> Cell 1  (measurement) (measurement)
> Cell 2  (measurement) (measurement)
>
> and so on... How do I move the results in a format like this? And would it
> be possible to add two more rows below the nucleus and the cytoplasm row,
> showing the min and area for each one?
>

Use  "\\Headings:<tab-delimited list>" print command.  I found it
described in the TableTricks.txt macro example, linked at the end of
the print() macro function documentation:
http://imagej.nih.gov/ij/macros/TableTricks.txt
Below is my interpretation of what you are asking for:

table_name = "[Results Table]";
run("New... ", "name="+table_name+" type=Table");
t = table_name;
print(t, "\\Headings:Cell Cytoplasm Nucleus");
print(t, "1 123 456");
print(t, "Min: 45 23");
print(t, "Max: 56 34");
print(t, "2 789 123");
print(t, "Min: 78 34");
print(t, "Max: 89 45");


> Nicholas

Pariksheet

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html