<?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 Re: FCS Files: JMP opens them, but where does the header information go? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/FCS-Files-JMP-opens-them-but-where-does-the-header-information/m-p/314727#M56671</link>
    <description>&lt;P&gt;I took the code a bit further to unpick some of the fields in the header&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;fcsFile = "my-fcs.fcs";
str = loadtextfile(fcsFile);
// extract header
pat = "FCS" + PatArb()&amp;gt;&amp;gt;hdr + "$BEGINANALYSIS";
isMatch = PatMatch(str,pat);
if (!isMatch,
	throw("oops")
);
// extract selected header info
system = ""; 	// computer system
pat = "$SYS" + "|" + PatArb()&amp;gt;&amp;gt;system + "|";
PatMatch(hdr,pat);
cytometer = ""; // type of cytometer
pat = "$CYT" + "|" + PatArb()&amp;gt;&amp;gt;cytometer + "|";
PatMatch(hdr,pat);
startTime = ""; // start time
pat = "$BTIM" + "|" + PatArb()&amp;gt;&amp;gt;startTime + "|";
PatMatch(hdr,pat);
endTime = ""; // end time
pat = "$ETIM" + "|" + PatArb()&amp;gt;&amp;gt;endTime + "|";
PatMatch(hdr,pat);

show(system,cytometer,startTime,endTime);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For my test data file this gives&lt;/P&gt;
&lt;PRE&gt;system = "Summit V5.2.0.7477 / Windows NT Version 5.1 / Intel Processor";
cytometer = "MoFlo XDP";
startTime = "12:34:07";
endTime = "12:38:15";&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used some field identifiers based on this documentation&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.bioconductor.org/packages/release/bioc/vignettes/flowCore/inst/doc/fcs3.html#3.1" target="_blank"&gt;https://www.bioconductor.org/packages/release/bioc/vignettes/flowCore/inst/doc/fcs3.html#3.1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 18:30:03 GMT</pubDate>
    <dc:creator>David_Burnham</dc:creator>
    <dc:date>2020-09-29T18:30:03Z</dc:date>
    <item>
      <title>FCS Files: JMP opens them, but where does the header information go?</title>
      <link>https://community.jmp.com/t5/Discussions/FCS-Files-JMP-opens-them-but-where-does-the-header-information/m-p/314498#M56643</link>
      <description>&lt;P&gt;I am helping a colleague with some work with FCS files. JMP opens the data easy enough, which is great, but I am looking to extract the header information, and I can't figure out an easy way - especially if I wanted to do this for a bunch of files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't get any options like I do for CSV files, so the only solution I have found is to change the extension to .txt and open the file with text preferences. That works, but would seem troublesome if I need to do this to all files prior to opening.&lt;BR /&gt;&lt;BR /&gt;1) is there a way to open a single FCS file to see the header w/o changing the extension&lt;BR /&gt;2) can you use a script and force-use text preferences even if the extension isn't a standard text extension.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:19:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/FCS-Files-JMP-opens-them-but-where-does-the-header-information/m-p/314498#M56643</guid>
      <dc:creator>nathan-clark</dc:creator>
      <dc:date>2023-06-10T23:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: FCS Files: JMP opens them, but where does the header information go?</title>
      <link>https://community.jmp.com/t5/Discussions/FCS-Files-JMP-opens-them-but-where-does-the-header-information/m-p/314656#M56663</link>
      <description>&lt;P&gt;When JMP opens an FCS file it places the header information as table variables.&lt;/P&gt;
&lt;DIV id="tinyMceEditorDavid_Burnham_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fcs-header.PNG" style="width: 203px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27069i01A08E52FFAEB1E6/image-dimensions/203x196?v=v2" width="203" height="196" role="button" title="fcs-header.PNG" alt="fcs-header.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can interrogate the table to get the list of names (dt&amp;lt;&amp;lt;getTableVariableNames) and you can retrieve the values (&lt;/P&gt;
&lt;P class="p1"&gt;dt&amp;lt;&amp;lt;getTableVariableNames).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:11:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/FCS-Files-JMP-opens-them-but-where-does-the-header-information/m-p/314656#M56663</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2020-09-29T17:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: FCS Files: JMP opens them, but where does the header information go?</title>
      <link>https://community.jmp.com/t5/Discussions/FCS-Files-JMP-opens-them-but-where-does-the-header-information/m-p/314679#M56664</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4536"&gt;@David_Burnham&lt;/a&gt;,&amp;nbsp;That would be awesome! ... but I am not seeing that. I am on JMP 15.2.1 on Windows 10.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fcs capture.png" style="width: 505px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27070i09D420550AD7A7AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="fcs capture.png" alt="fcs capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:16:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/FCS-Files-JMP-opens-them-but-where-does-the-header-information/m-p/314679#M56664</guid>
      <dc:creator>nathan-clark</dc:creator>
      <dc:date>2020-09-29T17:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: FCS Files: JMP opens them, but where does the header information go?</title>
      <link>https://community.jmp.com/t5/Discussions/FCS-Files-JMP-opens-them-but-where-does-the-header-information/m-p/314720#M56668</link>
      <description>&lt;P&gt;One option you might want to try is using the function LoadTextFile, this will at least give you visibility to the header data (although can be slow because FCS files contain large blocks of binary data):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;fcsFile = "c:\my-fcs-file.fcs";
