35
35
# Bio::SeqI has sequence features
36
36
# features must implement Bio::SeqFeatureI
38
@features = $seqobj->get_SeqFeatures(); # just top level
38
@features = $seqobj->get_SeqFeatures(); # just top level
39
39
@features = $seqobj->get_all_SeqFeatures(); # descend into sub features
45
43
Bio::SeqI is the abstract interface of annotated Sequences. These
46
methods are those which you can be guarenteed to get for any Bio::SeqI
47
- for most users of the package the documentation (and methods) in
48
this class are not at useful - this is a developers only class which
49
defines what methods have to be implmented by other Perl objects to
44
methods are those which you can be guaranteed to get for any Bio::SeqI.
45
For most users of the package the documentation (and methods) in this
46
class are not at useful - this is a developers only class which
47
defines what methods have to be implemented by other Perl objects to
50
48
comply to the Bio::SeqI interface. Go "perldoc Bio::Seq" or "man
51
49
Bio::Seq" for more information.
54
There aren't many here, because too many complicated functions here
55
prevent implementations which are just wrappers around a database or
51
There aren't many method here, because too many complicated functions here
52
would prevent implementations which are just wrappers around a database or
56
53
similar delayed mechanisms.
58
55
Most of the clever stuff happens inside the SeqFeatureI system.
129
126
This method comes through extension of Bio::FeatureHolderI. See
130
127
L<Bio::FeatureHolderI> and L<Bio::SeqFeatureI> for more information.
134
129
=head2 get_all_SeqFeatures
136
131
Title : get_all_SeqFeatures
137
Usage : @features = $annseq->get_all_SeqFeatures()
138
Function: returns all SeqFeatures, included sub SeqFeatures
132
Usage : my @feats = $seq->get_all_SeqFeatures();
133
Function: returns all SeqFeatures, including sub SeqFeatures
139
134
Returns : an array of Bio::SeqFeatureI objects
142
137
This method comes through extension of Bio::FeatureHolderI. See
143
138
L<Bio::FeatureHolderI> and L<Bio::SeqFeatureI> for more information.
147
140
=head2 feature_count
149
142
Title : feature_count
150
Usage : $seq->feature_count()
143
Usage : my $count = $seq->feature_count();
151
144
Function: Return the number of SeqFeatures attached to a sequence
152
145
Returns : integer representing the number of SeqFeatures
178
169
Title : write_GFF
179
170
Usage : $seq->write_GFF(\*FILEHANDLE);
180
Function: Convience method to write out all the sequence features
171
Function: Convenience method to write out all the sequence features
181
172
in GFF format to the provided filehandle (STDOUT by default)
183
174
Args : [optional] filehandle to write to (default is STDOUT)
207
198
for more information. This method comes through extension from
208
199
L<Bio::AnnotatableI>.
216
205
Function: Gets or sets the species
217
Example : $species = $self->species();
206
Example : my $species = $seq->species();
218
207
Returns : Bio::Species object
219
208
Args : Bio::Species object or none;
230
219
=head2 primary_seq
232
221
Title : primary_seq
233
Usage : $obj->primary_seq($newval)
222
Usage : my $primaryseq = $seq->primary_seq($newval)
234
223
Function: Retrieve the underlying Bio::PrimarySeqI object if available.
235
224
This is in the event one has a sequence with lots of features
236
225
but want to be able to narrow the object to just one with