s-news
[Top] [All Lists]

Re: question with SINK

To: s-news@lists.biostat.wustl.edu
Subject: Re: question with SINK
From: duo wan <duo_wan@yahoo.com>
Date: Tue, 6 Feb 2007 10:01:38 -0800 (PST)
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=OfJOBXtRgrqhrRu93jeQMBUaG2pvsJYVYTTdy9KkLraDsx06EdnbfqrfXH+BrobMe4WWzZV8KwLYgyb1kKU3ai6DrFdZdsVeX4+YTJxZKEbR1AdNSx+Wbd8fOVrRS+uy8fk54gBX1+XVon279bp4d+C79RU8sa8yiKsTpGHpjAo=;
Hi All,
 
I am having some problem with SINK output. I am using sink to output the following results:
 
  print(paste("# id ", m))
  print(paste(obs[1,1],obs[1,2],obs[1,3],obs[1,4]))
  print(paste(obs[2,1],obs[2,2],obs[2,3],obs[2,4]))
 
and output file looks like this:
 
[1] 2119
[1] 5
[1] "# id  1"
[1] "C G G C"
[1] "C G T C"
[1] "# id  2"
[1] "C G G C"
[1] "C G T T"
[1] "# id  3"
[1] "C G G C"
[1] "C G T T"
[1] "# id  4"
[1] "C G T C"
[1] "C G T T"
 
Is there any way to
 
1. remove [1]
2. remove " "-quote
3. compress C G T C -> CGTC
?
 
Your suggestions will be really appreciated.
 
Vincent


Don't get soaked. Take a quick peak at the forecast
with theYahoo! Search weather shortcut.
<Prev in Thread] Current Thread [Next in Thread>