<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to find tool that processed max number of cells in batch and place that tool ID in a new column. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-find-tool-that-processed-max-number-of-cells-in-batch-and/m-p/644010#M84091</link>
    <description>&lt;P&gt;I have batches of cells that mostly get processed on one alignment tool. Occasionally a batch will be processed over a few alignment tools.&lt;/P&gt;&lt;P&gt;I want to find the tool that processed the maximum number of cells in a batch and then add a column (MAX AL)at the end with that alignment tool ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jun 2023 12:19:53 GMT</pubDate>
    <dc:creator>fionaweston</dc:creator>
    <dc:date>2023-06-20T12:19:53Z</dc:date>
    <item>
      <title>How to find tool that processed max number of cells in batch and place that tool ID in a new column.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-tool-that-processed-max-number-of-cells-in-batch-and/m-p/644010#M84091</link>
      <description>&lt;P&gt;I have batches of cells that mostly get processed on one alignment tool. Occasionally a batch will be processed over a few alignment tools.&lt;/P&gt;&lt;P&gt;I want to find the tool that processed the maximum number of cells in a batch and then add a column (MAX AL)at the end with that alignment tool ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 12:19:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-tool-that-processed-max-number-of-cells-in-batch-and/m-p/644010#M84091</guid>
      <dc:creator>fionaweston</dc:creator>
      <dc:date>2023-06-20T12:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to find tool that processed max number of cells in batch and place that tool ID in a new column.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-tool-that-processed-max-number-of-cells-in-batch-and/m-p/644013#M84092</link>
      <description>&lt;P&gt;adding table.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 12:22:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-tool-that-processed-max-number-of-cells-in-batch-and/m-p/644013#M84092</guid>
      <dc:creator>fionaweston</dc:creator>
      <dc:date>2023-06-20T12:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to find tool that processed max number of cells in batch and place that tool ID in a new column.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-tool-that-processed-max-number-of-cells-in-batch-and/m-p/644035#M84097</link>
      <description>&lt;P&gt;One option&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$DOWNLOADS/ALIGNMENT TOOL.jmp");

// Get AL cols
al_cols = Filter Each({col_name}, dt &amp;lt;&amp;lt; Get Column Names("String"), 
	!IsMissing(Regex(col_name, "^AL\d+"));
);

// create new collector column
new_col = dt &amp;lt;&amp;lt; New Column("MAX AL", Character, Nominal);

For Each Row(dt,
	max_al_idx = Loc Max(dt[Row(), al_cols]); // get idx based on max value
	al_name = al_cols[max_al_idx]; // find AL name with the idx
	new_col[Row()] = al_name; // set value
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Jun 2023 13:12:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-tool-that-processed-max-number-of-cells-in-batch-and/m-p/644035#M84097</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-06-20T13:12:18Z</dc:date>
    </item>
  </channel>
</rss>

