Help for this page

Select Code to Download


  1. or download this
    seq_1    1    33    gene
    seq_1    1    20    exon
    ...
    seq_3    1    55    gene
    seq_3    1    30    exon
    seq_3    31    50    exon
    
  2. or download this
    use Tie::File;
    
    tie my @data, 'Tie::File', "datafile";
    print "Rec$_\n$data[$_]\n\n" for (0..$#data);
    
  3. or download this
    Rec1
    seq_1    1    33    gene
    ...
    seq_3    1    55    gene
    seq_3    1    30    part
    seq_3    31    50    part
    
  4. or download this
    sub _read_record {
      my $self = shift;
    ...
    ## Rest of the subroutine...
    
    }
    
  5. or download this
    sub get_next_rec
      {
    ...
    ## Rest of the subroutine...
    
    }
    
  6. or download this
    package Tie::File::GFF;
    
    ...
      }
    
    1;
    
  7. or download this
    use Tie::File::GFF;
    
    tie my @data, 'Tie::File::GFF', "datafile";
    print "Rec$_\n$data[$_]\n\n" for (0..$#data);
    
  8. or download this
    Rec1
    seq_1    1    33    gene
    ...
    seq_3    1    55    gene
    seq_3    1    30    part
    seq_3    31    50    part
    
  9. or download this
    sub get_next_rec
      {
    ...
    ## Rest of the sub
    
    }