[Bioperl-l] fasta file parser

Sendu Bala bix at sendu.me.uk
Tue Jul 22 12:49:51 UTC 2008


Sendu Bala wrote:
> ste.ghi at libero.it wrote:
>> #Load LIST content in an array; avoids duplicates
[snip]
> @list = <LIST>;
> %unique = map { chomp($_) => 1 } @list;

Oops, my chomp usage is wrong. This'll work better:

@list = <LIST>;
chomp(@list);
%unique = map { $_ => 1 } grep { /\S/ } @list;



More information about the Bioperl-l mailing list