Debian Codegraph @

lib/Bio/DB/HTS/Kseq/Record.pm

raw
1 package Bio::DB::HTS::Kseq::Record;
2
3 =head1 LICENSE
4
5 Copyright [2015-2024] EMBL-European Bioinformatics Institute
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18
19 =head1 NAME
20
21 Bio::DB::HTS::Kseq::Record -- Entry from a Kseq iterator
22
23 =head1 SYNOPSIS
24
25 while(my $r = $iter->next_seq()) {
26 say $r->name;
27 say $r->desc;
28 say $r->seq;
29 say $r->qual;
30 }
31
32 =head2 METHODS
33
34 =over 8
35
36 =item C<name>
37
38 The name of a FASTA/Q record
39
40 =item C<desc>
41
42 The description from a FASTA/Q record
43
44 =item C<seq>
45
46 The sequence from a FASTA/Q record
47
48 =item C<qual>
49
50 The quality string from a FASTA/Q record
51
52 =back
53
54 =cut
55
56 use strict;
57 use warnings;
58
59 $Bio::DB::HTS::Kseq::Record::VERSION = '3.02';
60
61 sub name {
62 return $_[0]->{name};
63 }
64
65 sub desc {
66 return $_[0]->{desc};
67 }
68
69 sub seq {
70 return $_[0]->{seq};
71 }
72
73 sub qual {
74 return $_[0]->{qual};
75 }
76
77 1;