Re: sequence composition

2010-12-02 Thread Changrong Ge
Hi guys, Thanks a lot for this issue and with Anjan's help here I got the wonderful script for my work and I post below, hopefully it would be helpful for others--works perfectly for fasta file. Also thanks to others who are interested in the discussion, but I think it takes time for me to

Re: sequence composition

2010-12-02 Thread John W. Krahn
Changrong Ge wrote: Hi guys, Hello, Thanks a lot for this issue and with Anjan's help here I got the wonderful script for my work and I post below, hopefully it would be helpful for others--works perfectly for fasta file. Also thanks to others who are interested in the discussion,

Re: sequence composition

2010-12-02 Thread ANJAN PURKAYASTHA
No problem Changrong, glad to be of help to a fellow scientist. And thanks to John and the other for showing much more elegant ways of solving the problem. Cheers! Anjan On Thu, Dec 2, 2010 at 3:40 AM, John W. Krahn jwkr...@shaw.ca wrote: Changrong Ge wrote: Hi guys, Hello, Thanks

Re: Need to use csv file header instead of index.

2010-12-02 Thread Brian Fraser
How would you do this in Ruby, then? I work in Ruby myself, and it's generally quite simple to translate from one language to the other. If you just want to be able to say $columns[Name] instead if $columns[5], it's just as simple as saying my $Name = 5; $columns[$Name]; Or, if you hold some