[Bioperl-l] fasta file parser

Sendu Bala bix at sendu.me.uk
Tue Jul 22 08:49:51 EDT 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