[Bioperl-l] Bio::Index::GenBank - by organism?

Jay Hannah jay at jays.net
Mon Nov 16 01:23:38 UTC 2009


On Nov 9, 2009, at 9:55 PM, Chris Fields wrote:
> It should work via id_parser(); from Bio::Index::GenBank:
> 
>   $inx->id_parser(\&get_id);
>   # make the index
>   $inx->make_index($file_name);
> 
>   # here is where the retrieval key is specified
>   sub get_id {
>      my $line = shift;
>      $line =~ /clone="(\S+)"/;
>      $1;
>   }

This worked great for me today (tackling a different problem than the original).  Thanks!!

j






More information about the Bioperl-l mailing list