s-news
[Top] [All Lists]

Re: reading 2-byte integers in S-Plus

To: Doug Bolgiano <DougB@psbc.org>
Subject: Re: reading 2-byte integers in S-Plus
From: "A.J. Rossini" <blindglobe@gmail.com>
Date: Thu, 25 Aug 2005 18:01:05 +0200
Cc: s-news@lists.biostat.wustl.edu
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LMVrbbco35KJw21z/oj2DTCmE/A2nAaUH/BgMrsN4Qj2E+jaEOJ1IWYp2DutmiPQdYnmFHjc13fQhQFU+SSrrmalZQNDA2+BsY3jNWUEANJ6lleeSqQC6OboBYxqVE0zxUdw2a9fqYujYtFotd5VesFYQ4oVHMEHTt67TlHL68E=
In-reply-to: <2264C0AC82D7AF4593CD8C63969347860397BEB8@central-ex1.psbc.org>
References: <2264C0AC82D7AF4593CD8C63969347860397BEB8@central-ex1.psbc.org>
See also the rflowcyt packages for R in BioConductor, which I
developed when I was at the University of Washington, which provide a
"read.FCS" tool.

On 8/25/05, Doug Bolgiano <DougB@psbc.org> wrote:
> I'm trying to input data from a flow cytometery file (format FCS 2.0) to 
> S-Plus.  The data is integer valued, written as binary, 2-byte integers.  
> S-Plus (as I understand) only reads and writes 4-byte integers.
> 
> As a work around, I read the data into S-Plus as 4-byte integers and then 
> transform each 4-byte integer to the corresponding 2 2-byte integers.  This 
> works fine as long as the byte length of the data vector is a multiple of 4.  
> When it is not, I get an error for trying to read past the end of the file.  
> Can anyone suggest a work around?  Thanks.
> 
> Doug Bolgiano
> Research Division
> Puget Sound Blood Center
> Seattle,  WA
> 
> ***********************************************************************
> *
> This e-mail and any attachments may contain confidential and
> privileged information. It has been scanned for viruses.  If you are
> not the intended recipient, please notify the sender immediately by
> return e-mail, delete this e-mail and destroy any copies. Any
> dissemination, use, review, disclosure, or distribution of this
> information by a person other than the intended recipient is
> unauthorized and may be illegal.
> --------------------------------------------------------------------
> This message was distributed by s-news@lists.biostat.wustl.edu.  To
> unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
> the BODY of the message:  unsubscribe s-news
> 


-- 
best,
-tony

"Commit early,commit often, and commit in a repository from which we can easily
roll-back your mistakes" (AJR, 4Jan05).

A.J. Rossini
blindglobe@gmail.com

<Prev in Thread] Current Thread [Next in Thread>