[ create a new paste ] login | about

Link: http://codepad.org/MIZkjO5m    [ raw code | fork ]

Perl, pasted on May 4:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl 
use strict;
use warnings;

use Bio::DB::EUtilities;
use Bio::SeqIO;
use Bio::Seq::SeqBuilder;

my $file3 = 'na_gi_numbers.txt';

my $in = Bio::SeqIO->new(-file => $file3, -format => "genbank");
   my $builder = $in->sequence_builder();
   $builder->want_none();
   $builder->add_wanted_slot('accession_number');
   for (1..1000) {
      my $seq = $in->next_seq;
      print $seq->accession_number."\n";;
   }


Create a new paste based on this one


Comments: