NAME

Bio::SFF::Reader::Random - Random-access SFF reader

VERSION

version 0.007

SYNOPSIS

my $reader = Bio::SFF::Reader::Random->new(file => $filename);
if (my $entry = $reader->lookup('ABCDEF')) {
    say '>', $entry->name;
    say $entry->bases;
}
else {
    say 'No such entry "ABCDEF"';
}

DESCRIPTION

This class implements Bio::SFF::Reader. It provides random access to an SFF file.

METHODS

lookup($name)

This will look up a named sequence, and return it. Note that this will affect the iterator.

AUTHOR

Leon Timmermans <leont@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Leon Timmermans, Utrecht University.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.