Help for this page

Select Code to Download


  1. or download this
    my $seqio = Bio::SeqIO->new(-format => $seqformat, -file =>$filename);
    while( my $seq = $seqio->next_seq ) {
    ...
           " desc is ", $seq->description(), "\n";
     print "sequence is ", $seq->seq(), "\n";
    }
    
  2. or download this
    my $fh = Bio::SeqIO->newFh(-format =>$seqformat, -file =>$filename);
    while(<$fh>) {
     my $seq = $_;
     # do as before
    }
    
  3. or download this
    my $fh;
    open($fh, "cat seqfile |") ||die $!;
    ...
     #and so forth....
    }