str = loadtextfile(fcsFile);
// extract header
pat = "FCS" + PatArb()&amp;gt;&amp;gt;hdr + "$BEGINANALYSIS";
isMatch = PatMatch(str,pat);
if (isMatch,
	show(hdr)
,
	show("oops")
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:51:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/FCS-Files-JMP-opens-them-but-where-does-the-header-information/m-p/314720#M56668</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2020-09-29T17:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: FCS Files: JMP opens them, but where does the header information go?</title>
      <link>https://community.jmp.com/t5/Discussions/FCS-Files-JMP-opens-them-but-where-does-the-header-information/m-p/314722#M56670</link>
      <description>I will give that a try ... Opening the file in a text editor the header has a lot of information (apparently such that JMP isn't pulling it out as header information).&lt;BR /&gt;&lt;BR /&gt;Maybe this will give me a hand understanding why...&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Tue, 29 Sep 2020 18:02:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/FCS-Files-JMP-opens-them-but-where-does-the-header-information/m-p/314722#M56670</guid>
      <dc:creator>nathan-clark</dc:creator>
      <dc:date>2020-09-29T18:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: FCS Files: JMP opens them, but where does the header information go?</title>
      <link>https://community.jmp.com/t5/Discussions/FCS-Files-JMP-opens-them-but-where-does-the-header-information/m-p/314727#M56671</link>
      <description>&lt;P&gt;I took the code a bit further to unpick some of the fields in the header&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;fcsFile = "my-fcs.fcs";
str = loadtextfile(fcsFile);
// extract header
pat = "FCS" + PatArb()&amp;gt;&amp;gt;hdr + "$BEGINANALYSIS";
isMatch = PatMatch(str,pat);
if (!isMatch,
	throw("oops")
);
// extract selected header info
system = ""; 	// computer system
pat = "$SYS" + "|" + PatArb()&amp;gt;&amp;gt;system + "|";
PatMatch(hdr,pat);
cytometer = ""; // type of cytometer
pat = "$CYT" + "|" + PatArb()&amp;gt;&amp;gt;cytometer + "|";
PatMatch(hdr,pat);
startTime = ""; // start time
pat = "$BTIM" + "|" + PatArb()&amp;gt;&amp;gt;startTime + "|";
PatMatch(hdr,pat);
endTime = ""; // end time
pat = "$ETIM" + "|" + PatArb()&amp;gt;&amp;gt;endTime + "|";
PatMatch(hdr,pat);

show(system,cytometer,startTime,endTime);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For my test data file this gives&lt;/P&gt;
&lt;PRE&gt;system = "Summit V5.2.0.7477 / Windows NT Version 5.1 / Intel Processor";
cytometer = "MoFlo XDP";
startTime = "12:34:07";
endTime = "12:38:15";&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used some field identifiers based on this documentation&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.bioconductor.org/packages/release/bioc/vignettes/flowCore/inst/doc/fcs3.html#3.1" target="_blank"&gt;https://www.bioconductor.org/packages/release/bioc/vignettes/flowCore/inst/doc/fcs3.html#3.1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:30:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/FCS-Files-JMP-opens-them-but-where-does-the-header-information/m-p/314727#M56671</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2020-09-29T18:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: FCS Files: JMP opens them, but where does the header information go?</title>
      <link>https://community.jmp.com/t5/Discussions/FCS-Files-JMP-opens-them-but-where-does-the-header-information/m-p/314761#M56683</link>
      <description>&lt;P&gt;Thanks! I will need to touch base with support to see why this file doesn't have the header info in the table vars, but I can use the script you sent to at least dig into the files. Even with the overhead of loading an entire file, it beats the alternatives :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Nate&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:34:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/FCS-Files-JMP-opens-them-but-where-does-the-header-information/m-p/314761#M56683</guid>
      <dc:creator>nathan-clark</dc:creator>
      <dc:date>2020-09-29T20:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: FCS Files: JMP opens them, but where does the header information go?</title>
      <link>https://community.jmp.com/t5/Discussions/FCS-Files-JMP-opens-them-but-where-does-the-header-information/m-p/314763#M56685</link>
      <description>&lt;P&gt;Yes I am curious why you are not seeing the header information.&amp;nbsp; I would guess either it is the version of the FCS files (I was testing with FCS3.0), or JMP is selective in the header information that it looks for.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:38:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/FCS-Files-JMP-opens-them-but-where-does-the-header-information/m-p/314763#M56685</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2020-09-29T20:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: FCS Files: JMP opens them, but where does the header information go?</title>
      <link>https://community.jmp.com/t5/Discussions/FCS-Files-JMP-opens-them-but-where-does-the-header-information/m-p/314931#M56703</link>
      <description>&lt;P&gt;I'm pretty sure JMP has a list of standard keys it recognizes and may ignore other (vendor specific?) keys.&lt;/P&gt;&lt;P&gt;There is also information in each column's properties, maybe for interpreting ranges.&lt;/P&gt;&lt;P&gt;@Anonymous&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3022"&gt;@briancorcoran&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 13:01:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/FCS-Files-JMP-opens-them-but-where-does-the-header-information/m-p/314931#M56703</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-09-30T13:01:07Z</dc:date>
    </item>
  </channel>
</rss>

