| 1 |
=head1 LICENSE |
| 2 |
|
| 3 |
Copyright [2015-2024] EMBL-European Bioinformatics Institute |
| 4 |
|
| 5 |
Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 |
you may not use this file except in compliance with the License. |
| 7 |
You may obtain a copy of the License at |
| 8 |
|
| 9 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 10 |
|
| 11 |
Unless required by applicable law or agreed to in writing, software |
| 12 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 13 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 |
See the License for the specific language governing permissions and |
| 15 |
limitations under the License. |
| 16 |
|
| 17 |
=cut |
| 18 |
|
| 19 |
=head1 NAME |
| 20 |
|
| 21 |
Bio::DB::HTS::Kseq::Iterator - The Kseq iterator |
| 22 |
|
| 23 |
=head1 DESCRIPTION |
| 24 |
|
| 25 |
An object for iterating through the available records. Other methods are available but are undocumented because you should be using the C<next_seq> methods as much as possible. |
| 26 |
|
| 27 |
=head1 SYNOPSIS |
| 28 |
|
| 29 |
my $iter = $kseq->iterator(); |
| 30 |
while(my $r = $iter->next_seq()) { |
| 31 |
say $r->name; |
| 32 |
say $r->desc; |
| 33 |
say $r->seq; |
| 34 |
say $r->qual; |
| 35 |
} |
| 36 |
|
| 37 |
=head2 METHODS |
| 38 |
|
| 39 |
=over 8 |
| 40 |
|
| 41 |
=item C<next_seq> |
| 42 |
|
| 43 |
Returns a blessed C<Bio::DB::HTS::Kseq::Record> instance. |
| 44 |
|
| 45 |
=item C<next_seq_hash> |
| 46 |
|
| 47 |
Returns a raw HashRef with the keys name, desc, seq and qual available. |
| 48 |
|
| 49 |
=back |
| 50 |
|
| 51 |
=cut |